@travetto/manifest 5.0.9 → 5.0.10
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/LICENSE +1 -1
- package/package.json +4 -1
- package/src/manifest-index.ts +2 -2
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/manifest",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.10",
|
|
4
4
|
"description": "Support for project indexing, manifesting, along with file watching",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"path",
|
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
"engines": {
|
|
26
26
|
"node": ">=22.0.0"
|
|
27
27
|
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@types/node": "^22.10.2"
|
|
30
|
+
},
|
|
28
31
|
"repository": {
|
|
29
32
|
"url": "https://github.com/travetto/travetto.git",
|
|
30
33
|
"directory": "module/manifest"
|
package/src/manifest-index.ts
CHANGED
|
@@ -208,8 +208,8 @@ export class ManifestIndex {
|
|
|
208
208
|
const allMods = Object.keys(this.#manifest.modules);
|
|
209
209
|
const active = new Set<string>(mode === 'workspace' ? this.getWorkspaceModules().map(x => x.name) : allMods);
|
|
210
210
|
|
|
211
|
-
for (const expr of exprList.split(
|
|
212
|
-
const [, neg, mod] = expr.match(/(-|[+])?([^+\- ]
|
|
211
|
+
for (const expr of exprList.split(/,/g)) {
|
|
212
|
+
const [, neg, mod] = expr.trim().match(/(-|[+])?([^+\- ]{1,150})$/) ?? [];
|
|
213
213
|
if (mod) {
|
|
214
214
|
const pattern = new RegExp(`^${mod.replace(/[*]/g, '.*')}$`);
|
|
215
215
|
for (const m of allMods.filter(x => pattern.test(x))) {
|