@waits/cadence 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/theme.ts +2 -2
package/package.json
CHANGED
package/scripts/theme.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* the palette and writes a themes/<name>.json. See the cadence skill.
|
|
13
13
|
*/
|
|
14
14
|
import { mkdirSync, writeFileSync } from "node:fs";
|
|
15
|
-
import { join } from "node:path";
|
|
15
|
+
import { dirname, join } from "node:path";
|
|
16
16
|
import { deriveTheme } from "../src/theme/derive";
|
|
17
17
|
|
|
18
18
|
const args = process.argv.slice(2);
|
|
@@ -61,8 +61,8 @@ if (!accent) {
|
|
|
61
61
|
const name = flag("--name") ?? "brand";
|
|
62
62
|
const theme = deriveTheme({ name, accent, ink: flag("--ink"), paper: flag("--paper"), gold: flag("--gold") });
|
|
63
63
|
|
|
64
|
-
mkdirSync("themes", { recursive: true });
|
|
65
64
|
const out = flag("--out") ?? join("themes", `${name}.json`);
|
|
65
|
+
mkdirSync(dirname(out), { recursive: true });
|
|
66
66
|
writeFileSync(out, JSON.stringify(theme, null, 2));
|
|
67
67
|
|
|
68
68
|
// Portable design summary — a human-readable companion to the JSON.
|