Skip to content

Commit 3bf8003

Browse files
committed
fix(ui-cli): the release-lockstep test reads the Changesets config through changesetConfigPath() (objectstack#25711)
4a deleted ui/.changeset/config.json, since changesets reads the monorepo root's config. app-generator.test.ts "pins the release lockstep that lets the platform range be derived" still opened `<ui>/.changeset/config.json` directly and failed with ENOENT in Test UI 3/16. It now resolves the config the way every other reader does: the tree's own standalone, the monorepo root's when nested. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0149BHSXfCdQywGaLdpRAtWe
1 parent 2a61f08 commit 3bf8003

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎ui/packages/cli/src/__tests__/app-generator.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ import {
8080
type AppGeneratorContext,
8181
type RouteInfo
8282
} from '../utils/app-generator.js';
83+
import { changesetConfigPath } from '../../../../scripts/workspace-root.mjs';
8384

8485
const __dirname = dirname(fileURLToPath(import.meta.url));
8586
/** packages/cli/src/__tests__ -> repo root */
@@ -741,8 +742,10 @@ describe('generated app manifests', () => {
741742
// current and guaranteed to exist on the registry. If that group were ever
742743
// split, deriving the range would silently start naming versions that were
743744
// never published — so the premise is asserted, not assumed.
745+
// The tree's own config standalone, the monorepo root's when nested under
746+
// objectstack's `ui/` (objectstack#25711): changesets reads one per repository.
744747
const changesetConfig = JSON.parse(
745-
readFileSync(resolve(REPO_ROOT, '.changeset/config.json'), 'utf-8')
748+
readFileSync(changesetConfigPath(REPO_ROOT), 'utf-8')
746749
) as { fixed?: string[][] };
747750
const cliVersion = readManifest(CLI_MANIFEST_PATH).version as string;
748751
const platformPackages = Object.entries(DEPENDENCY_ANCHORS)

0 commit comments

Comments
 (0)