diff --git a/core/.npmignore b/core/.npmignore new file mode 100644 index 000000000..c2111fc33 --- /dev/null +++ b/core/.npmignore @@ -0,0 +1,2 @@ +.env +.vscode \ No newline at end of file diff --git a/core/package.json b/core/package.json index 184dd7a56..a058ceb75 100644 --- a/core/package.json +++ b/core/package.json @@ -3,7 +3,8 @@ "version": "1.0.1", "description": "The Continue Core contains functionality that can be shared across web, VS Code, or Node.js server. It is written in TypeScript and contains much of the functionality that was previously inside of the legacy Continue Python Server.", "scripts": { - "test": "jest ./test/diff.test.ts" + "test": "jest ./test/diff.test.ts", + "build:npm": "tsc -p ./tsconfig.npm.json" }, "author": "Nate Sesti and Ty Dunn", "license": "Apache-2.0", diff --git a/core/tsconfig.npm.json b/core/tsconfig.npm.json new file mode 100644 index 000000000..7a807f03f --- /dev/null +++ b/core/tsconfig.npm.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "target": "ESNext", + "useDefineForClassFields": true, + "lib": ["DOM", "DOM.Iterable", "ESNext", "ES2021"], + "allowJs": false, + "skipLibCheck": true, + "esModuleInterop": false, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "module": "ESNext", + "moduleResolution": "Node", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "react-jsx", + "noEmitOnError": false, + "types": ["jest", "node"], + "outDir": "dist" + }, + "include": ["./**/*.ts", "indexing/embeddings/TransformersJsWorkerThread.js"] +}