Skip to content

Commit 8075f42

Browse files
committed
feat: fix missing ts defines
1 parent 095e838 commit 8075f42

5 files changed

Lines changed: 17 additions & 7 deletions

File tree

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ test
99
*.zip
1010
.prettierrc.json
1111
eslint.config.mjs
12-
12+
tsconfig*.json
13+
src
1314

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v0.1.3
2+
### 修复
3+
1. 修复无法加载 TS 类型定义的问题
4+
15
## v0.1.2
26
### 修复
37
1. 修复无法加载 esm module 的问题

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
}
1616
},
1717
"files": [
18-
"dist/",
19-
"src",
20-
"tsconfig.json",
21-
"tsconfig.build-cjs.json",
22-
"tsconfig.build-esm.json"
18+
"dist/"
2319
],
2420
"publishConfig": {
2521
"access": "public"

src/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
export { decodeTvboxJson, parseTvboxJson } from './tvbox-json-decrypt.js';
2-
export type * from './types.js';
2+
export type {
3+
Doh,
4+
Live,
5+
Parse,
6+
Recordable,
7+
Rule,
8+
Site,
9+
TVBoxConfig,
10+
} from './types.js';

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"declaration": true,
77
"target": "ES2021",
88
"sourceMap": true,
9+
"rootDir": ".",
910
"outDir": "./dist",
1011
"esModuleInterop": true,
1112
"incremental": true,

0 commit comments

Comments
 (0)