@tscircuit/cli 0.1.721 → 0.1.723
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/main.js +9 -3
- package/package.json +1 -1
- package/types/tscircuit.config.schema.json +23 -0
package/dist/main.js
CHANGED
|
@@ -71909,7 +71909,7 @@ import * as path4 from "node:path";
|
|
|
71909
71909
|
var generatePackageJson = (dir, opts = {}) => {
|
|
71910
71910
|
const packageJsonPath = path4.join(dir, "package.json");
|
|
71911
71911
|
const baseName = opts.packageName || path4.basename(dir);
|
|
71912
|
-
const name = opts.authorName ? `@tsci/${opts.authorName}.${baseName}` : baseName;
|
|
71912
|
+
const name = opts.packageName || (opts.authorName ? `@tsci/${opts.authorName}.${baseName}` : baseName);
|
|
71913
71913
|
const packageJsonContent = {
|
|
71914
71914
|
name,
|
|
71915
71915
|
version: "1.0.0",
|
|
@@ -73244,7 +73244,13 @@ var projectConfigSchema = z.object({
|
|
|
73244
73244
|
previewComponentPath: z.string().optional(),
|
|
73245
73245
|
ignoredFiles: z.array(z.string()).optional(),
|
|
73246
73246
|
includeBoardFiles: z.array(z.string()).optional(),
|
|
73247
|
-
snapshotsDir: z.string().optional()
|
|
73247
|
+
snapshotsDir: z.string().optional(),
|
|
73248
|
+
build: z.object({
|
|
73249
|
+
circuitJson: z.boolean().optional(),
|
|
73250
|
+
kicadLibrary: z.boolean().optional(),
|
|
73251
|
+
previewImages: z.boolean().optional(),
|
|
73252
|
+
typescriptLibrary: z.boolean().optional()
|
|
73253
|
+
}).optional()
|
|
73248
73254
|
});
|
|
73249
73255
|
|
|
73250
73256
|
// lib/project-config/index.ts
|
|
@@ -74117,7 +74123,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
|
|
|
74117
74123
|
import { execSync as execSync2 } from "node:child_process";
|
|
74118
74124
|
var import_semver2 = __toESM2(require_semver2(), 1);
|
|
74119
74125
|
// package.json
|
|
74120
|
-
var version = "0.1.
|
|
74126
|
+
var version = "0.1.722";
|
|
74121
74127
|
var package_default = {
|
|
74122
74128
|
name: "@tscircuit/cli",
|
|
74123
74129
|
version,
|
package/package.json
CHANGED
|
@@ -35,6 +35,29 @@
|
|
|
35
35
|
"snapshotsDir": {
|
|
36
36
|
"type": "string",
|
|
37
37
|
"description": "Directory path for storing snapshots."
|
|
38
|
+
},
|
|
39
|
+
"build": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"properties": {
|
|
43
|
+
"circuitJson": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"description": "Enable circuit JSON output in build."
|
|
46
|
+
},
|
|
47
|
+
"kicadLibrary": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"description": "Enable KiCad library output in build."
|
|
50
|
+
},
|
|
51
|
+
"previewImages": {
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"description": "Enable preview image outputs in build."
|
|
54
|
+
},
|
|
55
|
+
"typescriptLibrary": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"description": "Enable TypeScript library output in build."
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"description": "Build output toggles."
|
|
38
61
|
}
|
|
39
62
|
}
|
|
40
63
|
}
|