Skip to content

Commit 5ed492c

Browse files
committed
Fix CI formatter verification issue.
1 parent d79a974 commit 5ed492c

7 files changed

Lines changed: 8 additions & 21 deletions

File tree

‎biome.json‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@
3636
}
3737
},
3838
"overrides": [
39-
{
40-
"includes": ["**/SKILL.md"],
41-
"formatter": {
42-
"enabled": false
43-
}
44-
},
4539
{
4640
"includes": [
4741
"packages/ts-css/src/**",

‎packages/purestack/src/init/agent-skill.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('PureStack agent skill', () => {
3030
it('marks the shipped skill as managed without breaking its frontmatter', async () => {
3131
const skill = await readPureStackSkill(packageRoot, '9.8.7')
3232
const [frontmatter, rest] = skill.split(/(?<=\n---\n)/, 2)
33-
expect(frontmatter).toMatch(/^---\nname: purestack-development\n/)
33+
expect(frontmatter).toMatch(/^---\n\s*name: purestack-development\n/)
3434
expect(rest).toMatch(
3535
/^\n<!-- Managed by PureStack 9\.8\.7\. Run `purestack skills update`/,
3636
)

‎packages/purestack/src/init/init.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ describe('project generation', () => {
495495
path.join(destination, PURESTACK_SKILL_PATH),
496496
'utf8',
497497
)
498-
expect(skill).toMatch(/^---\nname: purestack-development\n/)
498+
expect(skill).toMatch(/^---\n\s*name: purestack-development\n/)
499499
expect(skill).toContain(`<!-- Managed by PureStack ${cliVersion}.`)
500500
})
501501

‎scripts/verify-templates.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ async function main() {
122122
: ['install', '--no-audit', '--no-fund'],
123123
directory,
124124
)
125-
for (const script of ['check', 'test:ci', 'build', 'publish']) {
125+
// Verify content, not formatting: the generated site's own format script
126+
// reformats files the CLI writes.
127+
for (const script of ['lint', 'test:ci', 'build', 'publish']) {
126128
if (typeof project.scripts?.[script] === 'string')
127129
await runPackageManager(manager, ['run', script], directory)
128130
}

‎skills/purestack-development/SKILL.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
23
name: purestack-development
34
description: Build, redesign, or extend websites exclusively with PureStack and Regor. Use for every user request to create or modify a PureStack site, including its pages, components, styling, themes, layouts, and browser interactivity. Enforces TypeScript-first implementation, MDX, customized ThemePalette-based skins derived from PureStack's standard generator, fluent style APIs, reusable built-in components, and maintainable Regor components.
45
---

‎templates/starter/template/biome.json‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323
"semicolons": "asNeeded"
2424
}
2525
},
26-
"json": {
27-
"formatter": {
28-
"expand": "always"
29-
}
30-
},
3126
"linter": {
3227
"enabled": true,
3328
"rules": {

‎templates/starter/template/content/siteConfig.json‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,10 @@
1010
"size": "md"
1111
},
1212
"style": {
13-
"themes": [
14-
"light",
15-
"dark"
16-
],
13+
"themes": ["light", "dark"],
1714
"theme": {
1815
"skin": "starter",
19-
"presets": [
20-
"orange"
21-
]
16+
"presets": ["orange"]
2217
}
2318
},
2419
"navigation": {

0 commit comments

Comments
 (0)