|
20 | 20 | "sideEffects": false, |
21 | 21 | "type": "module", |
22 | 22 | "exports": { |
23 | | - ".": { |
24 | | - "source": "./src/index.ts", |
25 | | - "import": "./dist/index.js", |
26 | | - "require": "./dist/index.cjs", |
27 | | - "default": "./dist/index.js" |
28 | | - }, |
| 23 | + ".": "./src/index.ts", |
29 | 24 | "./package.json": "./package.json" |
30 | 25 | }, |
31 | 26 | "main": "./dist/index.cjs", |
32 | 27 | "module": "./dist/index.js", |
33 | | - "types": "./dist/index.d.ts", |
| 28 | + "types": "./dist/index.d.cts", |
34 | 29 | "files": [ |
35 | 30 | "dist" |
36 | 31 | ], |
37 | 32 | "scripts": { |
38 | | - "build": "run-s clean generate pkg:build pkg:check", |
| 33 | + "build": "run-s clean generate pkg:build", |
39 | 34 | "clean": "rimraf .workshop dist", |
40 | 35 | "commit": "cz", |
41 | 36 | "dev": "pnpm workshop:dev", |
42 | 37 | "format": "prettier --write --cache --ignore-unknown .", |
43 | 38 | "generate": "rimraf src/icons && node -r esbuild-register scripts/generate.ts && pnpm format", |
44 | 39 | "lint": "oxlint", |
45 | | - "pkg:build": "pkg build --strict", |
46 | | - "pkg:check": "pkg --strict", |
47 | | - "pkg:watch": "pkg watch --strict", |
| 40 | + "pkg:build": "tsdown", |
| 41 | + "pkg:watch": "tsdown --watch", |
48 | 42 | "prepare": "husky install", |
49 | 43 | "prepublishOnly": "pnpm build", |
50 | 44 | "release": "semantic-release", |
|
92 | 86 | "@commitlint/config-conventional": "^19.8.1", |
93 | 87 | "@ianvs/prettier-plugin-sort-imports": "^4.7.0", |
94 | 88 | "@sanity/browserslist-config": "^1.0.5", |
95 | | - "@sanity/pkg-utils": "^8.1.21", |
96 | 89 | "@sanity/prettier-config": "^2.0.1", |
97 | 90 | "@sanity/semantic-release-preset": "^5.0.0", |
98 | 91 | "@sanity/tsconfig": "^2.0.0", |
| 92 | + "@sanity/tsdown-config": "^0.3.0", |
99 | 93 | "@sanity/ui": "^3.1.10", |
100 | 94 | "@sanity/ui-workshop": "^3.4.0", |
101 | 95 | "@svgr/core": "^8.1.0", |
|
128 | 122 | "react-is": "^19.2.1", |
129 | 123 | "rimraf": "^6.0.1", |
130 | 124 | "semantic-release": "^24.2.9", |
| 125 | + "tsdown": "0.17.0-beta.6", |
131 | 126 | "typescript": "5.9.3" |
132 | 127 | }, |
133 | 128 | "peerDependencies": { |
|
138 | 133 | "node": ">=14.0.0" |
139 | 134 | }, |
140 | 135 | "publishConfig": { |
141 | | - "access": "public" |
| 136 | + "access": "public", |
| 137 | + "exports": { |
| 138 | + ".": { |
| 139 | + "require": "./dist/index.cjs", |
| 140 | + "import": "./dist/index.js" |
| 141 | + }, |
| 142 | + "./package.json": "./package.json" |
| 143 | + } |
142 | 144 | }, |
143 | 145 | "pnpm": { |
144 | 146 | "overrides": { |
|
0 commit comments