@backstage/repo-tools 0.15.4-next.0 → 0.15.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/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
# @backstage/repo-tools
|
|
2
2
|
|
|
3
|
-
## 0.15.4
|
|
3
|
+
## 0.15.4
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
- Updated dependencies
|
|
9
|
-
- @backstage/config-loader@1.10.6-next.0
|
|
10
|
-
- @backstage/cli-node@0.2.15-next.0
|
|
11
|
-
- @backstage/catalog-model@1.7.6-next.0
|
|
12
|
-
- @backstage/backend-plugin-api@1.4.5-next.0
|
|
13
|
-
- @backstage/cli-common@0.1.15
|
|
14
|
-
- @backstage/errors@1.2.7
|
|
7
|
+
- Upgraded `tar` dependency to v7.
|
|
15
8
|
|
|
16
9
|
## 0.15.3
|
|
17
10
|
|
|
@@ -14,9 +14,27 @@ var tar = require('tar');
|
|
|
14
14
|
|
|
15
15
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
16
16
|
|
|
17
|
+
function _interopNamespaceCompat(e) {
|
|
18
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
19
|
+
var n = Object.create(null);
|
|
20
|
+
if (e) {
|
|
21
|
+
Object.keys(e).forEach(function (k) {
|
|
22
|
+
if (k !== 'default') {
|
|
23
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
24
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return e[k]; }
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
n.default = e;
|
|
32
|
+
return Object.freeze(n);
|
|
33
|
+
}
|
|
34
|
+
|
|
17
35
|
var os__default = /*#__PURE__*/_interopDefaultCompat(os);
|
|
18
36
|
var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
|
|
19
|
-
var
|
|
37
|
+
var tar__namespace = /*#__PURE__*/_interopNamespaceCompat(tar);
|
|
20
38
|
|
|
21
39
|
const DEFAULT_REGISTRY_URL = "https://registry.npmjs.org";
|
|
22
40
|
const PATCH_GITIGNORE = [
|
|
@@ -227,7 +245,7 @@ async function generatePatchForArchives(ctx, baseArchive, headArchive) {
|
|
|
227
245
|
const basePath = path.join(ctx.workDir, baseArchive);
|
|
228
246
|
const headPath = path.join(ctx.workDir, headArchive);
|
|
229
247
|
const patchDir = await fs__default.default.mkdtemp(path.join(ctx.workDir, "patch-"));
|
|
230
|
-
await
|
|
248
|
+
await tar__namespace.extract({ file: basePath, cwd: patchDir, strip: 1 });
|
|
231
249
|
await fs__default.default.writeFile(
|
|
232
250
|
path.join(patchDir, ".gitignore"),
|
|
233
251
|
PATCH_GITIGNORE.join(os__default.default.EOL)
|
|
@@ -265,7 +283,7 @@ async function generatePatchForArchives(ctx, baseArchive, headArchive) {
|
|
|
265
283
|
});
|
|
266
284
|
}
|
|
267
285
|
}
|
|
268
|
-
await
|
|
286
|
+
await tar__namespace.extract({ file: headPath, cwd: patchDir, strip: 1 });
|
|
269
287
|
await exec.exec("git", ["add", "."], {
|
|
270
288
|
cwd: patchDir,
|
|
271
289
|
env: { ...process.env, ...GIT_ENV }
|
|
@@ -21,18 +21,14 @@ const cacheEntrySchema = zod.z.object({
|
|
|
21
21
|
version: zod.z.string()
|
|
22
22
|
});
|
|
23
23
|
class PackageDocsCache {
|
|
24
|
-
// A map of package directory to package hash.
|
|
25
|
-
keyCache;
|
|
26
|
-
lockfile;
|
|
27
|
-
// A map of package directory to cache entry.
|
|
28
|
-
cache;
|
|
29
|
-
baseDirectory;
|
|
30
24
|
constructor(lockfile, cache, baseDirectory) {
|
|
31
25
|
this.lockfile = lockfile;
|
|
32
26
|
this.cache = cache;
|
|
33
27
|
this.baseDirectory = baseDirectory;
|
|
34
28
|
this.keyCache = /* @__PURE__ */ new Map();
|
|
35
29
|
}
|
|
30
|
+
// A map of package directory to package hash.
|
|
31
|
+
keyCache;
|
|
36
32
|
static async loadAsync(baseDirectory, lockfile) {
|
|
37
33
|
const cacheDir = path.join(baseDirectory, constants.CACHE_DIR);
|
|
38
34
|
await fs.mkdirp(cacheDir);
|
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.15.4
|
|
3
|
+
"version": "0.15.4",
|
|
4
4
|
"description": "CLI for Backstage repo tooling ",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "cli"
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@apidevtools/swagger-parser": "^10.1.0",
|
|
45
45
|
"@apisyouwonthate/style-guide": "^1.4.0",
|
|
46
|
-
"@backstage/backend-plugin-api": "1.4.
|
|
47
|
-
"@backstage/catalog-model": "1.7.
|
|
48
|
-
"@backstage/cli-common": "0.1.15",
|
|
49
|
-
"@backstage/cli-node": "0.2.
|
|
50
|
-
"@backstage/config-loader": "1.10.
|
|
51
|
-
"@backstage/errors": "1.2.7",
|
|
46
|
+
"@backstage/backend-plugin-api": "^1.4.4",
|
|
47
|
+
"@backstage/catalog-model": "^1.7.5",
|
|
48
|
+
"@backstage/cli-common": "^0.1.15",
|
|
49
|
+
"@backstage/cli-node": "^0.2.14",
|
|
50
|
+
"@backstage/config-loader": "^1.10.5",
|
|
51
|
+
"@backstage/errors": "^1.2.7",
|
|
52
52
|
"@electric-sql/pglite": "^0.3.0",
|
|
53
53
|
"@manypkg/get-packages": "^1.1.3",
|
|
54
54
|
"@microsoft/api-documenter": "^7.25.7",
|
|
@@ -80,15 +80,15 @@
|
|
|
80
80
|
"minimatch": "^9.0.0",
|
|
81
81
|
"p-limit": "^3.0.2",
|
|
82
82
|
"portfinder": "^1.0.32",
|
|
83
|
-
"tar": "^
|
|
83
|
+
"tar": "^7.4.3",
|
|
84
84
|
"ts-morph": "^24.0.0",
|
|
85
85
|
"yaml-diff-patch": "^2.0.0",
|
|
86
86
|
"zod": "^3.22.4"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@backstage/backend-test-utils": "1.
|
|
90
|
-
"@backstage/cli": "0.34.
|
|
91
|
-
"@backstage/types": "1.2.2",
|
|
89
|
+
"@backstage/backend-test-utils": "^1.9.1",
|
|
90
|
+
"@backstage/cli": "^0.34.4",
|
|
91
|
+
"@backstage/types": "^1.2.2",
|
|
92
92
|
"@types/is-glob": "^4.0.2",
|
|
93
93
|
"@types/node": "^20.16.0",
|
|
94
94
|
"@types/prettier": "^2.0.0",
|