@tscircuit/cli 0.1.787 → 0.1.788
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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { z } from "zod"
|
|
2
|
+
|
|
3
|
+
import { projectConfigSchema } from "../lib/project-config/project-config-schema"
|
|
4
|
+
import schemaJson from "./tscircuit.config.schema.json"
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Ensure every property defined in the TypeScript config schema
|
|
8
|
+
* is represented in the JSON schema.
|
|
9
|
+
*/
|
|
10
|
+
type Config = z.infer<typeof projectConfigSchema>
|
|
11
|
+
type ConfigKeys = keyof Config
|
|
12
|
+
type JsonSchemaKeys = keyof typeof schemaJson.properties
|
|
13
|
+
|
|
14
|
+
type MissingTopLevelKeys = Exclude<ConfigKeys, JsonSchemaKeys>
|
|
15
|
+
type AssertNoMissingTopLevelKeys = MissingTopLevelKeys extends never
|
|
16
|
+
? true
|
|
17
|
+
: never
|
|
18
|
+
|
|
19
|
+
const _assertTopLevelKeys: AssertNoMissingTopLevelKeys = true
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Ensure nested build options stay in sync too.
|
|
23
|
+
*/
|
|
24
|
+
type ConfigBuildKeys = keyof NonNullable<Config["build"]>
|
|
25
|
+
type JsonBuildKeys = keyof typeof schemaJson.properties.build.properties
|
|
26
|
+
|
|
27
|
+
type MissingBuildKeys = Exclude<ConfigBuildKeys, JsonBuildKeys>
|
|
28
|
+
type AssertNoMissingBuildKeys = MissingBuildKeys extends never ? true : never
|
|
29
|
+
|
|
30
|
+
const _assertBuildKeys: AssertNoMissingBuildKeys = true
|
|
31
|
+
|
|
32
|
+
void [_assertTopLevelKeys, _assertBuildKeys]
|
|
@@ -52,6 +52,10 @@
|
|
|
52
52
|
"type": "string",
|
|
53
53
|
"description": "Entry file for KiCad footprint library generation."
|
|
54
54
|
},
|
|
55
|
+
"alwaysUseLatestTscircuitOnCloud": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"description": "Always use the latest TSCircuit version when building on the cloud."
|
|
58
|
+
},
|
|
55
59
|
"build": {
|
|
56
60
|
"type": "object",
|
|
57
61
|
"additionalProperties": false,
|