mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 17:53:39 +00:00
js things
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
const { execSync } = require('child_process');
|
||||
|
||||
args = process.argv.slice(2);
|
||||
const args = process.argv.slice(2);
|
||||
|
||||
const isRelease = args.includes('--release');
|
||||
|
||||
const args = args.join(' ');
|
||||
const argsString = args.join(' ');
|
||||
|
||||
if (isRelease) {
|
||||
console.log('Building release mode.');
|
||||
|
||||
execSync(`napi build --platform --no-js ${args}`, { stdio: 'inherit'});
|
||||
execSync(`napi build --platform --no-js ${argsString}`, { stdio: 'inherit'});
|
||||
|
||||
} else {
|
||||
console.log('Building debug mode.');
|
||||
|
||||
execSync(`napi build --platform --no-js ${args}`, {
|
||||
execSync(`napi build --platform --no-js ${argsString}`, {
|
||||
stdio: 'inherit',
|
||||
env: { ...process.env, RUST_LOG: 'debug' }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user