@pnpm/workspace.projects-filter 1100.0.21 → 1100.0.23
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/getChangedProjects.js +3 -3
- package/package.json +10 -10
|
@@ -2,13 +2,13 @@ import assert from 'node:assert';
|
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import util from 'node:util';
|
|
4
4
|
import { PnpmError } from '@pnpm/error';
|
|
5
|
+
import * as find from 'empathic/find';
|
|
5
6
|
import { safeExeca as execa } from 'execa';
|
|
6
|
-
import { findUp } from 'find-up';
|
|
7
7
|
import * as micromatch from 'micromatch';
|
|
8
8
|
export async function getChangedProjects(projectDirs, commit, opts) {
|
|
9
9
|
// .git is a directory in regular repos, but a file in worktrees
|
|
10
|
-
const gitPath =
|
|
11
|
-
|
|
10
|
+
const gitPath = find.dir('.git', { cwd: opts.workspaceDir }) ??
|
|
11
|
+
find.file('.git', { cwd: opts.workspaceDir });
|
|
12
12
|
const repoRoot = path.resolve(gitPath ?? opts.workspaceDir, '..');
|
|
13
13
|
const changedDirs = (await getChangedDirsSinceCommit(commit, opts.workspaceDir, opts.testPattern ?? [], opts.changedFilesIgnorePattern ?? []))
|
|
14
14
|
.map(changedDir => ({ ...changedDir, dir: path.join(repoRoot, changedDir.dir) }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/workspace.projects-filter",
|
|
3
|
-
"version": "1100.0.
|
|
3
|
+
"version": "1100.0.23",
|
|
4
4
|
"description": "Filters packages in a workspace",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"funding": "https://opencollective.com/pnpm",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "https://github.com/pnpm/pnpm/tree/main/workspace/projects-filter"
|
|
13
|
+
"url": "https://github.com/pnpm/pnpm/tree/main/pnpm11/workspace/projects-filter"
|
|
14
14
|
},
|
|
15
|
-
"homepage": "https://github.com/pnpm/pnpm/tree/main/workspace/projects-filter#readme",
|
|
15
|
+
"homepage": "https://github.com/pnpm/pnpm/tree/main/pnpm11/workspace/projects-filter#readme",
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/pnpm/pnpm/issues"
|
|
18
18
|
},
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"!*.map"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
+
"empathic": "^2.0.0",
|
|
30
31
|
"execa": "npm:safe-execa@0.3.0",
|
|
31
|
-
"find-up": "^8.0.0",
|
|
32
32
|
"is-subdir": "^2.0.0",
|
|
33
33
|
"micromatch": "^4.0.8",
|
|
34
34
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
35
35
|
"@pnpm/config.matcher": "1100.0.1",
|
|
36
|
-
"@pnpm/
|
|
37
|
-
"@pnpm/
|
|
38
|
-
"@pnpm/workspace.
|
|
39
|
-
"@pnpm/workspace.
|
|
36
|
+
"@pnpm/error": "1100.0.1",
|
|
37
|
+
"@pnpm/workspace.projects-reader": "1101.0.13",
|
|
38
|
+
"@pnpm/workspace.projects-graph": "1100.0.20",
|
|
39
|
+
"@pnpm/workspace.workspace-manifest-reader": "1100.0.9"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@jest/globals": "30.4.1",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"is-windows": "^1.0.2",
|
|
49
49
|
"tempy": "3.0.0",
|
|
50
50
|
"touch": "3.1.1",
|
|
51
|
-
"@pnpm/
|
|
52
|
-
"@pnpm/
|
|
51
|
+
"@pnpm/types": "1101.3.2",
|
|
52
|
+
"@pnpm/workspace.projects-filter": "1100.0.23"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=22.13"
|