Skip to content

Commit 9d6ec50

Browse files
committed
build(apps): wire base-runtime into build, typecheck and test pipelines
Add build:base-runtime and typecheck:base-runtime (tsc over base-runtime/tsconfig.json), sequence the base build before the node and deno-cache steps, publish base-runtime/ in the package files, and point the relocated base test suite at base-runtime/** (renamed from test:node-runtime, since those base-logic suites now live in base-runtime and run under node:test). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> test(apps): run apps test files serially to avoid subprocess races The Deno-spawning integration tests (DenoRuntimeSubprocessController, SecureFieldsCodecCompatibility) share a fixed os.tmpdir()/deno-runtime symlink, so under the default concurrent node --test one file's teardown unlinks the entrypoint another file is mid-spawn on (Module not found .../deno-runtime/main.ts). Pin --test-concurrency=1 so files run one at a time. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> base-runtime: include in turbo output
1 parent cf09ac5 commit 9d6ec50

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

packages/apps/package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,25 @@
66
"types": "./dist/index.d.ts",
77
"files": [
88
"dist/",
9+
"base-runtime/",
910
"deno-runtime/",
1011
".deno-cache/"
1112
],
1213
"scripts": {
13-
"build": "run-s build:clean build:default build:deno-cache",
14-
"build:clean": "rimraf dist",
14+
"build": "run-s build:clean build:default build:base-runtime build:deno-cache",
15+
"build:clean": "rimraf dist base-runtime/dist",
1516
"build:default": "tsc -p tsconfig.json",
17+
"build:base-runtime": "tsc -p base-runtime/tsconfig.json",
1618
"build:deno-cache": "node scripts/deno-cache.js",
1719
"dev": "tsc -p tsconfig.json --watch --preserveWatchOutput",
1820
"lint": "eslint .",
1921
"test:deno": "deno task --config=deno-runtime/deno.jsonc test",
2022
"test:node": "NODE_ENV=test node --require ts-node/register/transpile-only --test-reporter spec --test-concurrency=1 --test \"tests/**/*.test.ts\"",
21-
"testunit": "yarn test:node && yarn test:deno",
22-
"typecheck": "tsc -p tsconfig.json --noEmit"
23+
"test:base-runtime": "NODE_ENV=test node --require ts-node/register/transpile-only --test-reporter spec --test-concurrency=1 --test \"base-runtime/**/*.test.ts\"",
24+
"testunit": "run-s test:node test:deno test:base-runtime",
25+
"typecheck:default": "tsc -p tsconfig.json --noEmit",
26+
"typecheck:base-runtime": "tsc -p base-runtime/tsconfig.json --noEmit",
27+
"typecheck": "run-s typecheck:default typecheck:base-runtime"
2328
},
2429
"dependencies": {
2530
"@msgpack/msgpack": "3.0.0-beta2",

packages/apps/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"build": {
55
"dependsOn": ["^build"],
66
"inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/.tool-versions"],
7-
"outputs": ["deno-runtime/**", "scripts/**", ".deno-cache/**", "dist/**"]
7+
"outputs": ["base-runtime/**", "deno-runtime/**", "scripts/**", ".deno-cache/**", "dist/**"]
88
}
99
}
1010
}

0 commit comments

Comments
 (0)