@tscircuit/cli 0.1.537 → 0.1.538
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 +29 -15
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -72387,7 +72387,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
|
|
|
72387
72387
|
import { execSync as execSync2 } from "node:child_process";
|
|
72388
72388
|
var import_semver2 = __toESM2(require_semver2(), 1);
|
|
72389
72389
|
// package.json
|
|
72390
|
-
var version = "0.1.
|
|
72390
|
+
var version = "0.1.537";
|
|
72391
72391
|
var package_default = {
|
|
72392
72392
|
name: "@tscircuit/cli",
|
|
72393
72393
|
version,
|
|
@@ -77328,24 +77328,38 @@ var EXCLUDED_PACKAGE_DIRECTORIES = new Set([
|
|
|
77328
77328
|
"temp"
|
|
77329
77329
|
]);
|
|
77330
77330
|
function collectLocalPackageFiles(packageDir) {
|
|
77331
|
-
const
|
|
77332
|
-
|
|
77333
|
-
|
|
77334
|
-
|
|
77335
|
-
|
|
77336
|
-
|
|
77337
|
-
|
|
77338
|
-
|
|
77339
|
-
|
|
77340
|
-
continue;
|
|
77331
|
+
const buildDirs = ["dist", "build"];
|
|
77332
|
+
for (const dirName of buildDirs) {
|
|
77333
|
+
const dirPath = path18.join(packageDir, dirName);
|
|
77334
|
+
if (fs18.existsSync(dirPath)) {
|
|
77335
|
+
const files = walkDirectory(dirPath, new Set);
|
|
77336
|
+
if (files.length > 0) {
|
|
77337
|
+
const packageJsonPath = path18.join(packageDir, "package.json");
|
|
77338
|
+
if (fs18.existsSync(packageJsonPath)) {
|
|
77339
|
+
files.push(packageJsonPath);
|
|
77341
77340
|
}
|
|
77342
|
-
|
|
77343
|
-
}
|
|
77344
|
-
|
|
77341
|
+
return files;
|
|
77342
|
+
}
|
|
77343
|
+
}
|
|
77344
|
+
}
|
|
77345
|
+
return walkDirectory(packageDir, EXCLUDED_PACKAGE_DIRECTORIES);
|
|
77346
|
+
}
|
|
77347
|
+
function walkDirectory(dir, excludedDirs) {
|
|
77348
|
+
const files = [];
|
|
77349
|
+
if (!fs18.existsSync(dir))
|
|
77350
|
+
return files;
|
|
77351
|
+
const entries = fs18.readdirSync(dir, { withFileTypes: true });
|
|
77352
|
+
for (const entry of entries) {
|
|
77353
|
+
const fullPath = path18.join(dir, entry.name);
|
|
77354
|
+
if (entry.isDirectory()) {
|
|
77355
|
+
if (excludedDirs.has(entry.name)) {
|
|
77356
|
+
continue;
|
|
77345
77357
|
}
|
|
77358
|
+
files.push(...walkDirectory(fullPath, excludedDirs));
|
|
77359
|
+
} else if (entry.isFile()) {
|
|
77360
|
+
files.push(fullPath);
|
|
77346
77361
|
}
|
|
77347
77362
|
}
|
|
77348
|
-
walkDirectory(packageDir);
|
|
77349
77363
|
return files;
|
|
77350
77364
|
}
|
|
77351
77365
|
function getAllNodeModuleFilePaths(entryFilePath, projectDir) {
|