mirror of
https://github.com/hanzoai/cross-env.git
synced 2026-09-24 16:58:15 +00:00
fix(build): build all of src
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@
|
||||
"scripts": {
|
||||
"start": "npm run test:watch",
|
||||
"prebuild": "rimraf dist && mkdir dist",
|
||||
"build": "cd src && babel index.js -d ../dist && cd ..",
|
||||
"build": "babel --copy-files --out-dir dist --ignore *.test.js src",
|
||||
"commit": "git-cz",
|
||||
"eslint": "eslint src/ -c other/src.eslintrc --ignore-path other/src.eslintignore && eslint src/*.test.js",
|
||||
"check-coverage": "istanbul check-coverage --statements 100 --branches 100 --functions 100 --lines 100",
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ function crossEnv(args) {
|
||||
function getCommandArgsAndEnvVars(args) { // eslint-disable-line
|
||||
let command;
|
||||
const envVars = Object.assign({}, process.env);
|
||||
const commandArgs = args.slice().map(commandConvert);
|
||||
const commandArgs = args.map(commandConvert);
|
||||
while (commandArgs.length) {
|
||||
const shifted = commandArgs.shift();
|
||||
const match = envSetterRegex.exec(shifted);
|
||||
|
||||
Reference in New Issue
Block a user