build: add build:core to compile the app-consumable core to dist/ (Phase 5d-2)

tsconfig.build.json emits providers/* + persist (+ their parsing.mjs/types deps)
to dist/ as ESM JS + .d.ts. Output is verified node:sqlite-free and functionally
runnable (parse+persist against an injected db). Foundation for the app importing
the shared core.
> obelisk@0.1.0 build:core
> rm -rf dist && tsc -p tsconfig.build.json; dist/ is gitignored.
This commit is contained in:
tommy0103
2026-07-09 09:34:25 +08:00
parent 1bda4da170
commit e04c07de05
3 changed files with 14 additions and 1 deletions
+1
View File
@@ -6,3 +6,4 @@ dist-renderer/
release/
.dev.docs
.claude/
dist/
+2 -1
View File
@@ -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",
+11
View File
@@ -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"]
}