Skip to content

Commit 8e87c4f

Browse files
authored
fix(build): don't force pnpm (#56)
* chore: remove preinstall script from package.json * build: update devDependencies in package.json to latest versions * build: update Babel config and dependencies * chore: Update type-check:watch script to use pnpm * ci: update corepack usage in GitHub Actions workflow * ci: update workflows to enable and use pnpm with corepack
1 parent 8b022e5 commit 8e87c4f

File tree

6 files changed

+4500
-3664
lines changed

6 files changed

+4500
-3664
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ jobs:
1515
ref: 'main'
1616

1717
- name: Enable corepack
18-
run: corepack enable
18+
run: |
19+
corepack enable pnpm
20+
corepack use pnpm
1921

2022
- name: Use Node.js
2123
uses: actions/setup-node@v4

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
ref: 'main'
1717

1818
- name: Enable corepack
19-
run: corepack enable
19+
run: |
20+
corepack enable pnpm
21+
corepack use pnpm
2022

2123
- name: Use Node.js
2224
uses: actions/setup-node@v4

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: Enable corepack
18-
run: corepack enable
18+
run: |
19+
corepack enable pnpm
20+
corepack use pnpm
1921

2022
- name: Use Node.js
2123
uses: actions/setup-node@v4

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ module.exports = {
1919
],
2020
plugins: [
2121
'@babel/plugin-transform-runtime',
22-
'@babel/plugin-proposal-class-properties',
22+
'@babel/plugin-transform-class-properties',
2323
],
2424
}

package.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@
1919
"clean": "rm -rf ./dist/ ./node_modules/.cache/ *.vcf *.ics",
2020
"lint:fix": "eslint . --fix",
2121
"lint": "eslint .",
22-
"preinstall": "npx only-allow pnpm",
2322
"pretty:fix": "prettier --write .",
2423
"pretty": "prettier --check .",
2524
"test:functional": "(./test-functional/test-vcard.js | tee vcard.vcf) && (./test-functional/test-vcalendar.js 2>/dev/null | tee vcard.ics)",
2625
"test:unit": "jest",
2726
"test:web-build": "NODE_ENV=development webpack --mode development && open ./test-functional/test-build.html",
2827
"test:web-export": "open ./test-functional/test-export.html",
29-
"type-check:watch": "yarn type-check -- --watch",
28+
"type-check:watch": "pnpm type-check --watch",
3029
"type-check": "tsc --noEmit"
3130
},
3231
"repository": {
@@ -49,20 +48,19 @@
4948
},
5049
"homepage": "https://github.com/joaocarmo/vcard-creator#readme",
5150
"devDependencies": {
52-
"@babel/core": "^7.24.0",
53-
"@babel/plugin-proposal-class-properties": "^7.18.6",
54-
"@babel/plugin-transform-runtime": "^7.24.0",
55-
"@babel/preset-env": "^7.24.0",
56-
"@babel/preset-typescript": "^7.23.3",
57-
"@babel/runtime": "^7.24.0",
51+
"@babel/core": "^7.24.8",
52+
"@babel/plugin-transform-runtime": "^7.24.7",
53+
"@babel/preset-env": "^7.24.8",
54+
"@babel/preset-typescript": "^7.24.7",
55+
"@babel/runtime": "^7.24.8",
5856
"@types/jest": "^29.5.12",
59-
"@types/node": "^20.11.25",
60-
"@typescript-eslint/eslint-plugin": "^7.1.1",
61-
"@typescript-eslint/parser": "^7.1.1",
57+
"@types/node": "^20.14.10",
58+
"@typescript-eslint/eslint-plugin": "^7.16.0",
59+
"@typescript-eslint/parser": "^7.16.0",
6260
"babel-core": "^6.26.3",
6361
"babel-jest": "^29.7.0",
6462
"babel-loader": "^9.1.3",
65-
"core-js": "^3.36.0",
63+
"core-js": "^3.37.1",
6664
"eslint": "^8.57.0",
6765
"eslint-config-airbnb-base": "^15.0.0",
6866
"eslint-config-airbnb-typescript": "^18.0.0",
@@ -71,11 +69,14 @@
7169
"eslint-plugin-jest": "^27.9.0",
7270
"eslint-plugin-prettier": "^5.1.3",
7371
"jest": "^29.7.0",
74-
"jest-date-mock": "^1.0.8",
75-
"prettier": "^3.2.5",
76-
"ts-jest": "^29.1.2",
77-
"typescript": "^5.4.2",
78-
"webpack": "^5.90.3",
72+
"jest-date-mock": "^1.0.10",
73+
"prettier": "^3.3.3",
74+
"ts-jest": "^29.2.2",
75+
"typescript": "^5.5.3",
76+
"webpack": "^5.93.0",
7977
"webpack-cli": "^5.1.4"
78+
},
79+
"dependencies": {
80+
"@babel/plugin-transform-class-properties": "^7.24.7"
8081
}
8182
}

0 commit comments

Comments
 (0)