Skip to content

Commit 4c585cb

Browse files
committed
fix(schema): package.json type must be third despite the warning
1 parent b788fc5 commit 4c585cb

File tree

5 files changed

+554
-1720
lines changed

5 files changed

+554
-1720
lines changed

.github/workflows/gh-pages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: ⎔ Set up pnpm
2828
uses: pnpm/action-setup@v4
2929
with:
30-
version: 9.5.0
30+
version: 9.12.3
3131

3232
- name: Set .homepage in package.json
3333
uses: jossef/action-set-json-field@v2

.github/workflows/main-ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: ⎔ Set up pnpm
4444
uses: pnpm/action-setup@v4
4545
with:
46-
version: 9.5.0
46+
version: 9.12.3
4747

4848
- name: 📥 Download deps
4949
run: |
@@ -76,7 +76,7 @@ jobs:
7676
- name: ⎔ Set up pnpm
7777
uses: pnpm/action-setup@v4
7878
with:
79-
version: 9.5.0
79+
version: 9.12.3
8080

8181
- name: 📥 Download deps
8282
run: pnpm install && pnpm run build

components/schema/package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "@crystallize/schema",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"license": "MIT",
55
"type": "module",
6+
"main": "./dist/index.cjs",
67
"exports": {
78
".": {
8-
"types": "./dist/index.d.ts",
99
"import": "./dist/index.js",
10-
"require": "./dist/index.cjs"
10+
"require": "./dist/index.cjs",
11+
"types": "./dist/index.d.ts"
1112
}
1213
},
13-
"main": "./dist/index.cjs",
1414
"types": "./dist/index.d.ts",
1515
"scripts": {
1616
"build": "rm -rf dist && tsup src/index.ts --format esm,cjs --dts",
@@ -27,5 +27,11 @@
2727
"tsup": "^8.3.5",
2828
"typescript": "^5.6.3",
2929
"vitest": "^2.1.5"
30-
}
30+
},
31+
"files": [
32+
"package.json",
33+
"dist",
34+
"README.md",
35+
"LICENSE"
36+
]
3137
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dev": "turbo run watch --parallel",
1717
"demo": "turbo run start --filter @crystallize/demo-app"
1818
},
19-
"packageManager": "pnpm@9.5.0",
19+
"packageManager": "pnpm@9.12.3",
2020
"volta": {
2121
"node": "20.15.0"
2222
}

0 commit comments

Comments
 (0)