diff --git a/src/plugin/tasks/package/snippets/npm-default/merge-shallow.json.mustache b/src/plugin/tasks/package/snippets/npm-default/merge-shallow.json.mustache index b1e9b01e..29e40d07 100644 --- a/src/plugin/tasks/package/snippets/npm-default/merge-shallow.json.mustache +++ b/src/plugin/tasks/package/snippets/npm-default/merge-shallow.json.mustache @@ -2,8 +2,8 @@ "scripts": { "clean": "rm -rf lib", {{#nccEnabled}} - "build": "cp -rf ./src ./lib && ncc build -m -o lib{{#nccExclude}} && -e {{nccExclude}}{{/nccExclude}} && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json{{#nccExclude}} && rsync -r node_modules/{{nccExclude}} lib/node_modules{{/nccExclude}}", - "ncc-analyze": "yarn clean && cp -rf ./src ./lib{{#nccExclude}} && -e {{nccExclude}}{{/nccExclude}} && ncc build -m -s -o lib && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean", + "build": "cp -rf ./src ./lib && ncc build -m -o lib{{#nccExclude}} -e {{nccExclude}}{{/nccExclude}} && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json{{#nccExclude}} && rsync -r node_modules/{{nccExclude}} lib/node_modules{{/nccExclude}}", + "ncc-analyze": "yarn clean && cp -rf ./src ./lib{{#nccExclude}} -e {{nccExclude}}{{/nccExclude}} && ncc build -m -s -o lib && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean", {{/nccEnabled}} {{^nccEnabled}} "build": "cp -rf ./src ./lib", diff --git a/src/plugin/tasks/package/snippets/serverless-react/merge-shallow.json.mustache b/src/plugin/tasks/package/snippets/serverless-react/merge-shallow.json.mustache index 9acddec5..ec208e46 100644 --- a/src/plugin/tasks/package/snippets/serverless-react/merge-shallow.json.mustache +++ b/src/plugin/tasks/package/snippets/serverless-react/merge-shallow.json.mustache @@ -2,8 +2,8 @@ "scripts": { "clean": "rm -rf lib build .webpack", {{#nccEnabled}} - "build": "ncc build src/hangler.js -o lib{{#nccExclude}} && -e {{nccExclude}}{{/nccExclude}} && mv lib/index.js lib/hangler.js{{#nccExclude}} && rsync -r node_modules/{{nccExclude}} lib/node_modules{{/nccExclude}}", - "ncc-analyze": "yarn clean && ncc build -m -s src/hangler.js -o lib{{#nccExclude}} && -e {{nccExclude}}{{/nccExclude}} && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean", + "build": "ncc build src/hangler.js -o lib{{#nccExclude}} -e {{nccExclude}}{{/nccExclude}} && mv lib/index.js lib/hangler.js{{#nccExclude}} && rsync -r node_modules/{{nccExclude}} lib/node_modules{{/nccExclude}}", + "ncc-analyze": "yarn clean && ncc build -m -s src/hangler.js -o lib{{#nccExclude}} -e {{nccExclude}}{{/nccExclude}} && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean", {{/nccEnabled}} {{^nccEnabled}} "build": "cp -rf ./src ./lib", diff --git a/src/plugin/tasks/package/snippets/serverless/merge-shallow.json.mustache b/src/plugin/tasks/package/snippets/serverless/merge-shallow.json.mustache index 7c10d0f6..00c806c9 100644 --- a/src/plugin/tasks/package/snippets/serverless/merge-shallow.json.mustache +++ b/src/plugin/tasks/package/snippets/serverless/merge-shallow.json.mustache @@ -2,8 +2,8 @@ "scripts": { "clean": "rm -rf lib", {{#nccEnabled}} - "build": "ncc build src/hangler.js -o lib{{#nccExclude}} && -e {{nccExclude}}{{/nccExclude}} && mv lib/index.js lib/hangler.js{{#nccExclude}} && rsync -r node_modules/{{nccExclude}} lib/node_modules{{/nccExclude}}", - "ncc-analyze": "yarn clean && ncc build -m -s src/hangler.js -o lib{{#nccExclude}} && -e {{nccExclude}}{{/nccExclude}} && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean", + "build": "ncc build src/hangler.js -o lib{{#nccExclude}} -e {{nccExclude}}{{/nccExclude}} && mv lib/index.js lib/hangler.js{{#nccExclude}} && rsync -r node_modules/{{nccExclude}} lib/node_modules{{/nccExclude}}", + "ncc-analyze": "yarn clean && ncc build -m -s src/hangler.js -o lib{{#nccExclude}} -e {{nccExclude}}{{/nccExclude}} && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean", {{/nccEnabled}} {{^nccEnabled}} "build": "cp -rf ./src ./lib", diff --git a/test/projects/assorted/@npm-closedsource/package.json b/test/projects/assorted/@npm-closedsource/package.json index f213d704..53e095e6 100644 --- a/test/projects/assorted/@npm-closedsource/package.json +++ b/test/projects/assorted/@npm-closedsource/package.json @@ -32,7 +32,7 @@ "keywords": [], "scripts": { "clean": "rm -rf lib", - "build": "cp -rf ./src ./lib && ncc build -m -o lib && -e nccExclude && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json && rsync -r node_modules/nccExclude lib/node_modules", + "build": "cp -rf ./src ./lib && ncc build -m -o lib -e nccExclude && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json && rsync -r node_modules/nccExclude lib/node_modules", "build-clean": "yarn run clean && yarn run build", "test-simple": "c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"", "test": "yarn run clean && yarn run gardener && yarn run test-simple", @@ -45,7 +45,7 @@ "t": "yarn test", "ts": "yarn run test-simple", "tsv": "yarn run test-simple --verbose", - "ncc-analyze": "yarn clean && cp -rf ./src ./lib && -e nccExclude && ncc build -m -s -o lib && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean" + "ncc-analyze": "yarn clean && cp -rf ./src ./lib -e nccExclude && ncc build -m -s -o lib && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean" }, "bugs": { "url": "https://github.com/repoKey/issues" diff --git a/test/projects/assorted/@npm-opensource-os/package.json b/test/projects/assorted/@npm-opensource-os/package.json index 19d96b91..2807c2ac 100644 --- a/test/projects/assorted/@npm-opensource-os/package.json +++ b/test/projects/assorted/@npm-opensource-os/package.json @@ -29,7 +29,7 @@ ], "scripts": { "clean": "rm -rf lib", - "build": "cp -rf ./src ./lib && ncc build -m -o lib && -e nccExclude && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json && rsync -r node_modules/nccExclude lib/node_modules", + "build": "cp -rf ./src ./lib && ncc build -m -o lib -e nccExclude && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json && rsync -r node_modules/nccExclude lib/node_modules", "build-clean": "yarn run clean && yarn run build", "test-simple": "c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"", "test": "yarn run clean && yarn run gardener && yarn run test-simple", @@ -42,7 +42,7 @@ "tsv": "yarn run test-simple --verbose", "semantic-release": "yarn run build-clean && npx semantic-release", "gardener": "node gardener.js", - "ncc-analyze": "yarn clean && cp -rf ./src ./lib && -e nccExclude && ncc build -m -s -o lib && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean" + "ncc-analyze": "yarn clean && cp -rf ./src ./lib -e nccExclude && ncc build -m -s -o lib && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean" }, "homepage": "https://github.com/repoKey#readme", "repository": { diff --git a/test/projects/assorted/@npm-opensource/package.json b/test/projects/assorted/@npm-opensource/package.json index bb3d8d5a..9def2d13 100644 --- a/test/projects/assorted/@npm-opensource/package.json +++ b/test/projects/assorted/@npm-opensource/package.json @@ -33,7 +33,7 @@ "keywords": [], "scripts": { "clean": "rm -rf lib", - "build": "cp -rf ./src ./lib && ncc build -m -o lib && -e nccExclude && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json && rsync -r node_modules/nccExclude lib/node_modules", + "build": "cp -rf ./src ./lib && ncc build -m -o lib -e nccExclude && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json && rsync -r node_modules/nccExclude lib/node_modules", "build-clean": "yarn run clean && yarn run build", "test-simple": "c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"", "test": "yarn run clean && yarn run gardener && yarn run test-simple", @@ -46,7 +46,7 @@ "t": "yarn test", "ts": "yarn run test-simple", "tsv": "yarn run test-simple --verbose", - "ncc-analyze": "yarn clean && cp -rf ./src ./lib && -e nccExclude && ncc build -m -s -o lib && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean" + "ncc-analyze": "yarn clean && cp -rf ./src ./lib -e nccExclude && ncc build -m -s -o lib && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean" }, "bugs": { "url": "https://github.com/repoKey/issues" diff --git a/test/projects/assorted/@sls-closedsource-dynamodb/package.json b/test/projects/assorted/@sls-closedsource-dynamodb/package.json index c041f53e..16d2493d 100644 --- a/test/projects/assorted/@sls-closedsource-dynamodb/package.json +++ b/test/projects/assorted/@sls-closedsource-dynamodb/package.json @@ -28,7 +28,7 @@ "scripts": { "ddba": "AWS_REGION=awsregion AWS_ACCESS_KEY_ID=awsAccessKeyId AWS_SECRET_ACCESS_KEY=awsSecretAccessKey DYNAMO_ENDPOINT=http://0.0.0.0:8000 dynamodb-admin", "clean": "rm -rf lib", - "build": "ncc build src/hangler.js -o lib && -e nccExclude && mv lib/index.js lib/hangler.js && rsync -r node_modules/nccExclude lib/node_modules", + "build": "ncc build src/hangler.js -o lib -e nccExclude && mv lib/index.js lib/hangler.js && rsync -r node_modules/nccExclude lib/node_modules", "build-clean": "yarn run clean && yarn run build", "test-simple": "c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"", "test": "yarn run clean && yarn run gardener && yarn run test-simple", @@ -43,7 +43,7 @@ "sls-compile": "node serverless/compile.js", "lib-test": ". ./test/lib-test.sh", "lt": "yarn run lib-test", - "ncc-analyze": "yarn clean && ncc build -m -s src/hangler.js -o lib && -e nccExclude && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean" + "ncc-analyze": "yarn clean && ncc build -m -s src/hangler.js -o lib -e nccExclude && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean" }, "files": [], "homepage": "https://github.com/repoKey#readme", diff --git a/test/projects/assorted/@sls-closedsource-react/package.json b/test/projects/assorted/@sls-closedsource-react/package.json index a355a4c5..1979def5 100644 --- a/test/projects/assorted/@sls-closedsource-react/package.json +++ b/test/projects/assorted/@sls-closedsource-react/package.json @@ -29,7 +29,7 @@ }, "scripts": { "clean": "rm -rf lib build .webpack", - "build": "ncc build src/hangler.js -o lib && -e nccExclude && mv lib/index.js lib/hangler.js && rsync -r node_modules/nccExclude lib/node_modules", + "build": "ncc build src/hangler.js -o lib -e nccExclude && mv lib/index.js lib/hangler.js && rsync -r node_modules/nccExclude lib/node_modules", "build-clean": "yarn run clean && yarn run build", "test-simple": "yarn run build-clean && c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"", "test": "yarn run clean && yarn run gardener && yarn run test-simple", @@ -45,7 +45,7 @@ "sls-compile": "node serverless/compile.js", "lib-test": ". ./test/lib-test.sh", "lt": "yarn run lib-test", - "ncc-analyze": "yarn clean && ncc build -m -s src/hangler.js -o lib && -e nccExclude && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean" + "ncc-analyze": "yarn clean && ncc build -m -s src/hangler.js -o lib -e nccExclude && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean" }, "files": [], "homepage": "https://github.com/repoKey#readme", diff --git a/test/projects/assorted/@sls-closedsource/package.json b/test/projects/assorted/@sls-closedsource/package.json index 6037dda9..1c55ba99 100644 --- a/test/projects/assorted/@sls-closedsource/package.json +++ b/test/projects/assorted/@sls-closedsource/package.json @@ -30,7 +30,7 @@ "keywords": [], "scripts": { "clean": "rm -rf lib", - "build": "ncc build src/hangler.js -o lib && -e nccExclude && mv lib/index.js lib/hangler.js && rsync -r node_modules/nccExclude lib/node_modules", + "build": "ncc build src/hangler.js -o lib -e nccExclude && mv lib/index.js lib/hangler.js && rsync -r node_modules/nccExclude lib/node_modules", "build-clean": "yarn run clean && yarn run build", "test-simple": "c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"", "test": "yarn run clean && yarn run gardener && yarn run test-simple", @@ -45,7 +45,7 @@ "sls-compile": "node serverless/compile.js", "lib-test": ". ./test/lib-test.sh", "lt": "yarn run lib-test", - "ncc-analyze": "yarn clean && ncc build -m -s src/hangler.js -o lib && -e nccExclude && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean" + "ncc-analyze": "yarn clean && ncc build -m -s src/hangler.js -o lib -e nccExclude && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean" }, "bugs": { "url": "https://github.com/repoKey/issues"