workspace-tools 0.36.2 → 0.36.4
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/README.md +2 -2
- package/lib/scope.js +2 -2
- package/lib/scope.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# workspace-tools
|
|
2
2
|
|
|
3
|
-
A collection of
|
|
3
|
+
A collection of utilities that are useful in a git-controlled monorepo managed by one of these tools:
|
|
4
4
|
|
|
5
5
|
- lerna
|
|
6
6
|
- npm workspaces
|
|
@@ -8,7 +8,7 @@ A collection of tools that are useful in a git-controlled monorepo that is manag
|
|
|
8
8
|
- rush
|
|
9
9
|
- yarn workspaces
|
|
10
10
|
|
|
11
|
-
## Environment
|
|
11
|
+
## Environment variables
|
|
12
12
|
|
|
13
13
|
### GIT_DEBUG
|
|
14
14
|
|
package/lib/scope.js
CHANGED
|
@@ -15,7 +15,7 @@ function getScopedPackages(search, packages) {
|
|
|
15
15
|
// perform a package-scoped search (e.g. search is @scope/foo*)
|
|
16
16
|
const scopedSearch = search.filter((needle) => needle.startsWith("@") || needle.startsWith("!@"));
|
|
17
17
|
if (scopedSearch.length > 0) {
|
|
18
|
-
const matched = (0, micromatch_1.default)(packageNames, scopedSearch);
|
|
18
|
+
const matched = (0, micromatch_1.default)(packageNames, scopedSearch, { nocase: true });
|
|
19
19
|
for (const pkg of matched) {
|
|
20
20
|
results.add(pkg);
|
|
21
21
|
}
|
|
@@ -25,7 +25,7 @@ function getScopedPackages(search, packages) {
|
|
|
25
25
|
if (unscopedSearch.length > 0) {
|
|
26
26
|
// only generate the bare package map if there ARE unscoped searches
|
|
27
27
|
const barePackageMap = generateBarePackageMap(packageNames);
|
|
28
|
-
let matched = (0, micromatch_1.default)(Object.keys(barePackageMap), unscopedSearch);
|
|
28
|
+
let matched = (0, micromatch_1.default)(Object.keys(barePackageMap), unscopedSearch, { nocase: true });
|
|
29
29
|
for (const bare of matched) {
|
|
30
30
|
for (const pkg of barePackageMap[bare]) {
|
|
31
31
|
results.add(pkg);
|
package/lib/scope.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.js","sourceRoot":"","sources":["../src/scope.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAoC;AAEpC;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,MAAgB,EAAE,QAA+C;IACjG,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAEhF,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IAElC,+DAA+D;IAC/D,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IAClG,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;QAC3B,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,YAAY,EAAE,YAAY,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"scope.js","sourceRoot":"","sources":["../src/scope.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAoC;AAEpC;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,MAAgB,EAAE,QAA+C;IACjG,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAEhF,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IAElC,+DAA+D;IAC/D,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EA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