Also test JS minification before publishing

This commit is contained in:
Wilson Lin 2020-07-25 18:06:40 +10:00
parent 2f5659bce0
commit 2542d6c24c
1 changed files with 1 additions and 2 deletions

View File

@ -67,8 +67,7 @@ if (cmd('git', 'status', '--porcelain', {throwOnStderr: true, captureStdio: true
throw new Error('Working directory not clean');
}
cmd('bash', './prebuild.sh');
// This will also build.
cmd('cargo', 'test');
cmd('cargo', 'test', '--features', 'js-esbuild');
for (const f of ['Cargo.toml', 'cli/Cargo.toml', 'nodejs/native/Cargo.toml', 'java/Cargo.toml', 'python/Cargo.toml', 'ruby/Cargo.toml']) {
replaceInFile(f, /^version = "\d+\.\d+\.\d+"\s*$/m, `version = "${NEW_VERSION}"`);