@tscircuit/cli 0.1.1559 → 0.1.1561
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/build/build.worker.js +4 -4
- package/dist/cli/main.js +55798 -45004
- package/dist/cli/snapshot/snapshot.worker.js +4 -4
- package/dist/lib/index.js +5 -5
- package/package.json +2 -2
|
@@ -3026,7 +3026,7 @@ async function generateCircuitJson({
|
|
|
3026
3026
|
};
|
|
3027
3027
|
}
|
|
3028
3028
|
|
|
3029
|
-
// lib/shared/get-
|
|
3029
|
+
// lib/shared/get-platform-config-with-cli-defaults.ts
|
|
3030
3030
|
import { createHash } from "node:crypto";
|
|
3031
3031
|
import fs4 from "node:fs";
|
|
3032
3032
|
import path4 from "node:path";
|
|
@@ -3054,7 +3054,7 @@ function createLocalCacheEngine(cacheDir = path4.join(process.cwd(), ".tscircuit
|
|
|
3054
3054
|
}
|
|
3055
3055
|
};
|
|
3056
3056
|
}
|
|
3057
|
-
function
|
|
3057
|
+
function getPlatformConfigWithCliDefaults(userConfig) {
|
|
3058
3058
|
const basePlatformConfig = getPlatformConfig();
|
|
3059
3059
|
const defaultConfig = {
|
|
3060
3060
|
...basePlatformConfig,
|
|
@@ -3207,10 +3207,10 @@ var processSnapshotFile = async ({
|
|
|
3207
3207
|
const parsed = JSON.parse(fs6.readFileSync(file, "utf-8"));
|
|
3208
3208
|
circuitJson = Array.isArray(parsed) ? parsed : [];
|
|
3209
3209
|
} else {
|
|
3210
|
-
const
|
|
3210
|
+
const platformConfigWithCliDefaults = getPlatformConfigWithCliDefaults(platformConfig);
|
|
3211
3211
|
const result = await generateCircuitJson({
|
|
3212
3212
|
filePath: file,
|
|
3213
|
-
platformConfig:
|
|
3213
|
+
platformConfig: platformConfigWithCliDefaults
|
|
3214
3214
|
});
|
|
3215
3215
|
circuitJson = result.circuitJson;
|
|
3216
3216
|
}
|
package/dist/lib/index.js
CHANGED
|
@@ -65365,7 +65365,7 @@ var getNodeHandler = (winterSpec, { port, middleware = [] }) => {
|
|
|
65365
65365
|
}));
|
|
65366
65366
|
};
|
|
65367
65367
|
// package.json
|
|
65368
|
-
var version = "0.1.
|
|
65368
|
+
var version = "0.1.1560";
|
|
65369
65369
|
var package_default = {
|
|
65370
65370
|
name: "@tscircuit/cli",
|
|
65371
65371
|
version,
|
|
@@ -65378,7 +65378,7 @@ var package_default = {
|
|
|
65378
65378
|
"@babel/standalone": "^7.26.9",
|
|
65379
65379
|
"@biomejs/biome": "^1.9.4",
|
|
65380
65380
|
"@tscircuit/circuit-json-placement-analysis": "^0.0.6",
|
|
65381
|
-
"@tscircuit/circuit-json-routing-analysis": "^0.0.
|
|
65381
|
+
"@tscircuit/circuit-json-routing-analysis": "^0.0.5",
|
|
65382
65382
|
"@tscircuit/circuit-json-schematic-placement-analysis": "github:tscircuit/circuit-json-schematic-placement-analysis#b6d5fe675adc26a2fc988aa081e6fb51e6bf696a",
|
|
65383
65383
|
"@tscircuit/eval": "^0.0.952",
|
|
65384
65384
|
"@tscircuit/fake-snippets": "^0.0.182",
|
|
@@ -74536,7 +74536,7 @@ async function importFromUserLand(moduleName) {
|
|
|
74536
74536
|
return import(moduleName);
|
|
74537
74537
|
}
|
|
74538
74538
|
|
|
74539
|
-
// lib/shared/get-
|
|
74539
|
+
// lib/shared/get-platform-config-with-cli-defaults.ts
|
|
74540
74540
|
import { createHash } from "node:crypto";
|
|
74541
74541
|
import fs6 from "node:fs";
|
|
74542
74542
|
import path8 from "node:path";
|
|
@@ -74564,7 +74564,7 @@ function createLocalCacheEngine(cacheDir = path8.join(process.cwd(), ".tscircuit
|
|
|
74564
74564
|
}
|
|
74565
74565
|
};
|
|
74566
74566
|
}
|
|
74567
|
-
function
|
|
74567
|
+
function getPlatformConfigWithCliDefaults(userConfig) {
|
|
74568
74568
|
const basePlatformConfig = getPlatformConfig();
|
|
74569
74569
|
const defaultConfig = {
|
|
74570
74570
|
...basePlatformConfig,
|
|
@@ -74625,7 +74625,7 @@ async function convertToKicadLibrary({
|
|
|
74625
74625
|
kicadPcmPackageId,
|
|
74626
74626
|
circuitJsonToKicadModule
|
|
74627
74627
|
}) {
|
|
74628
|
-
const platformConfig =
|
|
74628
|
+
const platformConfig = getPlatformConfigWithCliDefaults();
|
|
74629
74629
|
const platformFetch = platformConfig.platformFetch ?? globalThis.fetch;
|
|
74630
74630
|
const absoluteFilePath = path9.isAbsolute(filePath) ? filePath : path9.resolve(process.cwd(), filePath);
|
|
74631
74631
|
const React = await importFromUserLand("react");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1561",
|
|
4
4
|
"main": "dist/cli/main.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/cli/main.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@babel/standalone": "^7.26.9",
|
|
11
11
|
"@biomejs/biome": "^1.9.4",
|
|
12
12
|
"@tscircuit/circuit-json-placement-analysis": "^0.0.6",
|
|
13
|
-
"@tscircuit/circuit-json-routing-analysis": "^0.0.
|
|
13
|
+
"@tscircuit/circuit-json-routing-analysis": "^0.0.5",
|
|
14
14
|
"@tscircuit/circuit-json-schematic-placement-analysis": "github:tscircuit/circuit-json-schematic-placement-analysis#b6d5fe675adc26a2fc988aa081e6fb51e6bf696a",
|
|
15
15
|
"@tscircuit/eval": "^0.0.952",
|
|
16
16
|
"@tscircuit/fake-snippets": "^0.0.182",
|