@backstage/repo-tools 0.11.0-next.2 → 0.11.0-next.3
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @backstage/repo-tools
|
|
2
2
|
|
|
3
|
+
## 0.11.0-next.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 95401a8: The `generate-patch` command now properly includes newly created files in the patch.
|
|
8
|
+
- 23f1da2: Updated dependency `ts-morph` to `^24.0.0`.
|
|
9
|
+
- 3f1fb21: The `generate-patch` command will now fall back to always adding a `resolutions` entry, even if no matching descriptors are found.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- @backstage/backend-plugin-api@1.0.2-next.2
|
|
12
|
+
- @backstage/catalog-model@1.7.0
|
|
13
|
+
- @backstage/cli-common@0.1.15-next.0
|
|
14
|
+
- @backstage/cli-node@0.2.10-next.0
|
|
15
|
+
- @backstage/config-loader@1.9.2-next.0
|
|
16
|
+
- @backstage/errors@1.2.4
|
|
17
|
+
|
|
3
18
|
## 0.11.0-next.2
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -145,8 +145,12 @@ async function loadTrimmedRootPkg(ctx, query) {
|
|
|
145
145
|
descriptors.push(descriptor);
|
|
146
146
|
}
|
|
147
147
|
return async (patchEntry) => {
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
if (descriptors.length > 0) {
|
|
149
|
+
for (const descriptor of descriptors) {
|
|
150
|
+
resolutionsObj[descriptor] = patchEntry;
|
|
151
|
+
}
|
|
152
|
+
} else {
|
|
153
|
+
resolutionsObj[ctx.packageName] = patchEntry;
|
|
150
154
|
}
|
|
151
155
|
await fs__default.default.writeJson(
|
|
152
156
|
path.resolve(ctx.targetRoot, "package.json"),
|
|
@@ -286,6 +290,22 @@ async function generatePatchForArchives(ctx, baseArchive, headArchive) {
|
|
|
286
290
|
cwd: patchDir,
|
|
287
291
|
env: { ...process.env, ...GIT_ENV }
|
|
288
292
|
});
|
|
293
|
+
await exec.exec(
|
|
294
|
+
"git",
|
|
295
|
+
[
|
|
296
|
+
"-c",
|
|
297
|
+
'user.name="patcher"',
|
|
298
|
+
"-c",
|
|
299
|
+
'user.email="patcher@acme.org"',
|
|
300
|
+
"commit",
|
|
301
|
+
"-m",
|
|
302
|
+
"base"
|
|
303
|
+
],
|
|
304
|
+
{
|
|
305
|
+
cwd: patchDir,
|
|
306
|
+
env: { ...process.env, ...GIT_ENV }
|
|
307
|
+
}
|
|
308
|
+
);
|
|
289
309
|
for (const path$1 of await fs__default.default.readdir(patchDir)) {
|
|
290
310
|
if (path$1 !== ".git" && path$1 !== ".gitignore") {
|
|
291
311
|
await fs__default.default.rm(path.join(patchDir, path$1), {
|
|
@@ -296,12 +316,17 @@ async function generatePatchForArchives(ctx, baseArchive, headArchive) {
|
|
|
296
316
|
}
|
|
297
317
|
}
|
|
298
318
|
await tar__default.default.extract({ file: headPath, cwd: patchDir, strip: 1 });
|
|
319
|
+
await exec.exec("git", ["add", "."], {
|
|
320
|
+
cwd: patchDir,
|
|
321
|
+
env: { ...process.env, ...GIT_ENV }
|
|
322
|
+
});
|
|
299
323
|
const { stdout: patch } = await exec.exec(
|
|
300
324
|
"git",
|
|
301
325
|
[
|
|
302
326
|
"-c",
|
|
303
327
|
"core.safecrlf=false",
|
|
304
328
|
"diff",
|
|
329
|
+
"--cached",
|
|
305
330
|
"--src-prefix=a/",
|
|
306
331
|
"--dst-prefix=b/",
|
|
307
332
|
"--ignore-cr-at-eol",
|
package/dist/package.json.cjs.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/repo-tools",
|
|
3
|
-
"version": "0.11.0-next.
|
|
3
|
+
"version": "0.11.0-next.3",
|
|
4
4
|
"description": "CLI for Backstage repo tooling ",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "cli"
|
|
@@ -75,12 +75,12 @@
|
|
|
75
75
|
"p-limit": "^3.0.2",
|
|
76
76
|
"portfinder": "^1.0.32",
|
|
77
77
|
"tar": "^6.1.12",
|
|
78
|
-
"ts-morph": "^
|
|
78
|
+
"ts-morph": "^24.0.0",
|
|
79
79
|
"yaml-diff-patch": "^2.0.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@backstage/backend-test-utils": "1.1.0-next.
|
|
83
|
-
"@backstage/cli": "0.29.0-next.
|
|
82
|
+
"@backstage/backend-test-utils": "1.1.0-next.3",
|
|
83
|
+
"@backstage/cli": "0.29.0-next.3",
|
|
84
84
|
"@backstage/types": "1.1.1",
|
|
85
85
|
"@types/is-glob": "^4.0.2",
|
|
86
86
|
"@types/node": "^20.16.0",
|