@widget-js/cli 24.1.1-beta.63 → 24.1.1-beta.71

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.
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  // src/utils.ts
2
4
  import path from "node:path";
3
5
  import process from "node:process";
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  // src/utils/PrettierUtils.ts
2
4
  import { format } from "prettier";
3
5
  var PrettierUtils = class {
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  // src/promts/promptChecker.ts
2
4
  import inquirer from "inquirer";
3
5
  async function promptChecker(prompt, checker) {
@@ -1,13 +1,14 @@
1
+ #!/usr/bin/env node
1
2
  import {
2
3
  EJSUtils,
3
4
  WidgetPackageUtils
4
- } from "./chunk-I4ZBPB2S.js";
5
+ } from "./chunk-OHXTJCXT.js";
5
6
  import {
6
7
  promptChecker_default
7
- } from "./chunk-XPJ33Y5L.js";
8
+ } from "./chunk-QLSQIDVW.js";
8
9
  import {
9
10
  exit
10
- } from "./chunk-RDJH7Z4C.js";
11
+ } from "./chunk-EXN6RZLX.js";
11
12
 
12
13
  // src/createWidget.ts
13
14
  import path from "node:path";
@@ -1,8 +1,9 @@
1
+ #!/usr/bin/env node
1
2
  import {
2
3
  Utils,
3
4
  getPackagePath,
4
5
  widgetPackages
5
- } from "./chunk-RDJH7Z4C.js";
6
+ } from "./chunk-EXN6RZLX.js";
6
7
 
7
8
  // src/dependencies/remoteDependencies.ts
8
9
  import fs from "node:fs";
package/dist/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  // src/index.ts
2
4
  import fs from "node:fs";
3
5
  import path from "node:path";
@@ -11,31 +13,31 @@ var cliPackage = JSON.parse(fs.readFileSync(packageJsonPath).toString());
11
13
  console.log(gradient.pastel.multiline(figlet.textSync("widget-cli", { horizontalLayout: "full" })));
12
14
  program.version(`@widget-js/cli ${cliPackage.version}`).usage("<command> [options]");
13
15
  program.command("create").description("Create new widget").action(async () => {
14
- const createWidget = await import("./createWidget-EFGZUM5G.js");
16
+ const createWidget = await import("./createWidget-GO6A3JXP.js");
15
17
  await createWidget.default();
16
18
  });
17
19
  var dependenciesOption = new Option("-t, --type <type>").choices(["remote", "local"]);
18
20
  program.command("dependencies").description("Deprecated!. Set @widget-js dependencies to local(workspace:*) or remote(^1.0.0 etc)").addOption(dependenciesOption).action(async (options) => {
19
- const dependencies = await import("./dependencies-UPIZWTP2.js");
21
+ const dependencies = await import("./dependencies-RXDT7CJ6.js");
20
22
  await dependencies.default(options);
21
23
  });
22
24
  program.command("deps").description("Set @widget-js dependencies to local(workspace:*) or remote(^1.0.0 etc)").addOption(dependenciesOption).action(async (options) => {
23
- const dependencies = await import("./dependencies-UPIZWTP2.js");
25
+ const dependencies = await import("./dependencies-RXDT7CJ6.js");
24
26
  await dependencies.default(options);
25
27
  });
26
28
  program.command("init").description("Initialize widget-js project").action(async () => {
27
- const init = await import("./init-HCEGKTNF.js");
29
+ const init = await import("./init-5TSYOIYW.js");
28
30
  await init.init();
29
31
  });
30
32
  var keyOption = new Option("-k, --key <key>");
31
33
  program.command("publish").description("Publish widget package with developer key").addOption(keyOption).action(async (options) => {
32
- const publishImport = await import("./publish-C52GHJWG.js");
34
+ const publishImport = await import("./publish-YNV6U6KF.js");
33
35
  await publishImport.publish(options);
34
36
  });
35
37
  var typeOption = new Option("-t, --type <type>").choices(["ftp", "oss"]);
36
38
  var fileOption = new Option("-f, --file <file>");
37
39
  program.command("release").description("\u901A\u8FC7FTP/OSS\u53D1\u5E03\u6587\u4EF6\uFF0C\u4EC5\u5185\u90E8\u4F7F\u7528").addOption(typeOption).addOption(fileOption).action(async (options) => {
38
- const release = await import("./release-3DQATEM5.js");
40
+ const release = await import("./release-2MP6V4VG.js");
39
41
  await release.default(options);
40
42
  });
41
43
  program.parse(process.argv);
@@ -1,14 +1,15 @@
1
+ #!/usr/bin/env node
1
2
  import {
2
3
  EJSUtils,
3
4
  PrettierUtils,
4
5
  WidgetPackageUtils
5
- } from "./chunk-I4ZBPB2S.js";
6
+ } from "./chunk-OHXTJCXT.js";
6
7
  import {
7
8
  promptChecker_default
8
- } from "./chunk-XPJ33Y5L.js";
9
+ } from "./chunk-QLSQIDVW.js";
9
10
  import {
10
11
  Utils
11
- } from "./chunk-RDJH7Z4C.js";
12
+ } from "./chunk-EXN6RZLX.js";
12
13
 
13
14
  // src/init/init.ts
14
15
  import path from "node:path";
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  // src/publish/index.ts
2
4
  import fs from "node:fs";
3
5
  import fastGlob from "fast-glob";
@@ -1,9 +1,10 @@
1
+ #!/usr/bin/env node
1
2
  import {
2
3
  promptChecker_default
3
- } from "./chunk-XPJ33Y5L.js";
4
+ } from "./chunk-QLSQIDVW.js";
4
5
  import {
5
6
  Utils
6
- } from "./chunk-RDJH7Z4C.js";
7
+ } from "./chunk-EXN6RZLX.js";
7
8
 
8
9
  // src/release/release.ts
9
10
  import fs4 from "node:fs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@widget-js/cli",
3
3
  "type": "module",
4
- "version": "24.1.1-beta.63",
4
+ "version": "24.1.1-beta.71",
5
5
  "private": false,
6
6
  "author": "Neo Fu",
7
7
  "license": "MIT",
@@ -44,9 +44,9 @@
44
44
  "shelljs": "^0.8.5",
45
45
  "ssh2-sftp-client": "^9.1.0",
46
46
  "ws": "^8.11.0",
47
- "@widget-js/utils": "24.1.1-beta.62",
48
- "@widget-js/vue3": "24.1.1-beta.65",
49
- "@widget-js/core": "24.1.1-beta.63"
47
+ "@widget-js/core": "24.1.1-beta.76",
48
+ "@widget-js/utils": "24.1.1-beta.71",
49
+ "@widget-js/vue3": "24.1.1-beta.74"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@antfu/eslint-config": "^2.21.1",
@@ -69,9 +69,9 @@
69
69
  "vite": "^5.0.5",
70
70
  "vitest": "^3.2.4",
71
71
  "vue-router": "^4.2.5",
72
- "@widget-js/vite-plugin-widget": "24.1.1-beta.63",
73
- "@widget-js/core": "24.1.1-beta.63",
74
- "@widget-js/vue3": "24.1.1-beta.65"
72
+ "@widget-js/vite-plugin-widget": "24.1.1-beta.71",
73
+ "@widget-js/core": "24.1.1-beta.76",
74
+ "@widget-js/vue3": "24.1.1-beta.74"
75
75
  },
76
76
  "scripts": {
77
77
  "build": "tsup-node src/index.ts",