Skip to content

Commit

Permalink
refactor: change to tsc emitted declarations (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Sep 3, 2023
1 parent 0b00264 commit ac99774
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 331 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"test:watch": "vitest",
"update": "yarn upgrade-interactive",
"typecheck": "tsc -p tsconfig.eslint.json",
"build": "tsup && gen-esm-wrapper dist/index.js dist/index.mjs",
"build": "tsup && yarn build:esm && yarn build:types",
"build:esm": "gen-esm-wrapper dist/index.js dist/index.mjs",
"build:types": "tsc -b src",
"bump": "cliff-jumper",
"check-update": "cliff-jumper --dry-run",
"postinstall": "husky install .github/husky",
Expand All @@ -47,7 +49,7 @@
"@sapphire/eslint-config": "^5.0.2",
"@sapphire/prettier-config": "^2.0.0",
"@sapphire/ts-config": "^5.0.0",
"@types/node": "^18.17.14",
"@types/node": "^20.5.9",
"@types/ws": "^8.5.5",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
Expand All @@ -65,7 +67,7 @@
"lint-staged": "^14.0.1",
"pinst": "^3.0.0",
"prettier": "^3.0.3",
"tsup": "6.6.2",
"tsup": "^7.2.0",
"typedoc": "^0.25.0",
"typedoc-json-parser": "^8.2.0",
"typescript": "^5.2.2",
Expand Down
3 changes: 2 additions & 1 deletion src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../tsconfig.base.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "../dist"
"outDir": "../dist",
"emitDeclarationOnly": true
},
"include": ["."]
}
1 change: 0 additions & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { defineConfig } from 'tsup';

export default defineConfig({
clean: true,
dts: true,
entry: ['src/**/*.ts'],
format: ['cjs'],
minify: false,
Expand Down
Loading

0 comments on commit ac99774

Please sign in to comment.