Skip to content

Commit

Permalink
build: --no-package-lock in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Jan 9, 2025
1 parent 68927ec commit 3b009b1
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "true",
"start": "npm run build && npx http-server . -o",
"pretest": "HUSKY=0 npm install",
"pretest": "HUSKY=0 npm install --no-package-lock",
"test": "node node.js"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/browser-rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
"build": "npm install && rm -rf dist && rollup -c",
"build": "npm install --no-package-lock && rm -rf dist && rollup -c",
"start": "npm run build && npx http-server . -o"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/browser-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
"build": "npm install && rm -rf dist && webpack",
"build": "npm install --no-package-lock && rm -rf dist && webpack",
"start": "npm run build && npx http-server . -o"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions examples/node-commonjs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/node-commonjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
"pretest": "npm install",
"pretest": "npm install --no-package-lock",
"test": "node example.js"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/node-esmodules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"test:package": "( node --version | grep -vq 'v16' ) || ( node --experimental-json-modules package.mjs )",
"test:example": "node example.mjs",
"pretest": "npm install",
"pretest": "npm install --no-package-lock",
"test": "npm-run-all test:*"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/node-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
"pretest": "npm install",
"pretest": "npm install --no-package-lock",
"test": "jest"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/node-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"build": "rm -rf dist && webpack",
"pretest": "npm install",
"pretest": "npm install --no-package-lock",
"test": "npm run build && node dist/v1.js && node dist/v4.js && node dist/v7.js && node dist/all.js"
},
"dependencies": {
Expand Down

0 comments on commit 3b009b1

Please sign in to comment.