Skip to content

Commit f0ae8a1

Browse files
committed
fix: Updated types layout.
1 parent 1e077fa commit f0ae8a1

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

package.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@
2525
],
2626
"type": "module",
2727
"exports": "./dist/index.js",
28-
"typings": "./types/index.d.ts",
29-
"types": "./types/index.d.ts",
28+
"types": "./dist/index.d.ts",
3029
"scripts": {
3130
"dev": "swc -s -w -d dist src",
32-
"prebuild": "rm -rf dist types && npm run typecheck && npm run lint",
33-
"build": "swc --delete-dir-on-start -d dist src",
31+
"prebuild": "rm -rf dist && npm run lint",
32+
"build": "swc -d dist src",
33+
"postbuild": "tsc -p . --emitDeclarationOnly",
3434
"format": "prettier -w src test",
35-
"typecheck": "tsc -p . --emitDeclarationOnly",
3635
"lint": "eslint src test",
3736
"test": "c8 -c test/config/c8-local.json tap --rcfile=test/config/tap.yml test/*.test.ts",
3837
"test:ci": "c8 -c test/config/c8-ci.json tap --rcfile=test/config/tap.yml --no-color test/*.test.ts",
@@ -43,22 +42,22 @@
4342
"dependencies": {
4443
"ajv": "^8.11.0",
4544
"fastify-plugin": "^4.2.1",
46-
"http-errors-enhanced": "^1.0.9"
45+
"http-errors-enhanced": "^1.0.11"
4746
},
4847
"devDependencies": {
49-
"@cowtech/eslint-config": "^8.7.2",
48+
"@cowtech/eslint-config": "^8.7.5",
5049
"@swc/cli": "^0.1.57",
51-
"@swc/core": "^1.2.245",
52-
"@types/node": "^18.7.14",
50+
"@swc/core": "^1.3.7",
51+
"@types/node": "^18.8.4",
5352
"@types/tap": "^15.0.7",
5453
"ajv-formats": "^2.1.1",
5554
"c8": "^7.12.0",
5655
"chokidar": "^3.5.3",
57-
"fastify": "^4.5.3",
56+
"fastify": "^4.8.1",
5857
"prettier": "^2.7.1",
5958
"tap": "^16.3.0",
6059
"ts-node": "^10.9.1",
61-
"typescript": "^4.8.2"
60+
"typescript": "^4.8.4"
6261
},
6362
"engines": {
6463
"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)