@teardown/cli 2.0.52 → 2.0.53

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teardown/cli",
3
- "version": "2.0.52",
3
+ "version": "2.0.53",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -71,7 +71,7 @@
71
71
  },
72
72
  "devDependencies": {
73
73
  "@biomejs/biome": "2.3.11",
74
- "@teardown/tsconfig": "2.0.52",
74
+ "@teardown/tsconfig": "2.0.53",
75
75
  "@types/bun": "1.3.5",
76
76
  "@types/ejs": "^3.1.5",
77
77
  "typescript": "5.9.3"
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Start command - starts the Metro bundler
2
+ * Dev command - starts the Metro bundler
3
3
  */
4
4
 
5
5
  import { spawn } from "node:child_process";
@@ -25,10 +25,10 @@ function hasTeardownMetroConfig(projectRoot: string): boolean {
25
25
  }
26
26
 
27
27
  /**
28
- * Create the start command
28
+ * Create the dev command
29
29
  */
30
- export function createStartCommand(): Command {
31
- const start = new Command("start")
30
+ export function createDevCommand(): Command {
31
+ const dev = new Command("dev")
32
32
  .description("Start the Metro bundler")
33
33
  .option("-p, --port <port>", "Port to run Metro on", "8081")
34
34
  .option("--reset-cache", "Reset the Metro cache")
@@ -83,5 +83,5 @@ export function createStartCommand(): Command {
83
83
  });
84
84
  });
85
85
 
86
- return start;
86
+ return dev;
87
87
  }
package/src/cli/index.ts CHANGED
@@ -3,11 +3,11 @@
3
3
  */
4
4
 
5
5
  import { Command } from "commander";
6
+ import { createDevCommand } from "./commands/dev";
6
7
  import { createInitCommand } from "./commands/init";
7
8
  import { createPluginsCommand } from "./commands/plugins";
8
9
  import { createPrebuildCommand } from "./commands/prebuild";
9
10
  import { createRunCommand } from "./commands/run";
10
- import { createStartCommand } from "./commands/start";
11
11
  import { createValidateCommand } from "./commands/validate";
12
12
 
13
13
  /**
@@ -30,7 +30,7 @@ export function createProgram(): Command {
30
30
  program.addCommand(createInitCommand());
31
31
  program.addCommand(createPluginsCommand());
32
32
  program.addCommand(createRunCommand());
33
- program.addCommand(createStartCommand());
33
+ program.addCommand(createDevCommand());
34
34
 
35
35
  // Default command (prebuild)
36
36
  program.argument("[command]").action((cmd) => {
@@ -50,10 +50,10 @@ export async function run(args: string[] = process.argv): Promise<void> {
50
50
  await program.parseAsync(args);
51
51
  }
52
52
 
53
+ export { createDevCommand } from "./commands/dev";
53
54
  export { createInitCommand } from "./commands/init";
54
55
  export { createPluginsCommand } from "./commands/plugins";
55
56
  // Export commands for testing
56
57
  export { createPrebuildCommand } from "./commands/prebuild";
57
58
  export { createRunCommand } from "./commands/run";
58
- export { createStartCommand } from "./commands/start";
59
59
  export { createValidateCommand } from "./commands/validate";
@@ -3,7 +3,7 @@
3
3
  "version": "<%= version %>",
4
4
  "private": true,
5
5
  "scripts": {
6
- "start": "teardown start",
6
+ "dev": "teardown dev",
7
7
  "ios": "teardown run ios",
8
8
  "android": "teardown run android",
9
9
  "lint": "eslint .",