@tscircuit/cli 0.1.859 → 0.1.861

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/cli/entrypoint.js CHANGED
@@ -25,7 +25,7 @@ const globalPackageJson = require("../package.json")
25
25
  const useGlobal = process.argv.includes("--use-global")
26
26
  const args = process.argv.slice(2).filter((arg) => arg !== "--use-global")
27
27
 
28
- let mainPath = join(packageRoot, "dist/main.js")
28
+ let mainPath = join(packageRoot, "dist/cli/main.js")
29
29
 
30
30
  if (!useGlobal) {
31
31
  try {
@@ -35,7 +35,7 @@ if (!useGlobal) {
35
35
  )
36
36
  const localPackageJson = localRequire(localPackageJsonPath)
37
37
  const localPackageRoot = dirname(localPackageJsonPath)
38
- const localMainPath = join(localPackageRoot, "dist/main.js")
38
+ const localMainPath = join(localPackageRoot, "dist/cli/main.js")
39
39
 
40
40
  if (localPackageRoot !== packageRoot && existsSync(localMainPath)) {
41
41
  console.warn(
@@ -74384,11 +74384,15 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
74384
74384
  import { execSync as execSync2 } from "node:child_process";
74385
74385
  var import_semver2 = __toESM2(require_semver2(), 1);
74386
74386
  // package.json
74387
- var version = "0.1.858";
74387
+ var version = "0.1.860";
74388
74388
  var package_default = {
74389
74389
  name: "@tscircuit/cli",
74390
+ main: "dist/cli/main.js",
74391
+ exports: {
74392
+ ".": "./dist/cli/main.js",
74393
+ "./lib": "./dist/lib/index.js"
74394
+ },
74390
74395
  version,
74391
- main: "dist/main.js",
74392
74396
  devDependencies: {
74393
74397
  "@babel/standalone": "^7.26.9",
74394
74398
  "@biomejs/biome": "^1.9.4",
@@ -174199,6 +174203,9 @@ var resolveBuildOptions = ({
174199
174203
  cliOptions,
174200
174204
  projectConfig: projectConfig2
174201
174205
  }) => {
174206
+ if (cliOptions?.ignoreConfig) {
174207
+ return { options: cliOptions, configAppliedOpts: [] };
174208
+ }
174202
174209
  const configBuild = projectConfig2?.build;
174203
174210
  const configAppliedOpts = [];
174204
174211
  if (!cliOptions?.kicad && configBuild?.kicadLibrary) {
@@ -175165,7 +175172,7 @@ async function buildFilesWithWorkerPool(options) {
175165
175172
  // cli/build/register.ts
175166
175173
  var normalizeRelativePath = (projectDir, targetPath) => path53.relative(projectDir, targetPath).split(path53.sep).join("/");
175167
175174
  var registerBuild = (program3) => {
175168
- program3.command("build").description("Run tscircuit eval and output circuit json").argument("[file]", "Path to the entry file").option("--ci", "Run install and optional prebuild/build commands (or default CI build)").option("--ignore-errors", "Do not exit with code 1 on errors").option("--ignore-warnings", "Do not log warnings").option("--disable-pcb", "Disable PCB outputs").option("--disable-parts-engine", "Disable the parts engine").option("--site", "Generate a static site in the dist directory").option("--transpile", "Transpile the entry file to JavaScript").option("--preview-images", "Generate preview images in the dist directory").option("--all-images", "Generate preview images for every successful build output").option("--kicad", "Generate KiCad project directories for each successful build output").option("--kicad-library", "Generate KiCad library in dist/kicad-library").option("--preview-gltf", "Generate a GLTF file from the preview entrypoint").option("--kicad-pcm", "Generate KiCad PCM (Plugin and Content Manager) assets in dist/pcm").option("--use-cdn-javascript", "Use CDN-hosted JavaScript instead of bundled standalone file for --site").option("--concurrency <number>", "Number of files to build in parallel (default: 1)", "1").action(async (file, options) => {
175175
+ program3.command("build").description("Run tscircuit eval and output circuit json").argument("[file]", "Path to the entry file").option("--ci", "Run install and optional prebuild/build commands (or default CI build)").option("--ignore-errors", "Do not exit with code 1 on errors").option("--ignore-warnings", "Do not log warnings").option("--ignore-config", "Ignore options from tscircuit.config.json").option("--disable-pcb", "Disable PCB outputs").option("--disable-parts-engine", "Disable the parts engine").option("--site", "Generate a static site in the dist directory").option("--transpile", "Transpile the entry file to JavaScript").option("--preview-images", "Generate preview images in the dist directory").option("--all-images", "Generate preview images for every successful build output").option("--kicad", "Generate KiCad project directories for each successful build output").option("--kicad-library", "Generate KiCad library in dist/kicad-library").option("--preview-gltf", "Generate a GLTF file from the preview entrypoint").option("--kicad-pcm", "Generate KiCad PCM (Plugin and Content Manager) assets in dist/pcm").option("--use-cdn-javascript", "Use CDN-hosted JavaScript instead of bundled standalone file for --site").option("--concurrency <number>", "Number of files to build in parallel (default: 1)", "1").action(async (file, options) => {
175169
175176
  try {
175170
175177
  const resolvedRoot = path53.resolve(process.cwd());
175171
175178
  let projectDir;