Skip to content

Commit 387a355

Browse files
committed
chore(metadata): resolve the platform-objects ledger seam to SOURCE in tests and typecheck
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ARYe3yQTQCUFm5qPYNgKaJ
1 parent 865534b commit 387a355

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

packages/metadata/tsconfig.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@
99
],
1010
"compilerOptions": {
1111
"outDir": "dist",
12-
"rootDir": "src",
12+
"rootDir": "../..",
1313
"types": [
1414
"node",
1515
"js-yaml"
16-
]
16+
],
17+
"paths": {
18+
"@objectstack/platform-objects/system": ["../platform-objects/src/system/index.ts"]
19+
}
1720
}
1821
}

packages/metadata/vitest.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ export default defineConfig({
4343
replacement: path.join(path.resolve(__dirname, '..'), 'spec/src/$1/index.ts'),
4444
},
4545
{ find: /^@objectstack\/spec$/, replacement: path.resolve(__dirname, '../spec/src/index.ts') },
46+
// [#16100] The deployment-ledger writer/reader pair the notification-event
47+
// migration's receipt cases drive (`attestFreshDatastore` seeds the
48+
// fresh-store row, `isDataMigrationVerified` reads the verdict back). The
49+
// entry is ANCHORED on the subpath rather than spelled bare: this package
50+
// publishes a FILE-shaped subpath (`./plugin`), so a bare prefix rule with
51+
// a file replacement would resolve `…/system` to
52+
// `…/platform-objects/src/index.ts/system` — ENOTDIR at run time, from a
53+
// config that reads as correct.
54+
{
55+
find: /^@objectstack\/platform-objects\/system$/,
56+
replacement: path.resolve(__dirname, '../platform-objects/src/system/index.ts'),
57+
},
4658
// Subpath BEFORE the bare package, same prefix-match reason: `./node` is a
4759
// published subpath served by a FILE (`types/src/node.ts` — the node-only slice
4860
// the root export deliberately excludes), so the bare entry would resolve it to

0 commit comments

Comments
 (0)