Skip to content

Commit

Permalink
Switch to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
grant0417 committed May 29, 2024
1 parent ffdd716 commit ed0a6e4
Show file tree
Hide file tree
Showing 11 changed files with 6,108 additions and 10,128 deletions.
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
dist/
lib/
node_modules/
jest.config.js
__integration-tests__
jest-resolver.js
webpack.config.js
5 changes: 2 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"plugins": ["jest", "@typescript-eslint"],
"plugins": ["@typescript-eslint"],
"extends": ["plugin:github/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand Down Expand Up @@ -51,7 +51,6 @@
},
"env": {
"node": true,
"es6": true,
"jest/globals": true
"es6": true
}
}
13 changes: 7 additions & 6 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set Node.js 20.x
- name: Set Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install dependencies
run: npm ci
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 8
run_install: true

- name: Rebuild the dist/ directory
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
npm run package
pnpm run package
- name: Compare the expected and actual dist/ directories
run: |
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
npm install

- name: Set Node.js
uses: actions/setup-node@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 8
run_install: true

- name: Rebuild the dist/ directory
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
npm run all
pnpm run all
test-simple-spec: # make sure the action works on a clean machine without building
if: startsWith(github.head_ref, 'auto-update') == false
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
1,509 changes: 752 additions & 757 deletions dist/index.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/index.js.map

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit ed0a6e4

Please sign in to comment.