Skip to content

Commit 7958fe0

Browse files
committed
fix: Updated types layout.
1 parent 2ddd454 commit 7958fe0

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,13 @@
3737
],
3838
"type": "module",
3939
"exports": "./dist/index.js",
40-
"typings": "./types/index.d.ts",
41-
"types": "./types/index.d.ts",
40+
"types": "./dist/index.d.ts",
4241
"scripts": {
4342
"dev": "swc -s -w -d dist src",
44-
"prebuild": "rm -rf dist types && npm run typecheck && npm run lint",
45-
"build": "swc --delete-dir-on-start -d dist src",
43+
"prebuild": "rm -rf dist && npm run lint",
44+
"build": "swc -d dist src",
45+
"postbuild": "tsc -p . --emitDeclarationOnly",
4646
"format": "prettier -w src test",
47-
"typecheck": "tsc -p . --emitDeclarationOnly",
4847
"lint": "eslint src test",
4948
"test": "c8 -c test/config/c8-local.json tap --rcfile=test/config/tap.yml test/*.test.ts",
5049
"test:ci": "c8 -c test/config/c8-ci.json tap --rcfile=test/config/tap.yml --no-color test/*.test.ts",
@@ -54,20 +53,20 @@
5453
},
5554
"dependencies": {
5655
"image-size": "^1.0.2",
57-
"undici": "^5.10.0"
56+
"undici": "^5.11.0"
5857
},
5958
"devDependencies": {
60-
"@cowtech/eslint-config": "^8.7.2",
59+
"@cowtech/eslint-config": "^8.7.5",
6160
"@swc/cli": "^0.1.57",
62-
"@swc/core": "^1.2.245",
63-
"@types/node": "^18.7.14",
61+
"@swc/core": "^1.3.7",
62+
"@types/node": "^18.8.4",
6463
"@types/tap": "^15.0.7",
6564
"c8": "^7.12.0",
6665
"chokidar": "^3.5.3",
6766
"prettier": "^2.7.1",
6867
"tap": "^16.3.0",
6968
"ts-node": "^10.9.1",
70-
"typescript": "^4.8.2"
69+
"typescript": "^4.8.4"
7170
},
7271
"engines": {
7372
"node": ">=14.15.0"

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"jsx": "preserve",
77
"declaration": true,
88
"outDir": "dist",
9-
"declarationDir": "types",
109
"allowJs": false,
1110
"allowSyntheticDefaultImports": true,
1211
"esModuleInterop": true,

0 commit comments

Comments
 (0)