Skip to content

Commit 34c1aa5

Browse files
committed
test(cli): resolve @objectstack/service-package to source in the cli suite
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8e95731 commit 34c1aa5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎packages/cli/vitest.config.ts‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,18 @@ export default defineConfig({
962962
find: /^@objectstack\/plugin-sharing$/,
963963
replacement: path.resolve(__dirname, '../plugins/plugin-sharing/src/index.ts'),
964964
},
965+
// `commands/migrate/packageless-overlays.ts` mounts a live
966+
// `@objectstack/service-package` `PackageServicePlugin` under `--apply`, so
967+
// the `.custom` pair the ceremony creates persists to `sys_packages`;
968+
// `packageless-overlays.integration.test.ts` boots it the same way.
969+
// Resolved to source for the reason its neighbours give. Anchored
970+
// (service-package's bare entry is the one imported).
971+
// `check:test-source-alias` names this import and is the gate that fails
972+
// without the entry.
973+
{
974+
find: /^@objectstack\/service-package$/,
975+
replacement: path.resolve(__dirname, '../services/service-package/src/index.ts'),
976+
},
965977
],
966978
},
967979
test: {

0 commit comments

Comments
 (0)