📦 package .js in npm package

This commit is contained in:
Nate Sesti 2024-03-19 12:33:37 -07:00
parent d87df3f7ea
commit e236cef37c
3 changed files with 26 additions and 1 deletions

2
core/.npmignore Normal file
View file

@ -0,0 +1,2 @@
.env
.vscode

View file

@ -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",

22
core/tsconfig.npm.json Normal file
View file

@ -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"]
}