Skip to content

Commit 3e19517

Browse files
dl102306dailin01
andauthored
bugfix: js 配置更新 (#870)
Co-authored-by: dailin01 <[email protected]>
1 parent 6a9e545 commit 3e19517

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

javascript/global.d.ts

Whitespace-only changes.

javascript/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@baiducloud/qianfan",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"publishConfig": {
55
"access": "public",
66
"registry": "https://registry.npmjs.org/"
@@ -14,6 +14,7 @@
1414
"module": "dist/bundle.esm.js",
1515
"browser": "dist/bundle.esm.js",
1616
"type": "module",
17+
"types": "dist/src/index.d.ts",
1718
"scripts": {
1819
"start": "NODE_ENV=production ts-node src/test/chatCompletion",
1920
"build": "npx rollup -c rollup.config.mjs",

javascript/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"allowSyntheticDefaultImports": true,
1010
"moduleResolution": "node",
1111
"resolveJsonModule": true,
12-
"noEmit": false
12+
"noEmit": false,
13+
"declaration": true
1314
},
1415
"include": ["src"],
1516
"exclude": ["node_modules", "dist"]

0 commit comments

Comments
 (0)