Skip to content

Commit

Permalink
Merge pull request #1768 from blackflux/dev
Browse files Browse the repository at this point in the history
[Gally]: master <- dev
  • Loading branch information
simlu authored Aug 8, 2023
2 parents f0ec3c6 + b8615c7 commit f446173
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"clean": "rm -rf lib",
{{#nccEnabled}}
"build": "cp -rf ./src ./lib && ncc build -m -o lib{{#nccExclude}} -e {{.}}{{/nccExclude}} && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json",
"ncc-analyze": "yarn clean && cp -rf ./src ./lib{{#nccExclude}} -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 && ncc build -m -s -o lib{{#nccExclude}} -e {{.}}{{/nccExclude}} --stats-out stats.json && npx webpack-bundle-analyzer stats.json --mode static && rm stats.json && yarn clean",
{{/nccEnabled}}
{{^nccEnabled}}
"build": "cp -rf ./src ./lib",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"clean": "rm -rf lib build .webpack",
{{#nccEnabled}}
"build": "ncc build src/hangler.js -o lib{{#nccExclude}} -e {{.}}{{/nccExclude}} && mv lib/index.js lib/hangler.js && node serverless/pkg.js && yarn install --cwd lib",
"ncc-analyze": "yarn clean && ncc build -m -s src/hangler.js -o lib{{#nccExclude}} -e {{.}}{{/nccExclude}} && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean",
"ncc-analyze": "yarn clean && ncc build src/hangler.js -o lib{{#nccExclude}} -e {{.}}{{/nccExclude}} --stats-out stats.json && npx webpack-bundle-analyzer stats.json --mode static && rm stats.json && yarn clean",
{{/nccEnabled}}
{{^nccEnabled}}
"build": "cp -rf ./src ./lib",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"clean": "rm -rf lib",
{{#nccEnabled}}
"build": "ncc build src/hangler.js -o lib{{#nccExclude}} -e {{.}}{{/nccExclude}} && mv lib/index.js lib/hangler.js && node serverless/pkg.js && yarn install --cwd lib",
"ncc-analyze": "yarn clean && ncc build -m -s src/hangler.js -o lib{{#nccExclude}} -e {{.}}{{/nccExclude}} && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean",
"ncc-analyze": "yarn clean && ncc build src/hangler.js -o lib{{#nccExclude}} -e {{.}}{{/nccExclude}} --stats-out stats.json && npx webpack-bundle-analyzer stats.json --mode static && rm stats.json && yarn clean",
{{/nccEnabled}}
{{^nccEnabled}}
"build": "cp -rf ./src ./lib",
Expand Down
2 changes: 1 addition & 1 deletion test/projects/assorted/@npm-closedsource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 && ncc build -m -s -o lib -e nccExclude --stats-out stats.json && npx webpack-bundle-analyzer stats.json --mode static && rm stats.json && yarn clean"
},
"bugs": {
"url": "https://github.com/repoKey/issues"
Expand Down
2 changes: 1 addition & 1 deletion test/projects/assorted/@npm-opensource-os/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 && ncc build -m -s -o lib -e nccExclude --stats-out stats.json && npx webpack-bundle-analyzer stats.json --mode static && rm stats.json && yarn clean"
},
"homepage": "https://github.com/repoKey#readme",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion test/projects/assorted/@npm-opensource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 && ncc build -m -s -o lib -e nccExclude --stats-out stats.json && npx webpack-bundle-analyzer stats.json --mode static && rm stats.json && yarn clean"
},
"bugs": {
"url": "https://github.com/repoKey/issues"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 src/hangler.js -o lib -e nccExclude --stats-out stats.json && npx webpack-bundle-analyzer stats.json --mode static && rm stats.json && yarn clean"
},
"files": [],
"homepage": "https://github.com/repoKey#readme",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 src/hangler.js -o lib -e nccExclude --stats-out stats.json && npx webpack-bundle-analyzer stats.json --mode static && rm stats.json && yarn clean"
},
"files": [],
"homepage": "https://github.com/repoKey#readme",
Expand Down
2 changes: 1 addition & 1 deletion test/projects/assorted/@sls-closedsource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 src/hangler.js -o lib -e nccExclude --stats-out stats.json && npx webpack-bundle-analyzer stats.json --mode static && rm stats.json && yarn clean"
},
"bugs": {
"url": "https://github.com/repoKey/issues"
Expand Down

0 comments on commit f446173

Please sign in to comment.