Skip to content

Commit

Permalink
Move to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Mar 29, 2022
1 parent 03bb48e commit 25894ed
Show file tree
Hide file tree
Showing 4 changed files with 4,439 additions and 4,162 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
name: Test
on:
push:
branches:
- main
pull_request:
jobs:
full:
name: Node.js 17 Full
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 17
cache: yarn
cache: pnpm
- name: Install dependencies
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run tests
run: yarn test
run: pnpm test
env:
FORCE_COLOR: 2
short:
Expand All @@ -31,15 +37,19 @@ jobs:
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
cache: pnpm
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run unit tests
run: node --experimental-vm-modules node_modules/.bin/jest
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run tests
run: node --experimental-vm-modules node_modules/jest/bin/jest.js
env:
FORCE_COLOR: 2
58 changes: 29 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"react native"
],
"scripts": {
"test": "node --experimental-vm-modules node_modules/.bin/jest --coverage && eslint . && check-dts && size-limit"
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage && eslint . && check-dts && size-limit"
},
"author": "Andrey Sitnik <andrey@sitnik.ru>",
"license": "MIT",
Expand All @@ -30,39 +30,39 @@
},
"peerDependencies": {
"nanostores": "^0.5.2",
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
"devDependencies": {
"@babel/core": "^7.16.0",
"@logux/eslint-config": "^46.1.0",
"@size-limit/preset-small-lib": "^7.0.3",
"@testing-library/jest-dom": "^5.15.1",
"@testing-library/react": "^12.1.2",
"@types/jest": "^27.0.3",
"@types/jsdom": "^16.2.13",
"@types/node": "^16.11.11",
"@types/react": "^17.0.37",
"@types/react-dom": "^17.0.11",
"@types/ws": "^8.2.1",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"check-dts": "^0.6.4",
"clean-publish": "^3.4.3",
"eslint": "^8.3.0",
"@babel/core": "^7.17.8",
"@logux/eslint-config": "^46.1.1",
"@size-limit/preset-small-lib": "^7.0.8",
"@testing-library/jest-dom": "^5.16.3",
"@testing-library/react": "^12.1.4",
"@types/jest": "^27.4.1",
"@types/jsdom": "^16.2.14",
"@types/node": "^17.0.23",
"@types/react": "^17.0.43",
"@types/react-dom": "^17.0.14",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"check-dts": "^0.6.6",
"clean-publish": "^4.0.0",
"eslint": "^8.12.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^5.2.0",
"jest": "^27.4.2",
"eslint-plugin-promise": "^6.0.0",
"jest": "^27.5.1",
"nanodelay": "^2.0.2",
"nanostores": "^0.5.7",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"size-limit": "^7.0.3",
"ts-jest": "^27.0.7",
"typescript": "^4.5.2"
"nanostores": "^0.5.12",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"size-limit": "^7.0.8",
"ts-jest": "^27.1.4",
"typescript": "^4.6.3"
},
"prettier": {
"arrowParens": "avoid",
Expand Down Expand Up @@ -112,7 +112,7 @@
"index.js": "{ useStore }",
"nanostores": "{ map, computed }"
},
"limit": "845 B"
"limit": "1100 B"
}
]
}
Loading

0 comments on commit 25894ed

Please sign in to comment.