@tscircuit/cli 0.0.47 → 0.0.49

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.
@@ -8,6 +8,43 @@ export const getProgram = (ctx: AppContext) => {
8
8
  "Develop, test and manage tscircuit packages"
9
9
  )
10
10
 
11
+ cmd
12
+ .command("dev")
13
+ .description("Run development server in current directory")
14
+ .option("--cwd <cwd>", "Current working directory")
15
+ .option("--port <port>", "Port to run dev server on")
16
+ .action((args) => CMDFN.dev(ctx, args))
17
+
18
+ cmd
19
+ .command("init")
20
+ .description("Initialize a new tscircuit project")
21
+ .option("--name <name>", "Name of the project")
22
+ .option(
23
+ "--runtime <runtime>",
24
+ "Runtime to use (attempts to bun, otherwise node/tsx)"
25
+ )
26
+ .option(
27
+ "--dir <dir>",
28
+ "Directory to initialize (defaults to ./<name> or . if name not provided)"
29
+ )
30
+ .action((args) => CMDFN.init(ctx, args))
31
+
32
+ cmd
33
+ .command("add")
34
+ .description("Add a package from the tscircuit registry")
35
+ .argument(
36
+ "<packages...>",
37
+ "Packages to install from registry.tscircuit.com, optionally with version"
38
+ )
39
+ .option("-D, --dev", "Add to devDependencies")
40
+ .action((packages, flags) => CMDFN.add(ctx, { packages, flags }))
41
+
42
+ cmd
43
+ .command("remove")
44
+ .description("Remove/uninstall a package")
45
+ .argument("<packages...>", "Packages to remove")
46
+ .action((packages, flags) => CMDFN.remove(ctx, { packages, flags }))
47
+
11
48
  const authCmd = cmd.command("auth").description("Login/logout")
12
49
  authCmd
13
50
  .command("login")
@@ -224,43 +261,6 @@ export const getProgram = (ctx: AppContext) => {
224
261
  )
225
262
  .action((args) => CMDFN.soupify(ctx, args))
226
263
 
227
- cmd
228
- .command("dev")
229
- .description("Run development server in current directory")
230
- .option("--cwd <cwd>", "Current working directory")
231
- .option("--port <port>", "Port to run dev server on")
232
- .action((args) => CMDFN.dev(ctx, args))
233
-
234
- cmd
235
- .command("init")
236
- .description("Initialize a new tscircuit project")
237
- .option("--name <name>", "Name of the project")
238
- .option(
239
- "--runtime <runtime>",
240
- "Runtime to use (attempts to bun, otherwise node/tsx)"
241
- )
242
- .option(
243
- "--dir <dir>",
244
- "Directory to initialize (defaults to ./<name> or . if name not provided)"
245
- )
246
- .action((args) => CMDFN.init(ctx, args))
247
-
248
- cmd
249
- .command("add")
250
- .description("Add a package from the tscircuit registry")
251
- .argument(
252
- "<packages...>",
253
- "Packages to install from registry.tscircuit.com, optionally with version"
254
- )
255
- .option("-D, --dev", "Add to devDependencies")
256
- .action((packages, flags) => CMDFN.add(ctx, { packages, flags }))
257
-
258
- cmd
259
- .command("remove")
260
- .description("Remove/uninstall a package")
261
- .argument("<packages...>", "Packages to remove")
262
- .action((packages, flags) => CMDFN.remove(ctx, { packages, flags }))
263
-
264
264
  cmd
265
265
  .command("install")
266
266
  .description("Install a package from the tscircuit registry")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Command line tool for developing, publishing and installing tscircuit circuits",