Skip to content

Commit 95c59d7

Browse files
committed
test(create-objectstack): the skills-single-copy scaffold pin reads the exact @objectstack/spec version
Claude-Session: https://claude.ai/code/session_01CxBKycaiUpA1yGx1XyoGqX Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4f417d7 commit 95c59d7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/create-objectstack/src/scaffold-skills-single-copy.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,11 @@ describe('a scaffolded project installs the package catalog, once', () => {
360360
]);
361361
});
362362

363-
it("depends on @objectstack/skills at @objectstack/spec's range", () => {
363+
it("depends on @objectstack/skills at @objectstack/spec's exact version", () => {
364364
const pkg = JSON.parse(fs.readFileSync(path.join(run.project, 'package.json'), 'utf8'));
365365
const spec = pkg.dependencies?.['@objectstack/spec'];
366-
expect(spec).toMatch(/^\^\d+\./);
366+
// An exact version, no `^`/`~`: the docs prescribe exact pins on the v18 line.
367+
expect(spec).toMatch(/^\d+\.\d+\.\d+/);
367368
expect(pkg.devDependencies?.[SKILLS_PACKAGE]).toBe(spec);
368369
});
369370

0 commit comments

Comments
 (0)