diff --git a/package.json b/package.json index e2c24354..8682432d 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,6 @@ "author": "tbxark ", "license": "MIT", "repository": "git@github.com:TBXark/ChatGPT-Telegram-Workers.git", - "types": "./packages/lib/core/dist/index.d.ts", - "module": "./packages/lib/core/dist/index.js", - "main": "./packages/lib/core/dist/index.cjs", "exports": { ".": { "types": "./packages/lib/core/dist/index.d.ts", @@ -16,10 +13,13 @@ "require": "./packages/lib/core/dist/index.cjs" } }, + "main": "./packages/lib/core/dist/index.cjs", + "module": "./packages/lib/core/dist/index.js", + "types": "./packages/lib/core/dist/index.d.ts", "files": [ + "./packages/lib/core/dist/index.cjs", "./packages/lib/core/dist/index.d.ts", - "./packages/lib/core/dist/index.js", - "./packages/lib/core/dist/index.cjs" + "./packages/lib/core/dist/index.js" ], "scripts": { "lint": "eslint --fix *.js *.ts packages plugins scripts", diff --git a/tsconfig.json b/tsconfig.json index 15e3df9d..d7e00582 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,7 @@ { "compilerOptions": { + "composite": true, "target": "ESNext", - "module": "ESNext", - "moduleResolution": "node", "jsx": "react", "lib": [ "ESNext", @@ -10,6 +9,8 @@ "DOM.Iterable" ], "rootDir": ".", + "module": "ESNext", + "moduleResolution": "node", "types": ["node"], "allowJs": true, "strict": true, @@ -17,9 +18,8 @@ "declarationMap": true, "outDir": "dist", "removeComments": true, - "esModuleInterop": true, - "composite": true, - "sourceMap": true + "sourceMap": true, + "esModuleInterop": true }, "exclude": ["**/node_modules", "**/dist"] -} \ No newline at end of file +}