Skip to content

Commit

Permalink
Use pnpm instead of old NPM
Browse files Browse the repository at this point in the history
- Upgrade packages
- Resolves dependency linking #186
  • Loading branch information
timolins committed Jul 8, 2022
1 parent b19f6c8 commit b46a386
Show file tree
Hide file tree
Showing 10 changed files with 13,142 additions and 32,657 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,17 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1

- name: Lint
run: yarn lint

# - name: Test
# run: yarn test --ci --coverage --maxWorkers=2

- name: Build
run: yarn build
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
with:
version: 7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build package
run: pnpm build
15,400 changes: 0 additions & 15,400 deletions package-lock.json

This file was deleted.

14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@
"build": "tsdx build",
"lint": "tsdx lint",
"test": "echo \"No test specified\"",
"setup": "pnpm i && cd site && pnpm i && cd .. && pnpm run link",
"link": "pnpm link ./site/node_modules/react && pnpm link ./site/node_modules/react-dom",
"prepare": "tsdx build",
"size": "size-limit",
"analyze": "size-limit --why"
},
"peerDependencies": {
"react": ">=16",
"react-dom": ">=16"
},
"husky": {
"hooks": {
"pre-commit": "tsdx lint"
Expand Down Expand Up @@ -64,9 +62,15 @@
"@types/react-dom": "^17.0.0",
"csstype": "^3.0.7",
"size-limit": "^4.9.1",
"tsup": "^6.1.3",
"typescript": "^4.7.4",
"tsdx": "^0.14.1"
},
"dependencies": {
"goober": "^2.1.9"
"goober": "^2.1.10"
},
"peerDependencies": {
"react": ">=16",
"react-dom": ">=16"
}
}
Loading

0 comments on commit b46a386

Please sign in to comment.