Skip to content

Commit 97cec67

Browse files
bluwyAndarist
andauthored
Migrate to tsdown (#63)
* Migrate to tsdown * Update pnpm config * Apply suggestion from @Andarist * last commit. oh no --------- Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
1 parent 96b71cf commit 97cec67

6 files changed

Lines changed: 450 additions & 1127 deletions

File tree

package.json

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,34 @@
1515
},
1616
"repository": {
1717
"type": "git",
18-
"url": "https://github.com/changesets/ghcommit.git"
18+
"url": "git+https://github.com/changesets/ghcommit.git"
1919
},
20+
"type": "commonjs",
21+
"sideEffects": false,
2022
"exports": {
2123
".": {
2224
"import": "./dist/index.mjs",
23-
"require": "./dist/index.js",
24-
"types": "./dist/index.d.ts"
25+
"require": "./dist/index.cjs"
2526
},
2627
"./core": {
2728
"import": "./dist/core.mjs",
28-
"require": "./dist/core.js",
29-
"types": "./dist/core.d.ts"
29+
"require": "./dist/core.cjs"
3030
},
3131
"./fs": {
3232
"import": "./dist/fs.mjs",
33-
"require": "./dist/fs.js",
34-
"types": "./dist/fs.d.ts"
33+
"require": "./dist/fs.cjs"
3534
},
3635
"./git": {
3736
"import": "./dist/git.mjs",
38-
"require": "./dist/git.js",
39-
"types": "./dist/git.d.ts"
37+
"require": "./dist/git.cjs"
4038
},
4139
"./node": {
4240
"import": "./dist/node.mjs",
43-
"require": "./dist/node.js",
44-
"types": "./dist/node.d.ts"
41+
"require": "./dist/node.cjs"
4542
}
4643
},
4744
"scripts": {
48-
"build": "rm -rf dist && pnpm codegen:github && tsc --noEmit && tsup",
45+
"build": "pnpm codegen:github && tsc --noEmit && tsdown",
4946
"codegen:github": "graphql-codegen --config src/github/codegen.ts",
5047
"format:check": "prettier --check \"**/*.{ts,tsx,md}\"",
5148
"format:fix": "prettier --write \"**/*.{ts,tsx,md}\"",
@@ -74,8 +71,9 @@
7471
"pino": "^9.3.2",
7572
"pino-pretty": "^11.2.2",
7673
"prettier": "^3.3.3",
74+
"publint": "^0.3.20",
7775
"ts-node": "^10.9.2",
78-
"tsup": "^8.1.0",
76+
"tsdown": "^0.22.0",
7977
"typescript": "^5.3.3",
8078
"vitest": "^4.1.5"
8179
},

0 commit comments

Comments
 (0)