From 2542d6c24cb0890e607776ec43e24caaa416b8f6 Mon Sep 17 00:00:00 2001 From: Wilson Lin Date: Sat, 25 Jul 2020 18:06:40 +1000 Subject: [PATCH] Also test JS minification before publishing --- version | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/version b/version index 8e12e7f..a64137d 100755 --- a/version +++ b/version @@ -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}"`);