Skip to content

Commit 2aa39fb

Browse files
committed
fix: restore yarn and workflow compatibility
1 parent 80f673b commit 2aa39fb

6 files changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/compile.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
uses: actions/setup-node@v6
1010
with:
1111
node-version: 24
12-
cache: yarn
13-
cache-dependency-path: yarn.lock
1412
- name: Enable Corepack
15-
run: corepack enable
13+
run: |
14+
corepack enable
15+
corepack install
1616
- name: Install dependencies and build
1717
run: corepack yarn install --immutable
1818
- name: Run tests

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
uses: actions/setup-node@v6
1919
with:
2020
node-version: 24
21-
cache: yarn
22-
cache-dependency-path: yarn.lock
2321
registry-url: 'https://registry.npmjs.org'
2422
- name: Enable Corepack
25-
run: corepack enable
23+
run: |
24+
corepack enable
25+
corepack install
2626
- name: Install dependencies and build
2727
run: corepack yarn install --immutable
2828
- name: Publish to NPM

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ lib
55
test.ts
66
.yarn/
77
.yarnrc
8-
.yarnrc.yml
98
.nvmrc
109
.pnp.*

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npm run prepare
1+
yarn validate

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
"main": "lib/spoof.js",
77
"types": "lib/spoof.d.ts",
88
"scripts": {
9-
"prepare": "husky && yarn lint && yarn build",
9+
"prepare": "husky",
1010
"build": "tsc -p tsconfig.build.json",
1111
"debug": "ts-node src/__debug__/browser-debug.ts",
1212
"lint": "yarn ts-standard --fix",
13-
"test": "jest"
13+
"test": "jest",
14+
"validate": "yarn lint && yarn build"
1415
},
1516
"keywords": [
1617
"bezier-curve",

0 commit comments

Comments
 (0)