From cc55ca51edd05ef9723c7f458cbfef73d5d369d5 Mon Sep 17 00:00:00 2001 From: Jiansen Date: Thu, 28 Jul 2016 22:07:40 +0100 Subject: [PATCH] verify #258 and #256: add without +x to tasks/pack.sh, e2e.sh shall fail, and CI shall fail --- package.json | 2 +- tasks/e2e.sh | 2 +- tasks/pack.sh | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 tasks/pack.sh diff --git a/package.json b/package.json index f60d932cbb1..9f47ba62ae1 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "scripts": { "start": "node scripts/start.js --debug-template", "build": "node scripts/build.js --debug-template", - "create-react-app": "node global-cli/index.js --scripts-version \"$PWD/`npm pack`\"", + "create-react-app": "node global-cli/index.js --scripts-version \"$PWD/`tasks/pack.sh`\"", "test": "tasks/e2e.sh" }, "files": [ diff --git a/tasks/e2e.sh b/tasks/e2e.sh index 8a4a1ffa364..9e996428cbd 100755 --- a/tasks/e2e.sh +++ b/tasks/e2e.sh @@ -47,7 +47,7 @@ perl -i -p0e 's/bundledDependencies.*?]/bundledDependencies": []/s' package.json # Pack react-scripts npm install -scripts_path=$PWD/`npm pack` +scripts_path=$PWD/`tasks/pack.sh` # lint ./node_modules/.bin/eslint --ignore-path .gitignore ./ diff --git a/tasks/pack.sh b/tasks/pack.sh new file mode 100644 index 00000000000..968d3606264 --- /dev/null +++ b/tasks/pack.sh @@ -0,0 +1 @@ +echo `npm pack`