@tscircuit/cli 0.1.132 → 0.1.133
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 +17 -10
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -442169,7 +442169,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
|
|
|
442169
442169
|
import { execSync as execSync2 } from "node:child_process";
|
|
442170
442170
|
var import_semver2 = __toESM2(require_semver2(), 1);
|
|
442171
442171
|
// package.json
|
|
442172
|
-
var version = "0.1.
|
|
442172
|
+
var version = "0.1.132";
|
|
442173
442173
|
var package_default = {
|
|
442174
442174
|
name: "@tscircuit/cli",
|
|
442175
442175
|
version,
|
|
@@ -497058,17 +497058,24 @@ var snapshotProject = async ({
|
|
|
497058
497058
|
...DEFAULT_IGNORED_PATTERNS,
|
|
497059
497059
|
...ignored.map(normalizeIgnorePattern)
|
|
497060
497060
|
];
|
|
497061
|
-
const boardFiles = globbySync("**/*.board.tsx",
|
|
497061
|
+
const boardFiles = globbySync(["**/*.board.tsx", "**/*.circuit.tsx"], {
|
|
497062
|
+
cwd: projectDir,
|
|
497063
|
+
ignore
|
|
497064
|
+
});
|
|
497062
497065
|
let files = boardFiles.map((f) => path26.join(projectDir, f));
|
|
497066
|
+
const entry = await getEntrypoint({
|
|
497067
|
+
projectDir,
|
|
497068
|
+
onError,
|
|
497069
|
+
onSuccess: () => {}
|
|
497070
|
+
});
|
|
497071
|
+
if (entry) {
|
|
497072
|
+
const resolved = path26.resolve(projectDir, entry);
|
|
497073
|
+
if (!files.includes(resolved)) {
|
|
497074
|
+
files.unshift(resolved);
|
|
497075
|
+
}
|
|
497076
|
+
}
|
|
497063
497077
|
if (files.length === 0) {
|
|
497064
|
-
|
|
497065
|
-
projectDir,
|
|
497066
|
-
onError,
|
|
497067
|
-
onSuccess: () => {}
|
|
497068
|
-
});
|
|
497069
|
-
if (!entry)
|
|
497070
|
-
return onExit(1);
|
|
497071
|
-
files = [entry];
|
|
497078
|
+
return onExit(1);
|
|
497072
497079
|
}
|
|
497073
497080
|
const mismatches = [];
|
|
497074
497081
|
for (const file of files) {
|