@tscircuit/cli 0.1.859 → 0.1.860
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/main.js +5 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -74384,7 +74384,7 @@ 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.
|
|
74387
|
+
var version = "0.1.859";
|
|
74388
74388
|
var package_default = {
|
|
74389
74389
|
name: "@tscircuit/cli",
|
|
74390
74390
|
version,
|
|
@@ -174199,6 +174199,9 @@ var resolveBuildOptions = ({
|
|
|
174199
174199
|
cliOptions,
|
|
174200
174200
|
projectConfig: projectConfig2
|
|
174201
174201
|
}) => {
|
|
174202
|
+
if (cliOptions?.ignoreConfig) {
|
|
174203
|
+
return { options: cliOptions, configAppliedOpts: [] };
|
|
174204
|
+
}
|
|
174202
174205
|
const configBuild = projectConfig2?.build;
|
|
174203
174206
|
const configAppliedOpts = [];
|
|
174204
174207
|
if (!cliOptions?.kicad && configBuild?.kicadLibrary) {
|
|
@@ -175165,7 +175168,7 @@ async function buildFilesWithWorkerPool(options) {
|
|
|
175165
175168
|
// cli/build/register.ts
|
|
175166
175169
|
var normalizeRelativePath = (projectDir, targetPath) => path53.relative(projectDir, targetPath).split(path53.sep).join("/");
|
|
175167
175170
|
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) => {
|
|
175171
|
+
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
175172
|
try {
|
|
175170
175173
|
const resolvedRoot = path53.resolve(process.cwd());
|
|
175171
175174
|
let projectDir;
|