@styleframe/cli 2.0.2 → 2.1.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/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from "citty";
3
- const version = "1.0.5";
3
+ const version = "2.1.0";
4
4
  const description = "A command-line interface for styleframe.";
5
5
  const main = defineCommand({
6
6
  meta: {
@@ -9,8 +9,8 @@ const main = defineCommand({
9
9
  description
10
10
  },
11
11
  subCommands: {
12
- init: () => import("./init-8BBfDuR2.js").then((m) => m.default),
13
- build: () => import("./build-DXu94ro9.js").then((n) => n.e).then((m) => m.default)
12
+ init: () => import("./init-ByQr9RvQ.js").then((m) => m.default),
13
+ build: () => import("./build-DGZKQLF6.js").then((n) => n.e).then((m) => m.default)
14
14
  }
15
15
  });
16
16
  function run() {
@@ -83,9 +83,15 @@ async function addPackageJsonDependencies(cwd) {
83
83
  if (await fileExists(packageJsonPath)) {
84
84
  const packageJson = JSON.parse(await readFile(packageJsonPath, "utf8"));
85
85
  if (!packageJson.devDependencies) packageJson.devDependencies = {};
86
- packageJson.devDependencies["styleframe"] = "^1.0.0";
87
- packageJson.devDependencies["@styleframe/theme"] = "^1.0.0";
88
- packageJson.devDependencies["@styleframe/pro"] = "^1.0.0";
86
+ packageJson.devDependencies["styleframe"] = "^2.0.0";
87
+ packageJson.devDependencies["@styleframe/cli"] = "^2.0.0";
88
+ packageJson.devDependencies["@styleframe/core"] = "^2.0.0";
89
+ packageJson.devDependencies["@styleframe/license"] = "^2.0.0";
90
+ packageJson.devDependencies["@styleframe/loader"] = "^2.0.0";
91
+ packageJson.devDependencies["@styleframe/plugin"] = "^2.0.0";
92
+ packageJson.devDependencies["@styleframe/pro"] = "^2.0.0";
93
+ packageJson.devDependencies["@styleframe/theme"] = "^2.0.0";
94
+ packageJson.devDependencies["@styleframe/transpiler"] = "^2.0.0";
89
95
  await writeFile$1(packageJsonPath, JSON.stringify(packageJson, null, 2));
90
96
  consola.success(`Added dependencies to "package.json".`);
91
97
  } else {
@@ -1,4 +1,4 @@
1
- import { N } from "./build-DXu94ro9.js";
1
+ import { N } from "./build-DGZKQLF6.js";
2
2
  function R(C) {
3
3
  return C && C.__esModule && Object.prototype.hasOwnProperty.call(C, "default") ? C.default : C;
4
4
  }
@@ -0,0 +1,4 @@
1
+ import { h } from "./build-DGZKQLF6.js";
2
+ export {
3
+ h as parseJSONC
4
+ };
@@ -1,4 +1,4 @@
1
- import { r as requireNode, a as requireNodeFetchNative_DhEqb06g } from "./index-0jlofXE2.js";
1
+ import { r as requireNode, a as requireNodeFetchNative_DhEqb06g } from "./index-ywNS35f6.js";
2
2
  import "node:http";
3
3
  import "node:https";
4
4
  import "node:zlib";
@@ -1,4 +1,4 @@
1
- import { N } from "./build-DXu94ro9.js";
1
+ import { N } from "./build-DGZKQLF6.js";
2
2
  /*!
3
3
  * Copyright (c) Squirrel Chat et al., All rights reserved.
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1,4 +1,4 @@
1
- import { N as N$1 } from "./build-DXu94ro9.js";
1
+ import { N as N$1 } from "./build-DGZKQLF6.js";
2
2
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
3
3
  function oe(e) {
4
4
  return typeof e > "u" || e === null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@styleframe/cli",
3
- "version": "2.0.2",
3
+ "version": "2.1.0",
4
4
  "description": "A command-line interface for styleframe.",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -22,20 +22,25 @@
22
22
  "dependencies": {
23
23
  "citty": "^0.1.6",
24
24
  "consola": "^3.0.0-2",
25
- "magicast": "^0.5.0",
26
- "@styleframe/loader": "2.0.2"
25
+ "magicast": "^0.5.0"
26
+ },
27
+ "peerDependencies": {
28
+ "@styleframe/loader": "^2.1.0"
27
29
  },
28
30
  "devDependencies": {
31
+ "@styleframe/config-typescript": "^1",
32
+ "@styleframe/config-vite": "^1",
33
+ "@styleframe/core": "^2.1.0",
34
+ "@styleframe/license": "^2.0.0",
35
+ "@styleframe/theme": "^1",
36
+ "@styleframe/loader": "^2.1.0",
29
37
  "@vitest/coverage-v8": "^3.2.4",
30
38
  "tsx": "^4.20.6",
31
39
  "typescript": "^5.8.3",
32
40
  "vite": "^7.0.6",
33
41
  "vite-plugin-dts": "^4.5.4",
34
42
  "vite-plugin-node": "^7.0.0",
35
- "vitest": "^3.2.4",
36
- "@styleframe/config-typescript": "2.0.2",
37
- "@styleframe/config-vite": "2.0.2",
38
- "@styleframe/core": "2.0.2"
43
+ "vitest": "^3.2.4"
39
44
  },
40
45
  "homepage": "https://github.com/styleframe-dev/styleframe#readme",
41
46
  "bugs": {
@@ -1,4 +0,0 @@
1
- import { h } from "./build-DXu94ro9.js";
2
- export {
3
- h as parseJSONC
4
- };