Skip to content

Commit f94395c

Browse files
committed
fix(package.json): fix wrong main and files path, fix declaration not bundled
1 parent 5aa5dde commit f94395c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
"semantic-release",
2525
"typedoc"
2626
],
27-
"main": "./dist/index.js",
27+
"main": "dist/src/index.js",
28+
"types": "dist/src/index.d.ts",
2829
"files": [
29-
"dist/**/*"
30+
"dist/src/**/*"
3031
],
3132
"scripts": {
3233
"build:watch": "tsc --watch --project tsconfig.json",
@@ -59,9 +60,10 @@
5960
},
6061
"typedocOptions": {
6162
"entryPoints": [
62-
"./src"
63+
"src"
6364
],
64-
"tsconfig": "./tsconfig.json"
65+
"tsconfig": "tsconfig.json",
66+
"headings": false
6567
},
6668
"release": {
6769
"plugins": [

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"lib": ["ESNext"],
66
"baseUrl": "src",
77
"module": "CommonJS",
8+
"declaration": true,
89
"outDir": "dist"
910
},
1011
"include": ["src/**/*.ts", "test/**/*.ts"]

0 commit comments

Comments
 (0)