@tscircuit/cli 0.1.779 → 0.1.781

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.
Files changed (2) hide show
  1. package/dist/main.js +8 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -74129,7 +74129,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
74129
74129
  import { execSync as execSync2 } from "node:child_process";
74130
74130
  var import_semver2 = __toESM2(require_semver2(), 1);
74131
74131
  // package.json
74132
- var version = "0.1.778";
74132
+ var version = "0.1.780";
74133
74133
  var package_default = {
74134
74134
  name: "@tscircuit/cli",
74135
74135
  version,
@@ -173172,6 +173172,7 @@ async function generatePcmAssets(options) {
173172
173172
  } = options;
173173
173173
  const identifier = `com.tscircuit.${author}.${packageName}`.toLowerCase().replace(/[^a-z0-9.-]/g, "-").slice(0, 50);
173174
173174
  fs42.mkdirSync(outputDir, { recursive: true });
173175
+ console.log("Creating metadata.json...");
173175
173176
  const metadata = {
173176
173177
  $schema: "https://go.kicad.org/pcm/schemas/v1",
173177
173178
  name: `tscircuit ${packageName}`,
@@ -173287,16 +173288,20 @@ async function createPcmZip(options) {
173287
173288
  zip.file("metadata.json", JSON.stringify(metadata, null, 2));
173288
173289
  const footprintsDir = path42.join(kicadLibraryPath, "footprints");
173289
173290
  if (fs42.existsSync(footprintsDir)) {
173291
+ console.log("Adding footprints directory...");
173290
173292
  addDirectoryToZip({ zip, dirPath: footprintsDir, zipPath: "footprints" });
173291
173293
  }
173292
173294
  const symbolsDir = path42.join(kicadLibraryPath, "symbols");
173293
173295
  if (fs42.existsSync(symbolsDir)) {
173296
+ console.log("Adding symbols directory...");
173294
173297
  addDirectoryToZip({ zip, dirPath: symbolsDir, zipPath: "symbols" });
173295
173298
  }
173296
173299
  const modelsDir = path42.join(kicadLibraryPath, "3dmodels");
173297
173300
  if (fs42.existsSync(modelsDir)) {
173301
+ console.log("Adding 3dmodels directory...");
173298
173302
  addDirectoryToZip({ zip, dirPath: modelsDir, zipPath: "3dmodels" });
173299
173303
  }
173304
+ console.log("Generating ZIP...");
173300
173305
  const zipBuffer = await zip.generateAsync({
173301
173306
  type: "nodebuffer",
173302
173307
  compression: "DEFLATE",
@@ -173323,6 +173328,7 @@ async function buildKicadPcm({
173323
173328
  const libraryName = path43.basename(projectDir);
173324
173329
  const kicadLibOutputDir = path43.join(distDir, "kicad-library");
173325
173330
  if (!fs43.existsSync(kicadLibOutputDir)) {
173331
+ console.log("Converting to KiCad library...");
173326
173332
  await convertToKicadLibrary({
173327
173333
  filePath: entryFile,
173328
173334
  libraryName,
@@ -173331,6 +173337,7 @@ async function buildKicadPcm({
173331
173337
  }
173332
173338
  const pcmOutputDir = path43.join(distDir, "pcm");
173333
173339
  const baseUrl = `https://${author}--${packageName}.tscircuit.app`;
173340
+ console.log("Generating PCM assets...");
173334
173341
  await generatePcmAssets({
173335
173342
  packageName,
173336
173343
  version: version2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.779",
3
+ "version": "0.1.781",
4
4
  "main": "dist/main.js",
5
5
  "devDependencies": {
6
6
  "@babel/standalone": "^7.26.9",