@codedrifters/configulator 0.0.367 → 0.0.368
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/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +9 -0
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -32227,6 +32227,7 @@ var BUILT_IN_BUNDLES = buildBuiltInBundles();
|
|
|
32227
32227
|
|
|
32228
32228
|
// src/agent/bundles/scope.ts
|
|
32229
32229
|
var path = __toESM(require("path"));
|
|
32230
|
+
var import_lib3 = require("projen/lib");
|
|
32230
32231
|
function scopeFilePatternsToProjects(root, detected) {
|
|
32231
32232
|
const patterns = /* @__PURE__ */ new Set();
|
|
32232
32233
|
for (const project of detected) {
|
|
@@ -32240,6 +32241,10 @@ function scopeFilePatternsToProjects(root, detected) {
|
|
|
32240
32241
|
const srcdir = project.srcdir ?? "src";
|
|
32241
32242
|
patterns.add(prefix(rel, path.posix.join(srcdir, "**/*.ts")));
|
|
32242
32243
|
}
|
|
32244
|
+
const projenrcTs = readProjenrcTsFile(project);
|
|
32245
|
+
if (projenrcTs) {
|
|
32246
|
+
patterns.add(prefix(rel, projenrcTs));
|
|
32247
|
+
}
|
|
32243
32248
|
}
|
|
32244
32249
|
return [...patterns].sort();
|
|
32245
32250
|
}
|
|
@@ -32250,6 +32255,10 @@ function readTsconfigInclude(project) {
|
|
|
32250
32255
|
}
|
|
32251
32256
|
return tsconfig.include;
|
|
32252
32257
|
}
|
|
32258
|
+
function readProjenrcTsFile(project) {
|
|
32259
|
+
const filePath = import_lib3.ProjenrcFile.of(project)?.filePath;
|
|
32260
|
+
return filePath?.endsWith(".ts") ? filePath : void 0;
|
|
32261
|
+
}
|
|
32253
32262
|
function prefix(rel, entry) {
|
|
32254
32263
|
if (!rel) {
|
|
32255
32264
|
return entry;
|