@tscircuit/props 0.0.362 → 0.0.364
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/README.md +2 -6
- package/dist/index.d.ts +2 -6
- package/dist/index.js +6 -8
- package/dist/index.js.map +1 -1
- package/lib/platformConfig.ts +7 -12
- package/lib/projectConfig.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1519,6 +1519,7 @@ export interface PlatformConfig {
|
|
|
1519
1519
|
version?: string;
|
|
1520
1520
|
url?: string;
|
|
1521
1521
|
printBoardInformationToSilkscreen?: boolean;
|
|
1522
|
+
includeBoardFiles?: string[];
|
|
1522
1523
|
|
|
1523
1524
|
pcbDisabled?: boolean;
|
|
1524
1525
|
schematicDisabled?: boolean;
|
|
@@ -1536,12 +1537,6 @@ export interface PlatformConfig {
|
|
|
1536
1537
|
>;
|
|
1537
1538
|
|
|
1538
1539
|
footprintFileParserMap?: Record<string, FootprintFileParserEntry>;
|
|
1539
|
-
|
|
1540
|
-
simSwitchFrequency?: number | string;
|
|
1541
|
-
simCloseAt?: number | string;
|
|
1542
|
-
simOpenAt?: number | string;
|
|
1543
|
-
simStartClosed?: boolean;
|
|
1544
|
-
simStartOpen?: boolean;
|
|
1545
1540
|
}
|
|
1546
1541
|
```
|
|
1547
1542
|
|
|
@@ -1564,6 +1559,7 @@ export interface ProjectConfig
|
|
|
1564
1559
|
| "version"
|
|
1565
1560
|
| "url"
|
|
1566
1561
|
| "printBoardInformationToSilkscreen"
|
|
1562
|
+
| "includeBoardFiles"
|
|
1567
1563
|
> {}
|
|
1568
1564
|
```
|
|
1569
1565
|
|
package/dist/index.d.ts
CHANGED
|
@@ -51802,21 +51802,17 @@ interface PlatformConfig {
|
|
|
51802
51802
|
version?: string;
|
|
51803
51803
|
url?: string;
|
|
51804
51804
|
printBoardInformationToSilkscreen?: boolean;
|
|
51805
|
+
includeBoardFiles?: string[];
|
|
51805
51806
|
pcbDisabled?: boolean;
|
|
51806
51807
|
schematicDisabled?: boolean;
|
|
51807
51808
|
partsEngineDisabled?: boolean;
|
|
51808
51809
|
spiceEngineMap?: Record<string, SpiceEngine>;
|
|
51809
51810
|
footprintLibraryMap?: Record<string, ((path: string) => Promise<FootprintLibraryResult>) | Record<string, any[] | ((path: string) => Promise<FootprintLibraryResult>)>>;
|
|
51810
51811
|
footprintFileParserMap?: Record<string, FootprintFileParserEntry>;
|
|
51811
|
-
simSwitchFrequency?: number | string;
|
|
51812
|
-
simCloseAt?: number | string;
|
|
51813
|
-
simOpenAt?: number | string;
|
|
51814
|
-
simStartClosed?: boolean;
|
|
51815
|
-
simStartOpen?: boolean;
|
|
51816
51812
|
}
|
|
51817
51813
|
declare const platformConfig: z.ZodType<PlatformConfig>;
|
|
51818
51814
|
|
|
51819
|
-
interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBaseUrl" | "version" | "url" | "printBoardInformationToSilkscreen"> {
|
|
51815
|
+
interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBaseUrl" | "version" | "url" | "printBoardInformationToSilkscreen" | "includeBoardFiles"> {
|
|
51820
51816
|
}
|
|
51821
51817
|
declare const projectConfig: z.ZodType<ProjectConfig>;
|
|
51822
51818
|
|
package/dist/index.js
CHANGED
|
@@ -2029,7 +2029,6 @@ expectTypesMatch(
|
|
|
2029
2029
|
|
|
2030
2030
|
// lib/platformConfig.ts
|
|
2031
2031
|
import { z as z103 } from "zod";
|
|
2032
|
-
import { frequency as frequency4, ms as ms2 } from "circuit-json";
|
|
2033
2032
|
var unvalidatedCircuitJson = z103.array(z103.any()).describe("Circuit JSON");
|
|
2034
2033
|
var footprintLibraryResult = z103.object({
|
|
2035
2034
|
footprintCircuitJson: z103.array(z103.any()),
|
|
@@ -2068,6 +2067,9 @@ var platformConfig = z103.object({
|
|
|
2068
2067
|
version: z103.string().optional(),
|
|
2069
2068
|
url: z103.string().optional(),
|
|
2070
2069
|
printBoardInformationToSilkscreen: z103.boolean().optional(),
|
|
2070
|
+
includeBoardFiles: z103.array(z103.string()).describe(
|
|
2071
|
+
'The board files to automatically build with "tsci build", defaults to ["**/*.circuit.tsx"]. Can be an array of files or globs'
|
|
2072
|
+
).optional(),
|
|
2071
2073
|
localCacheEngine: z103.any().optional(),
|
|
2072
2074
|
pcbDisabled: z103.boolean().optional(),
|
|
2073
2075
|
schematicDisabled: z103.boolean().optional(),
|
|
@@ -2083,12 +2085,7 @@ var platformConfig = z103.object({
|
|
|
2083
2085
|
)
|
|
2084
2086
|
])
|
|
2085
2087
|
).optional(),
|
|
2086
|
-
footprintFileParserMap: z103.record(z103.string(), footprintFileParserEntry).optional()
|
|
2087
|
-
simSwitchFrequency: frequency4.optional(),
|
|
2088
|
-
simCloseAt: ms2.optional(),
|
|
2089
|
-
simOpenAt: ms2.optional(),
|
|
2090
|
-
simStartClosed: z103.boolean().optional(),
|
|
2091
|
-
simStartOpen: z103.boolean().optional()
|
|
2088
|
+
footprintFileParserMap: z103.record(z103.string(), footprintFileParserEntry).optional()
|
|
2092
2089
|
});
|
|
2093
2090
|
expectTypesMatch(true);
|
|
2094
2091
|
|
|
@@ -2100,7 +2097,8 @@ var projectConfig = platformConfigObject.pick({
|
|
|
2100
2097
|
projectBaseUrl: true,
|
|
2101
2098
|
version: true,
|
|
2102
2099
|
url: true,
|
|
2103
|
-
printBoardInformationToSilkscreen: true
|
|
2100
|
+
printBoardInformationToSilkscreen: true,
|
|
2101
|
+
includeBoardFiles: true
|
|
2104
2102
|
});
|
|
2105
2103
|
expectTypesMatch(true);
|
|
2106
2104
|
export {
|