@tego/devkit 1.3.23 → 1.3.25

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.
@@ -7,7 +7,7 @@ import createPlugin from "./create-plugin.mjs";
7
7
  import dev from "./dev.mjs";
8
8
  import e2e from "./e2e.mjs";
9
9
  import global from "./global.mjs";
10
- import init from "./init.mjs";
10
+ import install from "./install.mjs";
11
11
  import postinstall from "./postinstall.mjs";
12
12
  import tar from "./tar.mjs";
13
13
  import test from "./test.mjs";
@@ -23,9 +23,9 @@ var commands_default = async (cli) => {
23
23
  clean(cli);
24
24
  test(cli);
25
25
  upgrade(cli);
26
+ install(cli);
26
27
  postinstall(cli);
27
28
  createPlugin(cli);
28
- init(cli);
29
29
  };
30
30
  export {
31
31
  commands_default as default
@@ -0,0 +1,14 @@
1
+ // src/commands/install.ts
2
+ import { hasTsNode, promptForTs, runAppCommand } from "../util.mjs";
3
+ var install_default = (cli) => {
4
+ cli.command("install").allowUnknownOption().option("--raw").option("-S|--skip-code-update").action(async (options) => {
5
+ if (hasTsNode()) {
6
+ promptForTs();
7
+ }
8
+ process.env.IS_DEV_CMD = "true";
9
+ await runAppCommand("install");
10
+ });
11
+ };
12
+ export {
13
+ install_default as default
14
+ };
@@ -5,6 +5,7 @@ var upgrade_default = (cli) => {
5
5
  if (hasTsNode()) {
6
6
  promptForTs();
7
7
  }
8
+ process.env.IS_DEV_CMD = "true";
8
9
  await runAppCommand("upgrade");
9
10
  });
10
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tego/devkit",
3
- "version": "1.3.23",
3
+ "version": "1.3.25",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -1,13 +0,0 @@
1
- // src/commands/init.ts
2
- var init_default = (cli) => {
3
- cli.command("init").option("--plugins <list>", "Comma-separated list of plugins to install", (value) => {
4
- return value.split(",").map((s) => s.trim()).filter(Boolean);
5
- }).argument("[name]", "project name", "my-app").allowUnknownOption().action(async (name, options) => {
6
- console.error("\u274C This command has been deprecated.");
7
- console.log("\u2705 Please use: npx tego init <project-name>");
8
- process.exit(1);
9
- });
10
- };
11
- export {
12
- init_default as default
13
- };