@monoweave/git 1.11.0 → 1.12.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/lib/gitCommands.js +19 -9
- package/package.json +11 -11
package/lib/gitCommands.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
@@ -72,7 +82,7 @@ const gitDiffTree = async (ref, { cwd, context, onlyIncludeDeletedFiles, paths,
|
|
|
72
82
|
if (fetch) {
|
|
73
83
|
await git('fetch', { cwd, context });
|
|
74
84
|
}
|
|
75
|
-
const args = ['--no-commit-id', '--name-only', '-r', '--root'];
|
|
85
|
+
const args = ['--no-commit-id', '--name-only', '-r', '--root', '--relative'];
|
|
76
86
|
if (onlyIncludeDeletedFiles) {
|
|
77
87
|
args.push('--diff-filter=D');
|
|
78
88
|
}
|
|
@@ -149,7 +159,7 @@ const gitLastTaggedCommit = async ({ cwd, context, prerelease = false, }) => {
|
|
|
149
159
|
try {
|
|
150
160
|
tag = (await git(command, { cwd, context })).stdout.trim();
|
|
151
161
|
}
|
|
152
|
-
catch
|
|
162
|
+
catch {
|
|
153
163
|
logging_1.default.warning('[Exec] Fetching most recent tag failed, falling back to HEAD', {
|
|
154
164
|
report: context?.report,
|
|
155
165
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monoweave/git",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/monoweave/monoweave.git",
|
|
@@ -31,26 +31,26 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@jest/globals": "^30.0.0-alpha.6",
|
|
34
|
-
"@monoweave/io": "1.
|
|
35
|
-
"@monoweave/logging": "1.
|
|
34
|
+
"@monoweave/io": "1.12.0",
|
|
35
|
+
"@monoweave/logging": "1.12.0",
|
|
36
36
|
"@monoweave/test-utils": "link:../../testUtils",
|
|
37
|
-
"@monoweave/types": "1.
|
|
37
|
+
"@monoweave/types": "1.12.0",
|
|
38
38
|
"@types/micromatch": "^4.0.9",
|
|
39
39
|
"@types/node": "^20.15.0",
|
|
40
|
-
"@yarnpkg/core": "^4.1.
|
|
40
|
+
"@yarnpkg/core": "^4.1.6",
|
|
41
41
|
"@yarnpkg/fslib": "^3.1.1",
|
|
42
|
-
"@yarnpkg/shell": "^4.1.
|
|
42
|
+
"@yarnpkg/shell": "^4.1.1"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"micromatch": "^4.0.8"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@monoweave/io": "^1.
|
|
49
|
-
"@monoweave/logging": "^1.
|
|
50
|
-
"@monoweave/types": "^1.
|
|
51
|
-
"@yarnpkg/core": "^4.1.
|
|
48
|
+
"@monoweave/io": "^1.12.0",
|
|
49
|
+
"@monoweave/logging": "^1.12.0",
|
|
50
|
+
"@monoweave/types": "^1.12.0",
|
|
51
|
+
"@yarnpkg/core": "^4.1.6",
|
|
52
52
|
"@yarnpkg/fslib": "^3.1.1",
|
|
53
|
-
"@yarnpkg/shell": "^4.1.
|
|
53
|
+
"@yarnpkg/shell": "^4.1.1"
|
|
54
54
|
},
|
|
55
55
|
"types": "./lib/index.d.ts"
|
|
56
56
|
}
|