Skip to content

Commit a46697b

Browse files
committed
chore: test tsdown
1 parent b0ceb01 commit a46697b

File tree

7 files changed

+392
-980
lines changed

7 files changed

+392
-980
lines changed

package.config.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

package.json

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,25 @@
2020
"sideEffects": false,
2121
"type": "module",
2222
"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",
2924
"./package.json": "./package.json"
3025
},
3126
"main": "./dist/index.cjs",
3227
"module": "./dist/index.js",
33-
"types": "./dist/index.d.ts",
28+
"types": "./dist/index.d.cts",
3429
"files": [
3530
"dist"
3631
],
3732
"scripts": {
38-
"build": "run-s clean generate pkg:build pkg:check",
33+
"build": "run-s clean generate pkg:build",
3934
"clean": "rimraf .workshop dist",
4035
"commit": "cz",
4136
"dev": "pnpm workshop:dev",
4237
"format": "prettier --write --cache --ignore-unknown .",
4338
"generate": "rimraf src/icons && node -r esbuild-register scripts/generate.ts && pnpm format",
4439
"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",
4842
"prepare": "husky install",
4943
"prepublishOnly": "pnpm build",
5044
"release": "semantic-release",
@@ -92,10 +86,10 @@
9286
"@commitlint/config-conventional": "^19.8.1",
9387
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
9488
"@sanity/browserslist-config": "^1.0.5",
95-
"@sanity/pkg-utils": "^8.1.21",
9689
"@sanity/prettier-config": "^2.0.1",
9790
"@sanity/semantic-release-preset": "^5.0.0",
9891
"@sanity/tsconfig": "^2.0.0",
92+
"@sanity/tsdown-config": "^0.3.0",
9993
"@sanity/ui": "^3.1.10",
10094
"@sanity/ui-workshop": "^3.4.0",
10195
"@svgr/core": "^8.1.0",
@@ -128,6 +122,7 @@
128122
"react-is": "^19.2.1",
129123
"rimraf": "^6.0.1",
130124
"semantic-release": "^24.2.9",
125+
"tsdown": "0.17.0-beta.6",
131126
"typescript": "5.9.3"
132127
},
133128
"peerDependencies": {
@@ -138,7 +133,14 @@
138133
"node": ">=14.0.0"
139134
},
140135
"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+
}
142144
},
143145
"pnpm": {
144146
"overrides": {

0 commit comments

Comments
 (0)