Skip to content

Commit 39ef28d

Browse files
committed
pnpm
1 parent c12089a commit 39ef28d

File tree

4 files changed

+1874
-1757
lines changed

4 files changed

+1874
-1757
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ jobs:
1515
with:
1616
node-version: 14.x
1717
registry-url: https://registry.npmjs.org/
18+
- uses: pnpm/action-setup@v2.1.0
19+
with:
20+
version: 6.32.9
21+
run_install: |
22+
- args: [--frozen-lockfile]
1823
1924
- name: Publish
20-
run: |
21-
yarn install --ignore-scripts
22-
yarn publish
25+
run: pnpm publish
2326
env:
2427
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
"types"
2424
],
2525
"scripts": {
26-
"prepublishOnly": "yarn build",
27-
"prebuild": "rm -rf esm/ && rm -rf cjs/ && rm -rf types/ && rm -rf dist/",
28-
"build": "yarn build:esm && yarn build:cjs && yarn build:types",
29-
"build:watch": "tsc-watch -p ./tsconfig.json --onSuccess 'yarn build'",
26+
"prepublishOnly": "pnpm build",
27+
"clean": "rm -rf esm/ && rm -rf cjs/ && rm -rf types/ && rm -rf dist/",
28+
"build": "pnpm build:esm && pnpm build:cjs && pnpm build:types",
29+
"build:watch": "tsc-watch -p ./tsconfig.json --onSuccess 'pnpm build'",
3030
"build:cjs": "ncc build src/index.ts -o cjs -m -e react",
3131
"build:esm": "tsc --target ESNext --module ES6 --outDir esm",
3232
"build:types": "tsc --d --declarationMap --declarationDir types",
@@ -38,6 +38,8 @@
3838
"@types/node": "^17.0.23",
3939
"@vercel/ncc": "^0.33.4",
4040
"next": "^12.1.4",
41+
"react": "^18.0.0",
42+
"react-dom": "^18.0.0",
4143
"typescript": "^4.6.3"
4244
}
4345
}

0 commit comments

Comments
 (0)