Skip to content

Commit 39f18e4

Browse files
committed
Cleanup properly between package builds
1 parent 9a65825 commit 39f18e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ if (!shell.which('wasm-pack')) {
55
}
66

77
// Clean up any existing built content:
8-
shell.rm('-rf', 'pkg');
98
shell.rm('-rf', 'dist');
109
shell.mkdir('dist');
1110

1211
// Create the bundler output
12+
shell.rm('-rf', 'pkg');
1313
shell.exec('wasm-pack build --target bundler');
1414
shell.mv('pkg', 'pkg.bundler');
1515

16+
// Create the node output
17+
shell.rm('-rf', 'pkg');
1618
shell.exec('wasm-pack build --target nodejs');
1719
shell.mv('pkg', 'pkg.node');

0 commit comments

Comments
 (0)