@aedis/cli 0.3.0 → 0.4.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 +3 -3
- package/dist/aedis.js +3 -3
- package/package.json +1 -1
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.
|
|
10
|
-
npx @aedis/cli@0.
|
|
11
|
-
npx @aedis/cli@0.
|
|
9
|
+
npx @aedis/cli@0.4.0 init
|
|
10
|
+
npx @aedis/cli@0.4.0 add button approval-card
|
|
11
|
+
npx @aedis/cli@0.4.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
|
@@ -1618,7 +1618,7 @@ function planFiles(items, config, root) {
|
|
|
1618
1618
|
}
|
|
1619
1619
|
//#endregion
|
|
1620
1620
|
//#region src/cli.ts
|
|
1621
|
-
const VERSION = "0.
|
|
1621
|
+
const VERSION = "0.4.0";
|
|
1622
1622
|
/** What `aedis init` installs: config, theme tokens, cn and the security primitives. */
|
|
1623
1623
|
const INIT_ITEMS = [
|
|
1624
1624
|
"theme",
|
|
@@ -1782,7 +1782,7 @@ async function run(argv, io) {
|
|
|
1782
1782
|
}
|
|
1783
1783
|
if (!existsSync(path.join(root, "package.json"))) throw new Error(`${root} has no package.json; run inside your app`);
|
|
1784
1784
|
if (command === "init") {
|
|
1785
|
-
const config = readConfig(root) ?? defaultConfig(root, flags.release ?? `v0.
|
|
1785
|
+
const config = readConfig(root) ?? defaultConfig(root, flags.release ?? `v0.4.0`);
|
|
1786
1786
|
if (!isRelease(config.release)) throw new Error(`invalid release ${config.release}`);
|
|
1787
1787
|
const decoded = flags.preset === void 0 ? null : decodePreset(flags.preset);
|
|
1788
1788
|
if (decoded && !decoded.ok) throw new Error(`preset refused: ${decoded.error}`);
|
|
@@ -1818,7 +1818,7 @@ ${themeToCss(theme)}
|
|
|
1818
1818
|
}
|
|
1819
1819
|
if (command === "theme" && args[0] === "import") {
|
|
1820
1820
|
if (!args[1]) throw new Error("theme import: give the theme's JSON file");
|
|
1821
|
-
const config = readConfig(root) ?? defaultConfig(root, `v0.
|
|
1821
|
+
const config = readConfig(root) ?? defaultConfig(root, `v0.4.0`);
|
|
1822
1822
|
const input = insideProject(root, path.relative(root, path.resolve(io.cwd, args[1])));
|
|
1823
1823
|
const result = themeImport(readFileSync(input, "utf8"), path.basename(input));
|
|
1824
1824
|
if (!result.ok) {
|
package/package.json
CHANGED