Skip to content

Commit 6bb68bb

Browse files
committed
refactor: replace verify-node-version.cjs with verify-node-version.js and update package.json preinstall script
- Replaced the deprecated verify-node-version.cjs with a new implementation in verify-node-version.js, utilizing modern JavaScript features. - Updated the preinstall script in package.json to conditionally skip checks in CI environments, enhancing the installation process. - Adjusted tsconfig.json to exclude the old verify-node-version.cjs file, ensuring a cleaner project structure. - Updated various dependencies in pnpm-lock.yaml to their latest versions for improved performance and security.
1 parent 4ae9f4b commit 6bb68bb

File tree

5 files changed

+349
-1224
lines changed

5 files changed

+349
-1224
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"build:packages": "nx run-many --target=build --parallel --projects=tag:type:package",
6161
"build:packages:prod": "nx run-many --target=build:prod --parallel --projects=tag:type:package",
6262
"clean": "nx run-many --target=clean && rimraf node_modules",
63-
"preinstall": "node verify-node-version.cjs",
63+
"preinstall": "node -e \"if(process.env.CI == 'true') {console.info('Skipping preinstall...')} else {process.exit(1)}\" || (node verify-node-version.js && npm -y exec only-allow pnpm)",
6464
"postinstall": "is-ci || husky || exit 0",
6565
"lint": "pnpm run lint:prettier && pnpm run lint:eslint",
6666
"lint:affected:attw": "nx affected --target=lint:attw --parallel --exclude=*-bench,docs,storybook --nxBail",

0 commit comments

Comments
 (0)