@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/CHANGELOG.md +11 -0
- package/dist/{build-DXu94ro9.js → build-DGZKQLF6.js} +1198 -1245
- package/dist/{index-0jlofXE2.js → index-ywNS35f6.js} +2 -2
- package/dist/index.cjs +154 -196
- package/dist/index.js +3 -3
- package/dist/{init-8BBfDuR2.js → init-ByQr9RvQ.js} +9 -3
- package/dist/{json5-hbqDzlWE.js → json5-DmfAJeEV.js} +1 -1
- package/dist/jsonc-vOBrObxl.js +4 -0
- package/dist/{multipart-parser-FLfAVvRn.js → multipart-parser-FHcd-YKQ.js} +1 -1
- package/dist/{toml-BMNopPQi.js → toml-DNCZMGE5.js} +1 -1
- package/dist/{yaml-5x2bPSRD.js → yaml-VCOw0LQd.js} +1 -1
- package/package.json +12 -7
- package/dist/jsonc-DGYhwGmL.js +0 -4
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
|
|
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-
|
|
13
|
-
build: () => import("./build-
|
|
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"] = "^
|
|
87
|
-
packageJson.devDependencies["@styleframe/
|
|
88
|
-
packageJson.devDependencies["@styleframe/
|
|
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 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@styleframe/cli",
|
|
3
|
-
"version": "2.0
|
|
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
|
-
|
|
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": {
|
package/dist/jsonc-DGYhwGmL.js
DELETED