diff --git a/.gitignore b/.gitignore index 2edadd9..9025db8 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ dist-renderer/ release/ .dev.docs .claude/ +dist/ diff --git a/package.json b/package.json index fc0e33f..8550393 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "scripts": { "test": "node --test tests/*.test.mjs", "typecheck": "tsc --noEmit", - "lint": "eslint ." + "lint": "eslint .", + "build:core": "rm -rf dist && tsc -p tsconfig.build.json" }, "devDependencies": { "@eslint/js": "^10.0.1", diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..c117cff --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noEmit": false, + "outDir": "dist", + "rootDir": "scripts", + "declaration": true, + "rewriteRelativeImportExtensions": true + }, + "include": ["scripts/providers/**/*.ts", "scripts/persist.ts"] +}