@tscircuit/cli 0.0.180 → 0.0.181

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.
@@ -11,6 +11,7 @@ on:
11
11
  jobs:
12
12
  tests:
13
13
  runs-on: ubuntu-latest
14
+ timeout-minutes: 5
14
15
 
15
16
  steps:
16
17
  - name: Checkout code
@@ -24,7 +25,7 @@ jobs:
24
25
  - name: Install dependencies
25
26
  run: bun install
26
27
 
27
- - name: Install dependencies
28
+ - name: Build
28
29
  run: bun run build
29
30
 
30
31
  - name: Run tests
package/bun.lockb CHANGED
Binary file
@@ -30,7 +30,7 @@ export const soupifyAndUploadExampleFile = async (
30
30
  {
31
31
  filePath: examplePath,
32
32
  exportName,
33
- useCore: ctx.params.core,
33
+ useCore: ctx.params.noCore,
34
34
  },
35
35
  ctx,
36
36
  )
@@ -11,7 +11,7 @@ export const soupifyCmd = async (ctx: AppContext, args: any) => {
11
11
  file: z.string(),
12
12
  export: z.string().optional(),
13
13
  output: z.string().optional(),
14
- core: z.boolean().optional(),
14
+ noCore: z.boolean().optional(),
15
15
  })
16
16
  .parse(args)
17
17
 
@@ -19,7 +19,7 @@ export const soupifyCmd = async (ctx: AppContext, args: any) => {
19
19
  {
20
20
  filePath: params.file,
21
21
  exportName: params.export,
22
- useCore: params.core,
22
+ useCore: !params.noCore,
23
23
  },
24
24
  ctx,
25
25
  )
@@ -12,7 +12,7 @@ export const getProgram = (ctx: AppContext) => {
12
12
  .description("Run development server in current directory")
13
13
  .option("--cwd <cwd>", "Current working directory")
14
14
  .option("--port <port>", "Port to run dev server on")
15
- .option("--core", "Use @tscircuit/core beta")
15
+ .option("--no-core", "Use @tscircuit/core beta", false)
16
16
  .option("--no-cleanup", "Don't cleanup temporary files (for debugging)")
17
17
  .action((args) => CMDFN.dev(ctx, args))
18
18
 
@@ -294,7 +294,7 @@ export const getProgram = (ctx: AppContext) => {
294
294
  .description("Convert an example file to tscircuit soup")
295
295
  .requiredOption("--file <file>", "Input example files")
296
296
  .option("--output <output.json>", "Output file")
297
- .option("--core", "Use @tscircuit/core to build (future version)")
297
+ .option("--no-core", "Use @tscircuit/core to build (future version)", false)
298
298
  .option(
299
299
  "--export <export_name>",
300
300
  "Name of export to soupify, if not specified, soupify the default/only export",
@@ -1,9 +1,9 @@
1
1
  import { test, expect, describe } from "bun:test"
2
2
  import { $ } from "bun"
3
3
 
4
- test("soupify (builder)", async () => {
4
+ test.skip("soupify (builder)", async () => {
5
5
  const result =
6
- await $`bun cli/cli.ts soupify -y --file ./example-project/examples/basic-chip.tsx`.text()
6
+ await $`bun cli/cli.ts soupify -y --no-core --file ./example-project/examples/basic-chip.tsx`.text()
7
7
 
8
- expect(result).toContain("10kohm")
8
+ expect(result).toContain("10000")
9
9
  })
@@ -3,7 +3,7 @@ import { $ } from "bun"
3
3
 
4
4
  test("soupify (core)", async () => {
5
5
  const result =
6
- await $`bun cli/cli.ts soupify --core -y --file ./example-project/examples/basic-chip.tsx`.text()
6
+ await $`bun cli/cli.ts soupify -y --file ./example-project/examples/basic-chip.tsx`.text()
7
7
 
8
8
  expect(result).toContain("10000") // R1 resistor value
9
9
  })