From ed0c2e9d1da882acaa55854229336aa05476fd06 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Wed, 22 May 2024 22:00:58 +0800 Subject: [PATCH] refactor: update sdk publish file module type --- packages/client-sdk/package.json | 6 +++++- packages/client-sdk/tsconfig.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/client-sdk/package.json b/packages/client-sdk/package.json index e8be518..e6a2cd6 100644 --- a/packages/client-sdk/package.json +++ b/packages/client-sdk/package.json @@ -1,6 +1,6 @@ { "name": "tianji-client-sdk", - "version": "1.0.1", + "version": "1.0.3", "description": "", "main": "lib/index.js", "scripts": { @@ -9,6 +9,10 @@ "generate:client": "openapi-ts -i ../../website/openapi.json -o src/open/client", "test": "vitest" }, + "files": [ + "lib", + "src" + ], "keywords": [ "tianji" ], diff --git a/packages/client-sdk/tsconfig.json b/packages/client-sdk/tsconfig.json index 0f7e22e..f27d29a 100644 --- a/packages/client-sdk/tsconfig.json +++ b/packages/client-sdk/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "module": "ESNext", + "module": "CommonJS", "outDir": "./lib", "baseUrl": ".", "declaration": true,