@styleframe/cli 2.3.0 → 2.3.2

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/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from "citty";
3
- const version = "2.3.0";
3
+ const version = "2.3.2";
4
4
  const description = "A command-line interface for styleframe.";
5
5
  const main = defineCommand({
6
6
  meta: {
@@ -9,13 +9,14 @@ const main = defineCommand({
9
9
  description
10
10
  },
11
11
  subCommands: {
12
- init: () => import("./init-FJVY7-no.js").then((m) => m.default),
13
- build: () => import("./build-CB8xVviw.js").then((n) => n.e).then((m) => m.default)
12
+ init: () => import("./init-CzpnWkDQ.js").then((m) => m.default),
13
+ build: () => import("./build-aC0xw4RW.js").then((m) => m.default)
14
14
  }
15
15
  });
16
16
  function run() {
17
17
  runMain(main);
18
18
  }
19
+ run();
19
20
  export {
20
21
  run as default
21
22
  };
@@ -90,9 +90,9 @@ async function addPackageJsonDependencies(cwd) {
90
90
  packageJson.devDependencies["@styleframe/loader"] = "^2.0.0";
91
91
  packageJson.devDependencies["@styleframe/plugin"] = "^2.0.0";
92
92
  packageJson.devDependencies["@styleframe/pro"] = "^2.0.0";
93
- packageJson.devDependencies["@styleframe/runtime"] = "^2.0.0";
94
93
  packageJson.devDependencies["@styleframe/theme"] = "^2.0.0";
95
94
  packageJson.devDependencies["@styleframe/transpiler"] = "^2.0.0";
95
+ packageJson.dependencies["@styleframe/runtime"] = "^2.0.0";
96
96
  await writeFile$1(packageJsonPath, JSON.stringify(packageJson, null, 2));
97
97
  consola.success(`Added dependencies to "package.json".`);
98
98
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@styleframe/cli",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "description": "A command-line interface for styleframe.",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -25,15 +25,15 @@
25
25
  "magicast": "^0.5.0"
26
26
  },
27
27
  "peerDependencies": {
28
- "@styleframe/loader": "^2.2.0"
28
+ "@styleframe/loader": "^2.4.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@styleframe/config-typescript": "^2",
32
32
  "@styleframe/config-vite": "^2",
33
- "@styleframe/core": "^2.4.0",
34
- "@styleframe/license": "^2.0.0",
35
- "@styleframe/theme": "^2.1.0",
36
- "@styleframe/loader": "^2.2.0",
33
+ "@styleframe/core": "^2.6.0",
34
+ "@styleframe/license": "^2.0.2",
35
+ "@styleframe/theme": "^2.4.0",
36
+ "@styleframe/loader": "^2.4.0",
37
37
  "@vitest/coverage-v8": "^3.2.4",
38
38
  "tsx": "^4.20.6",
39
39
  "typescript": "^5.8.3",
@@ -1,10 +0,0 @@
1
- import { createHash } from "node:crypto";
2
- const e = globalThis.process?.getBuiltinModule?.("crypto")?.hash, r = "sha256", s = "base64url";
3
- function digest(t) {
4
- if (e) return e(r, t, s);
5
- const o = createHash(r).update(t);
6
- return globalThis.process?.versions?.webcontainer ? o.digest().toString(s) : o.digest(s);
7
- }
8
- export {
9
- digest
10
- };