@effected/workspaces 0.34.0 → 0.35.0
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/ImportGraph.js +5 -3
- package/package.json +11 -11
package/ImportGraph.js
CHANGED
|
@@ -450,12 +450,14 @@ var ImportGraph = class {
|
|
|
450
450
|
const packages = yield* discovery.listPackages();
|
|
451
451
|
/**
|
|
452
452
|
* Whether `file` sits under the directory `dir`: the relative path from
|
|
453
|
-
* `dir` to `file` stays inside it
|
|
454
|
-
*
|
|
453
|
+
* `dir` to `file` stays inside it, so `dir` itself is not under it, and
|
|
454
|
+
* neither is `dir`'s direct parent, which `path.relative` answers as
|
|
455
|
+
* `..` rather than a `..${sep}` prefix. A drive or root mismatch
|
|
456
|
+
* surfaces as an absolute relative path and reads as not under.
|
|
455
457
|
*/
|
|
456
458
|
const under = (file, dir) => {
|
|
457
459
|
const rel = path.relative(dir, file);
|
|
458
|
-
return rel !== "" && rel !== "." && !path.isAbsolute(rel) && !rel.startsWith(`..${path.sep}`);
|
|
460
|
+
return rel !== "" && rel !== "." && rel !== ".." && !path.isAbsolute(rel) && !rel.startsWith(`..${path.sep}`);
|
|
459
461
|
};
|
|
460
462
|
/**
|
|
461
463
|
* The innermost package owning `file`, or `undefined` when no package
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/workspaces",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Monorepo workspace tooling as Effect services — root discovery, package enumeration, the dependency graph, package-manager detection, pnpm catalog resolution, lockfile IO and git-based change detection.",
|
|
6
6
|
"keywords": [
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
"./package.json": "./package.json"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@effected/commands": "^0.
|
|
55
|
-
"@effected/git": "^0.
|
|
56
|
-
"@effected/glob": "^0.
|
|
57
|
-
"@effected/jsonc": "^0.
|
|
58
|
-
"@effected/lockfiles": "^0.
|
|
59
|
-
"@effected/npm": "^0.
|
|
60
|
-
"@effected/package-json": "^0.
|
|
61
|
-
"@effected/semver": "^0.
|
|
62
|
-
"@effected/walker": "^0.
|
|
63
|
-
"@effected/yaml": "^0.
|
|
54
|
+
"@effected/commands": "^0.14.0",
|
|
55
|
+
"@effected/git": "^0.23.0",
|
|
56
|
+
"@effected/glob": "^0.13.0",
|
|
57
|
+
"@effected/jsonc": "^0.18.0",
|
|
58
|
+
"@effected/lockfiles": "^0.18.0",
|
|
59
|
+
"@effected/npm": "^0.23.0",
|
|
60
|
+
"@effected/package-json": "^0.23.0",
|
|
61
|
+
"@effected/semver": "^0.14.0",
|
|
62
|
+
"@effected/walker": "^0.18.0",
|
|
63
|
+
"@effected/yaml": "^0.22.0",
|
|
64
64
|
"@pnpm/catalogs.config": "^1100.0.5",
|
|
65
65
|
"@pnpm/catalogs.protocol-parser": "^1100.0.0",
|
|
66
66
|
"@pnpm/catalogs.resolver": "^1100.0.0",
|