From c213c97195a341e834b9e83b879681d8b2204e7c Mon Sep 17 00:00:00 2001 From: Rondinelly Date: Fri, 10 Jan 2020 23:45:03 -0300 Subject: [PATCH] housekeeping: fix `npm run lint` and `npm test` on Windows (#5737) Co-authored-by: kyle shockey --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c30b21d5..75cff593 100644 --- a/package.json +++ b/package.json @@ -26,12 +26,12 @@ "deps-license": "license-checker --production --csv --out $npm_package_config_deps_check_dir/licenses.csv && license-checker --development --csv --out $npm_package_config_deps_check_dir/licenses-dev.csv", "deps-size": "webpack -p --config webpack/bundle.babel.js --json | webpack-bundle-size-analyzer >| $npm_package_config_deps_check_dir/sizes.txt", "deps-check": "run-s deps-license deps-size", - "lint": "eslint --cache --ext '.js,.jsx' src test", - "lint-errors": "eslint --cache --quiet --ext '.js,.jsx' src test", - "lint-fix": "eslint --cache --ext '.js,.jsx' src test --fix", + "lint": "eslint --cache --ext \".js,.jsx\" src test", + "lint-errors": "eslint --cache --quiet --ext \".js,.jsx\" src test", + "lint-fix": "eslint --cache --ext \".js,.jsx\" src test --fix", "test": "run-s just-test-in-node e2e-cypress lint-errors", "test-in-node": "run-s lint-errors just-test-in-node", - "just-test-in-node": "mocha --require test/mocha/setup.js --recursive --compilers js:@babel/register --require source-map-support 'test/mocha/**/*.{js,jsx}'", + "just-test-in-node": "mocha --require test/mocha/setup.js --recursive --compilers js:@babel/register --require source-map-support \"test/mocha/**/*.{js,jsx}\"", "test-e2e-cypress": "cypress run", "test-e2e-selenium": "sleep 3 && nightwatch test/e2e-selenium/scenarios/ --config test/e2e-selenium/nightwatch.json", "e2e-initial-render": "nightwatch test/e2e-selenium/scenarios/ --config test/e2e-selenium/nightwatch.json --group initial-render", @@ -40,7 +40,7 @@ "hot-e2e-selenium-server": "webpack-dev-server --config webpack/dev-e2e.babel.js --content-base test/e2e-selenium/static", "e2e-cypress": "run-p -r hot-e2e-cypress-server mock-api test-e2e-cypress", "e2e-selenium": "run-p -r hot-e2e-selenium-server mock-api test-e2e-selenium", - "open-static": "node -e 'require(\"open\")(\"http://localhost:3002\")'", + "open-static": "node -e \"require('open')('http://localhost:3002')\"", "security-audit": "run-s -sc security-audit:all security-audit:prod", "security-audit:prod": "npm-audit-ci-wrapper -p -t low", "security-audit:all": "npm-audit-ci-wrapper -t moderate",