Skip to content

Commit

Permalink
build(prepublishOnly): Do not remove dist/pipelines/*Test*
Browse files Browse the repository at this point in the history
Already ignored by .npmignore and causing issues in ci.
  • Loading branch information
thewtex committed Sep 9, 2022
1 parent 7eff5a6 commit 8581525
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -56,7 +56,7 @@
"test:chrome": "start-server-and-test start http-get://localhost:8083 cypress:runChrome",
"test:firefox:ci": "start-server-and-test start http-get://localhost:8083 cypress:runFirefox:ci",
"test:firefox": "start-server-and-test start http-get://localhost:8083 cypress:runFirefox",
"prepublishOnly": "npm run build && rm dist/pipelines/*Test*"
"prepublishOnly": "npm run build"
},
"config": {
"commitizen": {
Expand Down
4 changes: 2 additions & 2 deletions src/build-wasi.js
Expand Up @@ -193,13 +193,13 @@ if (options.buildTestPipelines) {
const pipelineFiles = glob.sync(path.join(pipelinePath, 'wasi-build', '*.wasm'))
pipelineFiles.forEach((file) => {
const filename = path.basename(file)
const output = path.join('dist', 'pipeline', filename)
const output = path.join('dist', 'pipelines', filename)
fs.copySync(file, output)
})
}

try {
fs.mkdirSync(path.join('dist', 'pipeline'))
fs.mkdirSync(path.join('dist', 'pipelines'))
} catch (err) {
if (err.code !== 'EEXIST') throw err
}
Expand Down

0 comments on commit 8581525

Please sign in to comment.