Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 2 additions & 22 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Use Node ${{matrix.node_version}}
uses: actions/setup-node@master
- name: Set up env
uses: the-guild-org/shared-config/setup@v1
with:
node-version: ${{ matrix.node_version }}
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build dependencies
run: pnpm run build
- name: Run Tests
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"devDependencies": {
"@changesets/changelog-github": "0.5.1",
"@changesets/cli": "2.29.4",
"@ianvs/prettier-plugin-sort-imports": "4.4.2",
"@theguild/prettier-config": "3.0.1",
"@types/fs-extra": "11.0.4",
"@types/js-yaml": "4.0.9",
Expand All @@ -77,6 +78,8 @@
"jest-resolve": "29.7.0",
"jest-snapshot-serializer-raw": "2.0.0",
"prettier": "3.5.3",
"prettier-plugin-pkg": "0.19.1",
"prettier-plugin-sh": "0.17.4",
"rimraf": "6.0.1",
"typescript": "5.8.3",
"vitest": "3.2.1"
Expand Down
65 changes: 65 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/__fixtures__/simple-esm-only/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"node": ">= 14.0.0"
},
"main": "dist/esm/index.js",
"typings": "dist/typings/index.d.ts",
"exports": {
".": {
"import": {
Expand All @@ -18,7 +19,6 @@
},
"./package.json": "./package.json"
},
"typings": "dist/typings/index.d.ts",
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion test/__fixtures__/simple-exports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"pnpm": ">= 8.0.0"
},
"main": "dist/esm/index.js",
"typings": "dist/typings/index.d.ts",
"exports": {
".": {
"require": {
Expand Down Expand Up @@ -37,7 +38,6 @@
},
"./package.json": "./package.json"
},
"typings": "dist/typings/index.d.ts",
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"node": ">= 14.0.0"
},
"main": "dist/esm/index.js",
"typings": "dist/typings/index.d.ts",
"exports": {
".": {
"require": {
Expand Down Expand Up @@ -36,7 +37,6 @@
},
"./package.json": "./package.json"
},
"typings": "dist/typings/index.d.ts",
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"bbb": "dist/cjs/log-the-world.js"
},
"main": "dist/esm/index.js",
"typings": "dist/typings/index.d.ts",
"exports": {
".": {
"require": {
Expand Down Expand Up @@ -39,7 +40,6 @@
},
"./package.json": "./package.json"
},
"typings": "dist/typings/index.d.ts",
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"node": ">= 14.0.0"
},
"main": "dist/esm/index.js",
"typings": "dist/typings/index.d.ts",
"exports": {
".": {
"require": {
Expand All @@ -22,7 +23,6 @@
},
"./package.json": "./package.json"
},
"typings": "dist/typings/index.d.ts",
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion test/__fixtures__/simple-monorepo/packages/a/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"node": ">= 14.0.0"
},
"main": "dist/esm/index.js",
"typings": "dist/typings/index.d.ts",
"exports": {
".": {
"require": {
Expand Down Expand Up @@ -36,7 +37,6 @@
},
"./package.json": "./package.json"
},
"typings": "dist/typings/index.d.ts",
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion test/__fixtures__/simple-monorepo/packages/b/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"bbb": "dist/cjs/log-the-world.js"
},
"main": "dist/esm/index.js",
"typings": "dist/typings/index.d.ts",
"exports": {
".": {
"require": {
Expand Down Expand Up @@ -39,7 +40,6 @@
},
"./package.json": "./package.json"
},
"typings": "dist/typings/index.d.ts",
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion test/__fixtures__/simple-monorepo/packages/c/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"node": ">= 14.0.0"
},
"main": "dist/esm/index.js",
"typings": "dist/typings/index.d.ts",
"exports": {
".": {
"require": {
Expand All @@ -22,7 +23,6 @@
},
"./package.json": "./package.json"
},
"typings": "dist/typings/index.d.ts",
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion test/__fixtures__/simple-types-only/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"node": ">= 14.0.0"
},
"main": "dist/esm/index.js",
"typings": "dist/typings/index.d.ts",
"exports": {
".": {
"require": {
Expand All @@ -22,7 +23,6 @@
},
"./package.json": "./package.json"
},
"typings": "dist/typings/index.d.ts",
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion test/__fixtures__/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"pnpm": ">= 8.0.0"
},
"main": "dist/esm/index.js",
"typings": "dist/typings/index.d.ts",
"exports": {
".": {
"require": {
Expand Down Expand Up @@ -38,7 +39,6 @@
"./package.json": "./package.json",
"./style.css": "./dist/esm/style.css"
},
"typings": "dist/typings/index.d.ts",
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion test/__fixtures__/tsconfig-build-json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"node": ">= 14.0.0"
},
"main": "dist/esm/index.js",
"typings": "dist/typings/index.d.ts",
"exports": {
".": {
"require": {
Expand Down Expand Up @@ -37,7 +38,6 @@
"./package.json": "./package.json",
"./style.css": "./dist/esm/style.css"
},
"typings": "dist/typings/index.d.ts",
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down