Skip to content

Commit ac99774

Browse files
authoredSep 3, 2023
refactor: change to tsc emitted declarations (#661)
1 parent 0b00264 commit ac99774

File tree

4 files changed

+117
-331
lines changed

4 files changed

+117
-331
lines changed
 

‎package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
"test:watch": "vitest",
2121
"update": "yarn upgrade-interactive",
2222
"typecheck": "tsc -p tsconfig.eslint.json",
23-
"build": "tsup && gen-esm-wrapper dist/index.js dist/index.mjs",
23+
"build": "tsup && yarn build:esm && yarn build:types",
24+
"build:esm": "gen-esm-wrapper dist/index.js dist/index.mjs",
25+
"build:types": "tsc -b src",
2426
"bump": "cliff-jumper",
2527
"check-update": "cliff-jumper --dry-run",
2628
"postinstall": "husky install .github/husky",
@@ -47,7 +49,7 @@
4749
"@sapphire/eslint-config": "^5.0.2",
4850
"@sapphire/prettier-config": "^2.0.0",
4951
"@sapphire/ts-config": "^5.0.0",
50-
"@types/node": "^18.17.14",
52+
"@types/node": "^20.5.9",
5153
"@types/ws": "^8.5.5",
5254
"@typescript-eslint/eslint-plugin": "^6.5.0",
5355
"@typescript-eslint/parser": "^6.5.0",
@@ -65,7 +67,7 @@
6567
"lint-staged": "^14.0.1",
6668
"pinst": "^3.0.0",
6769
"prettier": "^3.0.3",
68-
"tsup": "6.6.2",
70+
"tsup": "^7.2.0",
6971
"typedoc": "^0.25.0",
7072
"typedoc-json-parser": "^8.2.0",
7173
"typescript": "^5.2.2",

‎src/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": "../tsconfig.base.json",
33
"compilerOptions": {
44
"rootDir": "./",
5-
"outDir": "../dist"
5+
"outDir": "../dist",
6+
"emitDeclarationOnly": true
67
},
78
"include": ["."]
89
}

‎tsup.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { defineConfig } from 'tsup';
44

55
export default defineConfig({
66
clean: true,
7-
dts: true,
87
entry: ['src/**/*.ts'],
98
format: ['cjs'],
109
minify: false,

‎yarn.lock

+110-326
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.