@tscircuit/cli 0.1.1159 → 0.1.1160
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.
|
@@ -11738,6 +11738,7 @@ import path4 from "node:path";
|
|
|
11738
11738
|
var STATIC_ASSET_EXTENSIONS = [
|
|
11739
11739
|
".glb",
|
|
11740
11740
|
".gltf",
|
|
11741
|
+
".obj",
|
|
11741
11742
|
".step",
|
|
11742
11743
|
".kicad_mod",
|
|
11743
11744
|
".kicad_pcb",
|
package/dist/cli/main.js
CHANGED
|
@@ -98121,6 +98121,7 @@ import path from "node:path";
|
|
|
98121
98121
|
var STATIC_ASSET_EXTENSIONS = [
|
|
98122
98122
|
".glb",
|
|
98123
98123
|
".gltf",
|
|
98124
|
+
".obj",
|
|
98124
98125
|
".step",
|
|
98125
98126
|
".kicad_mod",
|
|
98126
98127
|
".kicad_pcb",
|
|
@@ -98175,7 +98176,7 @@ var import_perfect_cli = __toESM2(require_dist2(), 1);
|
|
|
98175
98176
|
// lib/getVersion.ts
|
|
98176
98177
|
import { createRequire as createRequire2 } from "node:module";
|
|
98177
98178
|
// package.json
|
|
98178
|
-
var version = "0.1.
|
|
98179
|
+
var version = "0.1.1158";
|
|
98179
98180
|
var package_default = {
|
|
98180
98181
|
name: "@tscircuit/cli",
|
|
98181
98182
|
version,
|
|
@@ -259966,13 +259967,17 @@ var importComponentFromJlcpcb = async (jlcpcbPartNumber, projectDir = process.cw
|
|
|
259966
259967
|
const stepFileName = `${componentName}.step`;
|
|
259967
259968
|
const stepResp = await platformFetch2(cadComponent.model_step_url);
|
|
259968
259969
|
await fs56.writeFile(path58.join(componentDir, stepFileName), Buffer.from(await stepResp.arrayBuffer()));
|
|
259969
|
-
tsx =
|
|
259970
|
+
tsx = `import stepPath from "./${stepFileName}"
|
|
259971
|
+
` + tsx;
|
|
259972
|
+
tsx = tsx.replace(`"${cadComponent.model_step_url}"`, "stepPath");
|
|
259970
259973
|
}
|
|
259971
259974
|
if (cadComponent?.model_obj_url) {
|
|
259972
259975
|
const objFileName = `${componentName}.obj`;
|
|
259973
259976
|
const objResp = await platformFetch2(cadComponent.model_obj_url);
|
|
259974
259977
|
await fs56.writeFile(path58.join(componentDir, objFileName), Buffer.from(await objResp.arrayBuffer()));
|
|
259975
|
-
tsx =
|
|
259978
|
+
tsx = `import objPath from "./${objFileName}"
|
|
259979
|
+
` + tsx;
|
|
259980
|
+
tsx = tsx.replace(`"${cadComponent.model_obj_url}"`, "objPath");
|
|
259976
259981
|
}
|
|
259977
259982
|
}
|
|
259978
259983
|
const filePath = path58.join(componentDir, `${componentName}.tsx`);
|
|
@@ -16176,6 +16176,7 @@ import path11 from "node:path";
|
|
|
16176
16176
|
var STATIC_ASSET_EXTENSIONS = [
|
|
16177
16177
|
".glb",
|
|
16178
16178
|
".gltf",
|
|
16179
|
+
".obj",
|
|
16179
16180
|
".step",
|
|
16180
16181
|
".kicad_mod",
|
|
16181
16182
|
".kicad_pcb",
|
package/dist/lib/index.js
CHANGED
|
@@ -60445,7 +60445,7 @@ var getNodeHandler = (winterSpec, { port, middleware = [] }) => {
|
|
|
60445
60445
|
}));
|
|
60446
60446
|
};
|
|
60447
60447
|
// package.json
|
|
60448
|
-
var version = "0.1.
|
|
60448
|
+
var version = "0.1.1158";
|
|
60449
60449
|
var package_default = {
|
|
60450
60450
|
name: "@tscircuit/cli",
|
|
60451
60451
|
version,
|