Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
phshy0607 committed Mar 31, 2022
1 parent 6627bc7 commit cffdef1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
26 changes: 17 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,22 @@
"bin": {
"docit": "bin/docit.js"
},
"types": "./build/index.d.ts",
"author": {
"name": "phshy0607",
"email": "[email protected]"
},
"type": "module",
"main": "./build/node/index.js",
"module": "./build/node/index.js",
"type": "module",
"types": "./build/node/index.d.ts",
"exports": {
".": {
"import": "./build/node/index.js",
"types": "./build/node/index.d.ts"
}
},
"scripts": {
"dev": "rm -rf build && run-p dev-node entry-prepare dev-client",
"dev": "rimraf -rf build && run-p dev-node entry-prepare dev-client",
"dev-node": "tsc -w -p src/node",
"dev-client": "tsc -w -p src/client",
"entry-prepare": "node scripts/cpEntryFile.js",
Expand All @@ -21,10 +31,8 @@
"docs": "run-p dev docs-dev",
"docs-dev": "node ./bin/docit start",
"docs-build": "node ./bin/docit build docs",
"clean": "rm -rf node_modules build docs-dist",
"test": "vitest",
"publish:pages": "node scripts/gh.js",
"release": "yarn build && yarn publish && yarn publish:pages"
"release": "yarn build && yarn publish && node scripts/gh.js"
},
"files": [
"build",
Expand All @@ -34,9 +42,6 @@
"scripts",
"docs-dist"
],
"engines": {
"node": ">=14"
},
"devDependencies": {
"@types/fs-extra": "^9.0.13",
"@types/lodash-es": "^4.17.6",
Expand Down Expand Up @@ -97,6 +102,9 @@
"resolutions": {
"react-is": "16.13.1"
},
"engines": {
"node": ">=14"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion src/node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"baseUrl": ".",
"outDir": "../../build/node",
"types": ["node"],
"jsx": "react"
"declaration": true
},
"include": ["."]
}

0 comments on commit cffdef1

Please sign in to comment.