chore: add pnpm usage

This commit is contained in:
chenshenhai 2022-12-31 17:42:21 +08:00
parent 222e6dc1a6
commit ed1fb05e84
4 changed files with 12293 additions and 1 deletions

1
.npmrc Normal file
View file

@ -0,0 +1 @@
# registry=https://registry.npmmirror.com

View file

@ -2,6 +2,7 @@
"name": "root",
"private": false,
"scripts": {
"postinstall": "npm run build",
"dev": "node ./scripts/dev.js",
"dev:rollup": "node ./scripts/dev-rollup.js",
"build": "npm run build:mod && npm run build:bundle && npm run build:min",
@ -12,7 +13,7 @@
"e2e": "mocha --exit ./__tests__/e2e.test.js",
"init": "lerna bootstrap",
"init:cnpm": "lerna bootstrap --npm-client=cnpm",
"clear": "rm -rf ./packages/*/dist/ && rm -rf ./packages/*/esm/ && rm -rf ./packages/*/node_modules/",
"clear": "rm -rf node_modules/ && rm -rf ./packages/*/dist/ && rm -rf ./packages/*/esm/ && rm -rf ./packages/*/node_modules/",
"jest": "jest --config jest.config.js",
"jest:update": "jest --update-snapshot --config jest.config.js",
"cover": "jest --config jest.cover.js",

12288
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load diff

2
pnpm-workspace.yaml Normal file
View file

@ -0,0 +1,2 @@
packages:
- packages/*