@aedis/cli 0.6.0 → 0.7.0

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/README.md CHANGED
@@ -6,9 +6,9 @@ before any file is written, npm dependencies are pinned to exact versions at lea
6
6
  script runs.
7
7
 
8
8
  ```bash
9
- npx @aedis/cli@0.6.0 init
10
- npx @aedis/cli@0.6.0 add button approval-card
11
- npx @aedis/cli@0.6.0 diff
9
+ npx @aedis/cli@0.7.0 init
10
+ npx @aedis/cli@0.7.0 add button approval-card
11
+ npx @aedis/cli@0.7.0 diff
12
12
  ```
13
13
 
14
14
  Always pin the version, as above. Never run `npx aedis`: the unscoped `aedis` package on npm is not this one.
package/dist/aedis.js CHANGED
@@ -1649,7 +1649,7 @@ function planFiles(items, config, root) {
1649
1649
  }
1650
1650
  //#endregion
1651
1651
  //#region src/cli.ts
1652
- const VERSION = "0.6.0";
1652
+ const VERSION = "0.7.0";
1653
1653
  /** What `aedis init` installs: config, theme tokens, cn and the security primitives. */
1654
1654
  const INIT_ITEMS = [
1655
1655
  "theme",
@@ -1813,7 +1813,7 @@ async function run(argv, io) {
1813
1813
  }
1814
1814
  if (!existsSync(path.join(root, "package.json"))) throw new Error(`${root} has no package.json; run inside your app`);
1815
1815
  if (command === "init") {
1816
- const config = readConfig(root) ?? defaultConfig(root, flags.release ?? `v0.6.0`);
1816
+ const config = readConfig(root) ?? defaultConfig(root, flags.release ?? `v0.7.0`);
1817
1817
  if (!isRelease(config.release)) throw new Error(`invalid release ${config.release}`);
1818
1818
  const decoded = flags.preset === void 0 ? null : decodePreset(flags.preset);
1819
1819
  if (decoded && !decoded.ok) throw new Error(`preset refused: ${decoded.error}`);
@@ -1849,7 +1849,7 @@ ${themeToCss(theme)}
1849
1849
  }
1850
1850
  if (command === "theme" && args[0] === "import") {
1851
1851
  if (!args[1]) throw new Error("theme import: give the theme's JSON file");
1852
- const config = readConfig(root) ?? defaultConfig(root, `v0.6.0`);
1852
+ const config = readConfig(root) ?? defaultConfig(root, `v0.7.0`);
1853
1853
  const input = insideProject(root, path.relative(root, path.resolve(io.cwd, args[1])));
1854
1854
  const result = themeImport(readFileSync(input, "utf8"), path.basename(input));
1855
1855
  if (!result.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aedis/cli",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Add Aedis UI components to your app with verified provenance: signed releases, exact and aged dependencies, no install scripts.",
5
5
  "keywords": [
6
6
  "aedis",