Skip to content

Commit fd2eb59

Browse files
committed
fix: add prepublish script
1 parent 221c4cf commit fd2eb59

File tree

3 files changed

+386
-393
lines changed

3 files changed

+386
-393
lines changed

bin/build.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ export async function build(args) {
6363
if (config.coverage.show)
6464
command += " --use COVERAGE_SHOW=1";
6565
}
66+
if (config.buildOptions.args) {
67+
command += args.join(" ");
68+
}
6669
buildCommands.push(command);
6770
}
6871
const build = (command) => {

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"pretest": "node ./bin/index.js build",
1313
"build:transform": "tsc -p ./transform",
1414
"build:cli": "tsc -p cli",
15-
"prettier": "prettier -w ."
15+
"prettier": "prettier -w .",
16+
17+
"prepublish": "npm run build:cli && npm run build:transform && npm run test"
1618
},
1719
"devDependencies": {
1820
"@assemblyscript/wasi-shim": "^0.1.0",

0 commit comments

Comments
 (0)