Skip to content

Commit

Permalink
fix: Updated types layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShogunPanda committed Oct 12, 2022
1 parent 2ddd454 commit 7958fe0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
19 changes: 9 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,13 @@
],
"type": "module",
"exports": "./dist/index.js",
"typings": "./types/index.d.ts",
"types": "./types/index.d.ts",
"types": "./dist/index.d.ts",
"scripts": {
"dev": "swc -s -w -d dist src",
"prebuild": "rm -rf dist types && npm run typecheck && npm run lint",
"build": "swc --delete-dir-on-start -d dist src",
"prebuild": "rm -rf dist && npm run lint",
"build": "swc -d dist src",
"postbuild": "tsc -p . --emitDeclarationOnly",
"format": "prettier -w src test",
"typecheck": "tsc -p . --emitDeclarationOnly",
"lint": "eslint src test",
"test": "c8 -c test/config/c8-local.json tap --rcfile=test/config/tap.yml test/*.test.ts",
"test:ci": "c8 -c test/config/c8-ci.json tap --rcfile=test/config/tap.yml --no-color test/*.test.ts",
Expand All @@ -54,20 +53,20 @@
},
"dependencies": {
"image-size": "^1.0.2",
"undici": "^5.10.0"
"undici": "^5.11.0"
},
"devDependencies": {
"@cowtech/eslint-config": "^8.7.2",
"@cowtech/eslint-config": "^8.7.5",
"@swc/cli": "^0.1.57",
"@swc/core": "^1.2.245",
"@types/node": "^18.7.14",
"@swc/core": "^1.3.7",
"@types/node": "^18.8.4",
"@types/tap": "^15.0.7",
"c8": "^7.12.0",
"chokidar": "^3.5.3",
"prettier": "^2.7.1",
"tap": "^16.3.0",
"ts-node": "^10.9.1",
"typescript": "^4.8.2"
"typescript": "^4.8.4"
},
"engines": {
"node": ">=14.15.0"
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"jsx": "preserve",
"declaration": true,
"outDir": "dist",
"declarationDir": "types",
"allowJs": false,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
Expand Down

0 comments on commit 7958fe0

Please sign in to comment.