Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

Commit c566317

Browse files
committed
only run npm-force-resolution if package-lock.json exists
1 parent ab49ff9 commit c566317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"build": "rm -rf dist && tsc --project .",
2525
"lint": "eslint . --ext .ts --fix --max-warnings 0 && prettier --write '**/*.{md,json}'",
2626
"lintNoFix": "eslint . --ext .ts --max-warnings 0 && prettier --check '**/*.{md,json}'",
27-
"preinstall": "npm install --package-lock-only --ignore-scripts --no-audit && npx npm-force-resolutions",
27+
"preinstall": "test -e ./package-lock.json && npx npm-force-resolutions || true",
2828
"test": "nyc mocha 'test/**/*.test.ts'"
2929
},
3030
"dependencies": {

0 commit comments

Comments
 (0)