refactor: update sdk publish file module type

This commit is contained in:
moonrailgun 2024-05-22 22:00:58 +08:00
parent 154b8b4b64
commit ed0c2e9d1d
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "tianji-client-sdk", "name": "tianji-client-sdk",
"version": "1.0.1", "version": "1.0.3",
"description": "", "description": "",
"main": "lib/index.js", "main": "lib/index.js",
"scripts": { "scripts": {
@ -9,6 +9,10 @@
"generate:client": "openapi-ts -i ../../website/openapi.json -o src/open/client", "generate:client": "openapi-ts -i ../../website/openapi.json -o src/open/client",
"test": "vitest" "test": "vitest"
}, },
"files": [
"lib",
"src"
],
"keywords": [ "keywords": [
"tianji" "tianji"
], ],

View File

@ -1,7 +1,7 @@
{ {
"extends": "../../tsconfig.base.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"module": "ESNext", "module": "CommonJS",
"outDir": "./lib", "outDir": "./lib",
"baseUrl": ".", "baseUrl": ".",
"declaration": true, "declaration": true,