Skip to content

Commit fe9e4e7

Browse files
chore(deps): update pnpm/action-setup action to v4 (#401)
* chore(deps): update pnpm/action-setup action to v4 * Update ci.yaml * Fix * G --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Arda TANRIKULU <[email protected]>
1 parent cfda014 commit fe9e4e7

File tree

14 files changed

+81
-33
lines changed

14 files changed

+81
-33
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,10 @@ jobs:
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
22-
- name: Use Node ${{matrix.node_version}}
23-
uses: actions/setup-node@master
22+
- name: Set up env
23+
uses: the-guild-org/shared-config/setup@v1
2424
with:
2525
node-version: ${{ matrix.node_version }}
26-
- uses: pnpm/action-setup@v2
27-
name: Install pnpm
28-
id: pnpm-install
29-
with:
30-
version: 8
31-
run_install: false
32-
- name: Get pnpm store directory
33-
id: pnpm-cache
34-
shell: bash
35-
run: |
36-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
37-
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
38-
name: Setup pnpm cache
39-
with:
40-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
41-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
42-
restore-keys: |
43-
${{ runner.os }}-pnpm-store-
44-
- name: Install dependencies
45-
run: pnpm install
4626
- name: Build dependencies
4727
run: pnpm run build
4828
- name: Run Tests

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"devDependencies": {
6565
"@changesets/changelog-github": "0.5.1",
6666
"@changesets/cli": "2.29.4",
67+
"@ianvs/prettier-plugin-sort-imports": "4.4.2",
6768
"@theguild/prettier-config": "3.0.1",
6869
"@types/fs-extra": "11.0.4",
6970
"@types/js-yaml": "4.0.9",
@@ -77,6 +78,8 @@
7778
"jest-resolve": "29.7.0",
7879
"jest-snapshot-serializer-raw": "2.0.0",
7980
"prettier": "3.5.3",
81+
"prettier-plugin-pkg": "0.19.1",
82+
"prettier-plugin-sh": "0.17.4",
8083
"rimraf": "6.0.1",
8184
"typescript": "5.8.3",
8285
"vitest": "3.2.1"

pnpm-lock.yaml

Lines changed: 65 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/__fixtures__/simple-esm-only/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"node": ">= 14.0.0"
66
},
77
"main": "dist/esm/index.js",
8+
"typings": "dist/typings/index.d.ts",
89
"exports": {
910
".": {
1011
"import": {
@@ -18,7 +19,6 @@
1819
},
1920
"./package.json": "./package.json"
2021
},
21-
"typings": "dist/typings/index.d.ts",
2222
"publishConfig": {
2323
"directory": "dist",
2424
"access": "public"

test/__fixtures__/simple-exports/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"pnpm": ">= 8.0.0"
77
},
88
"main": "dist/esm/index.js",
9+
"typings": "dist/typings/index.d.ts",
910
"exports": {
1011
".": {
1112
"require": {
@@ -37,7 +38,6 @@
3738
},
3839
"./package.json": "./package.json"
3940
},
40-
"typings": "dist/typings/index.d.ts",
4141
"publishConfig": {
4242
"directory": "dist",
4343
"access": "public"

test/__fixtures__/simple-monorepo-pnpm/packages/a/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"node": ">= 14.0.0"
66
},
77
"main": "dist/esm/index.js",
8+
"typings": "dist/typings/index.d.ts",
89
"exports": {
910
".": {
1011
"require": {
@@ -36,7 +37,6 @@
3637
},
3738
"./package.json": "./package.json"
3839
},
39-
"typings": "dist/typings/index.d.ts",
4040
"publishConfig": {
4141
"directory": "dist",
4242
"access": "public"

test/__fixtures__/simple-monorepo-pnpm/packages/b/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"bbb": "dist/cjs/log-the-world.js"
99
},
1010
"main": "dist/esm/index.js",
11+
"typings": "dist/typings/index.d.ts",
1112
"exports": {
1213
".": {
1314
"require": {
@@ -39,7 +40,6 @@
3940
},
4041
"./package.json": "./package.json"
4142
},
42-
"typings": "dist/typings/index.d.ts",
4343
"publishConfig": {
4444
"directory": "dist",
4545
"access": "public"

test/__fixtures__/simple-monorepo-pnpm/packages/c/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"node": ">= 14.0.0"
66
},
77
"main": "dist/esm/index.js",
8+
"typings": "dist/typings/index.d.ts",
89
"exports": {
910
".": {
1011
"require": {
@@ -22,7 +23,6 @@
2223
},
2324
"./package.json": "./package.json"
2425
},
25-
"typings": "dist/typings/index.d.ts",
2626
"publishConfig": {
2727
"directory": "dist",
2828
"access": "public"

test/__fixtures__/simple-monorepo/packages/a/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"node": ">= 14.0.0"
66
},
77
"main": "dist/esm/index.js",
8+
"typings": "dist/typings/index.d.ts",
89
"exports": {
910
".": {
1011
"require": {
@@ -36,7 +37,6 @@
3637
},
3738
"./package.json": "./package.json"
3839
},
39-
"typings": "dist/typings/index.d.ts",
4040
"publishConfig": {
4141
"directory": "dist",
4242
"access": "public"

test/__fixtures__/simple-monorepo/packages/b/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"bbb": "dist/cjs/log-the-world.js"
99
},
1010
"main": "dist/esm/index.js",
11+
"typings": "dist/typings/index.d.ts",
1112
"exports": {
1213
".": {
1314
"require": {
@@ -39,7 +40,6 @@
3940
},
4041
"./package.json": "./package.json"
4142
},
42-
"typings": "dist/typings/index.d.ts",
4343
"publishConfig": {
4444
"directory": "dist",
4545
"access": "public"

0 commit comments

Comments
 (0)