Skip to content

Commit 167b470

Browse files
authored
Merge pull request #3 from dogmar/claude/fix-readme-sync-ci-L4HRC
2 parents 4286d6e + ab0687e commit 167b470

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎.github/workflows/sync-readme.yml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
push:
55
branches: [main]
66
paths:
7-
- package/src/squircle.css
8-
- package/src/merge.ts
9-
- package/src/plugin.ts
7+
- package/src/**
8+
- package/scripts/generate-squircle-css.ts
9+
- package/vite.config.ts
10+
- scripts/sync-readme.sh
11+
- vite.config.ts
1012

1113
jobs:
1214
sync:

‎package/scripts/generate-squircle-css.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { execFileSync } from "node:child_process";
12
import { mkdirSync, writeFileSync } from "node:fs";
23
import { dirname, join } from "node:path";
34
import { fileURLToPath } from "node:url";
@@ -82,4 +83,5 @@ const distDir = join(__dirname, "..", "dist");
8283
mkdirSync(distDir, { recursive: true });
8384
const outPath = join(distDir, "squircle.css");
8485
writeFileSync(outPath, output);
86+
execFileSync("npx", ["vp", "fmt", outPath], { stdio: "inherit" });
8587
console.log(`Generated ${outPath}`);

0 commit comments

Comments
 (0)