@tscircuit/cli 0.0.22 → 0.0.23
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/dist/cli.js +3 -1
- package/lib/cmd-fns/version.ts +4 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1552,7 +1552,7 @@ var openCmd = async (ctx, args) => {
|
|
|
1552
1552
|
// package.json
|
|
1553
1553
|
var package_default = {
|
|
1554
1554
|
name: "@tscircuit/cli",
|
|
1555
|
-
version: "0.0.
|
|
1555
|
+
version: "0.0.22",
|
|
1556
1556
|
private: false,
|
|
1557
1557
|
type: "module",
|
|
1558
1558
|
description: "Command line tool for developing, publishing and installing tscircuit circuits",
|
|
@@ -1696,6 +1696,7 @@ var package_default2 = {
|
|
|
1696
1696
|
var versionCmd = async (ctx, args) => {
|
|
1697
1697
|
const tscircuitPackageJson = await import("tscircuit/package.json").catch((e) => ({ version: "" }));
|
|
1698
1698
|
const reactFiberPackageJson = await import("@tscircuit/react-fiber/package.json").catch((e) => ({ version: "" }));
|
|
1699
|
+
const builderPackageJson = await import("@tscircuit/builder/package.json").catch((e) => ({ version: "" }));
|
|
1699
1700
|
if (tscircuitPackageJson.version) {
|
|
1700
1701
|
console.log(`tscircuit@${package_default.version}`);
|
|
1701
1702
|
}
|
|
@@ -1703,6 +1704,7 @@ var versionCmd = async (ctx, args) => {
|
|
|
1703
1704
|
console.log(`@tscircuit/react-fiber@${reactFiberPackageJson.version}`);
|
|
1704
1705
|
console.log(`@tscircuit/schematic-viewer@${package_default2.dependencies["@tscircuit/schematic-viewer"]}`);
|
|
1705
1706
|
console.log(`@tscircuit/pcb-viewer@${package_default2.dependencies["@tscircuit/pcb-viewer"]}`);
|
|
1707
|
+
console.log(`@tscircuit/builder@${builderPackageJson.version}`);
|
|
1706
1708
|
};
|
|
1707
1709
|
// lib/get-program.ts
|
|
1708
1710
|
var getProgram = (ctx) => {
|
package/lib/cmd-fns/version.ts
CHANGED
|
@@ -9,6 +9,9 @@ export const versionCmd = async (ctx: AppContext, args: any) => {
|
|
|
9
9
|
const reactFiberPackageJson = await import(
|
|
10
10
|
"@tscircuit/react-fiber/package.json"
|
|
11
11
|
).catch((e) => ({ version: "" }))
|
|
12
|
+
const builderPackageJson = await import(
|
|
13
|
+
"@tscircuit/builder/package.json"
|
|
14
|
+
).catch((e) => ({ version: "" }))
|
|
12
15
|
if (tscircuitPackageJson.version) {
|
|
13
16
|
console.log(`tscircuit@${cliPackageJson.version}`)
|
|
14
17
|
}
|
|
@@ -20,4 +23,5 @@ export const versionCmd = async (ctx: AppContext, args: any) => {
|
|
|
20
23
|
console.log(
|
|
21
24
|
`@tscircuit/pcb-viewer@${frontendPackageJson.dependencies["@tscircuit/pcb-viewer"]}`
|
|
22
25
|
)
|
|
26
|
+
console.log(`@tscircuit/builder@${builderPackageJson.version}`)
|
|
23
27
|
}
|