From bc1ca0a3e6f0a3c5a257f3cf89b0a180ab1e5748 Mon Sep 17 00:00:00 2001 From: scottwey Date: Sun, 30 Jul 2023 01:41:46 -0700 Subject: [PATCH] more build fixes 0.3.7 --- typescript-openai/tsconfig.json | 22 +++++++++++++++------- typescript/package.json | 2 +- typescript/tsconfig.json | 16 ++++++++++++---- typescript/vite.config.ts | 2 +- 4 files changed, 29 insertions(+), 13 deletions(-) diff --git a/typescript-openai/tsconfig.json b/typescript-openai/tsconfig.json index c063bfe..30e02d8 100644 --- a/typescript-openai/tsconfig.json +++ b/typescript-openai/tsconfig.json @@ -1,8 +1,16 @@ { - "compilerOptions": { - "target": "ES5", - "lib": ["ES2015"], - "types": ["node"], - "esModuleInterop": true, - } - } + "compilerOptions": { + "moduleResolution": "node", + "target": "es5", + "module": "es2015", + "lib": ["es2015", "es2016", "es2017", "dom"], + "strict": true, + "sourceMap": false, + "declaration": true, + "allowSyntheticDefaultImports": true, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "typeRoots": ["node_modules/@types"] + }, + "include": ["src"] +} diff --git a/typescript/package.json b/typescript/package.json index de3d288..056896a 100644 --- a/typescript/package.json +++ b/typescript/package.json @@ -1,7 +1,7 @@ { "name": "starpoint", "author": "pointable ", - "version": "0.3.6", + "version": "0.3.7", "description": "TypeScript API for starpoint.ai", "source": "src/index.ts", "types": "dist/index.d.ts", diff --git a/typescript/tsconfig.json b/typescript/tsconfig.json index ceef775..30e02d8 100644 --- a/typescript/tsconfig.json +++ b/typescript/tsconfig.json @@ -1,8 +1,16 @@ { "compilerOptions": { - "target": "ES5", - "lib": ["ES2015"], - "esModuleInterop": true, + "moduleResolution": "node", + "target": "es5", + "module": "es2015", + "lib": ["es2015", "es2016", "es2017", "dom"], + "strict": true, + "sourceMap": false, + "declaration": true, + "allowSyntheticDefaultImports": true, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "typeRoots": ["node_modules/@types"] }, - "include": ["src", "writer/types"] + "include": ["src"] } diff --git a/typescript/vite.config.ts b/typescript/vite.config.ts index 7193c6a..1e02524 100644 --- a/typescript/vite.config.ts +++ b/typescript/vite.config.ts @@ -12,5 +12,5 @@ export default defineConfig({ fileName: "index", }, }, - plugins: [dts()], + plugins: [dts({ staticImport: true, rollupTypes: true })], });