Skip to content

Commit 4af3b76

Browse files
committed
fix: npm/pnpm scripts
1 parent 4dc7c75 commit 4af3b76

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@
3232
"module": "./es/index",
3333
"typings": "es/index.d.ts",
3434
"scripts": {
35-
"start": "dumi dev",
36-
"docs:build": "dumi build",
35+
"start": "export NODE_OPTIONS=--openssl-legacy-provider && dumi dev",
36+
"docs:build": "export NODE_OPTIONS=--openssl-legacy-provider && dumi build",
3737
"docs:deploy": "gh-pages -d docs-dist",
3838
"compile": "father-build",
39-
"deploy": "npm run docs:build && npm run docs:deploy",
39+
"deploy": "pnpm run docs:build && pnpm run docs:deploy",
4040
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
4141
"test": "vitest --watch=false",
4242
"test:watch": "vitest --ui --changed",
4343
"test:coverage": "vitest run --coverage",
44-
"prepublishOnly": "npm run compile && np --no-cleanup --yolo --no-publish",
44+
"prepublishOnly": "pnpm run compile && np --no-cleanup --yolo --no-publish",
4545
"lint": "eslint src/ --ext .tsx,.ts",
4646
"lint:tsc": "tsc -p tsconfig.json --noEmit",
47-
"now-build": "npm run docs:build"
47+
"now-build": "pnpm run docs:build"
4848
},
4949
"peerDependencies": {
5050
"react": ">=18",

0 commit comments

Comments
 (0)