Skip to content

Commit

Permalink
fix: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Siemon committed Aug 2, 2023
1 parent 5eabb96 commit 5135fbb
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions test/projects/assorted/@npm-closedsource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions test/projects/assorted/@npm-opensource-os/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions test/projects/assorted/@npm-opensource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions test/projects/assorted/@sls-closedsource-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions test/projects/assorted/@sls-closedsource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down

0 comments on commit 5135fbb

Please sign in to comment.