@backstage/repo-tools 0.3.2-next.0 → 0.3.2
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,23 @@
|
|
|
1
1
|
# @backstage/repo-tools
|
|
2
2
|
|
|
3
|
+
## 0.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/errors@1.2.1
|
|
9
|
+
- @backstage/cli-node@0.1.2
|
|
10
|
+
- @backstage/cli-common@0.1.12
|
|
11
|
+
|
|
12
|
+
## 0.3.2-next.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @backstage/cli-node@0.1.2-next.1
|
|
18
|
+
- @backstage/cli-common@0.1.12
|
|
19
|
+
- @backstage/errors@1.2.1-next.0
|
|
20
|
+
|
|
3
21
|
## 0.3.2-next.0
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -23,6 +23,12 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
23
23
|
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
24
24
|
var minimatch__default = /*#__PURE__*/_interopDefaultLegacy(minimatch);
|
|
25
25
|
|
|
26
|
+
var __defProp = Object.defineProperty;
|
|
27
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
28
|
+
var __publicField = (obj, key, value) => {
|
|
29
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
30
|
+
return value;
|
|
31
|
+
};
|
|
26
32
|
var __accessCheck = (obj, member, msg) => {
|
|
27
33
|
if (!member.has(obj))
|
|
28
34
|
throw TypeError("Cannot " + msg);
|
|
@@ -483,7 +489,7 @@ class ExcerptTokenMatcher {
|
|
|
483
489
|
}
|
|
484
490
|
}
|
|
485
491
|
_tokens = new WeakMap();
|
|
486
|
-
const _ApiModelTransforms = class {
|
|
492
|
+
const _ApiModelTransforms = class _ApiModelTransforms {
|
|
487
493
|
static deserializeWithTransforms(serialized, transforms) {
|
|
488
494
|
if (serialized.kind !== "Package") {
|
|
489
495
|
throw new Error(
|
|
@@ -559,8 +565,7 @@ const _ApiModelTransforms = class {
|
|
|
559
565
|
};
|
|
560
566
|
}
|
|
561
567
|
};
|
|
562
|
-
|
|
563
|
-
ApiModelTransforms.transformArrowComponents = (member) => {
|
|
568
|
+
__publicField(_ApiModelTransforms, "transformArrowComponents", (member) => {
|
|
564
569
|
if (member.kind !== "Variable") {
|
|
565
570
|
return member;
|
|
566
571
|
}
|
|
@@ -587,8 +592,8 @@ ApiModelTransforms.transformArrowComponents = (member) => {
|
|
|
587
592
|
}
|
|
588
593
|
}
|
|
589
594
|
return member;
|
|
590
|
-
};
|
|
591
|
-
|
|
595
|
+
});
|
|
596
|
+
__publicField(_ApiModelTransforms, "transformTrimDeclare", (member) => {
|
|
592
597
|
const { excerptTokens } = member;
|
|
593
598
|
const firstContent = new ExcerptTokenMatcher(excerptTokens).nextContent();
|
|
594
599
|
if (firstContent && firstContent.startsWith("export declare ")) {
|
|
@@ -604,7 +609,8 @@ ApiModelTransforms.transformTrimDeclare = (member) => {
|
|
|
604
609
|
};
|
|
605
610
|
}
|
|
606
611
|
return member;
|
|
607
|
-
};
|
|
612
|
+
});
|
|
613
|
+
let ApiModelTransforms = _ApiModelTransforms;
|
|
608
614
|
async function buildDocs({
|
|
609
615
|
inputDir,
|
|
610
616
|
outputDir
|
|
@@ -626,9 +632,10 @@ async function buildDocs({
|
|
|
626
632
|
])
|
|
627
633
|
);
|
|
628
634
|
}
|
|
629
|
-
const _DocFrontMatter = class extends tsdoc.DocNode {
|
|
635
|
+
const _DocFrontMatter = class _DocFrontMatter extends tsdoc.DocNode {
|
|
630
636
|
constructor(parameters) {
|
|
631
637
|
super(parameters);
|
|
638
|
+
__publicField(this, "values");
|
|
632
639
|
this.values = parameters.values;
|
|
633
640
|
}
|
|
634
641
|
/** @override */
|
|
@@ -636,16 +643,16 @@ async function buildDocs({
|
|
|
636
643
|
return _DocFrontMatter.kind;
|
|
637
644
|
}
|
|
638
645
|
};
|
|
646
|
+
__publicField(_DocFrontMatter, "kind", "DocFrontMatter");
|
|
639
647
|
let DocFrontMatter = _DocFrontMatter;
|
|
640
|
-
|
|
641
|
-
const _DocCodeSpanLink = class extends tsdoc.DocLinkTag {
|
|
648
|
+
const _DocCodeSpanLink = class _DocCodeSpanLink extends tsdoc.DocLinkTag {
|
|
642
649
|
/** @override */
|
|
643
650
|
get kind() {
|
|
644
651
|
return _DocCodeSpanLink.kind;
|
|
645
652
|
}
|
|
646
653
|
};
|
|
654
|
+
__publicField(_DocCodeSpanLink, "kind", "DocCodeSpanLink");
|
|
647
655
|
let DocCodeSpanLink = _DocCodeSpanLink;
|
|
648
|
-
DocCodeSpanLink.kind = "DocCodeSpanLink";
|
|
649
656
|
class CustomCustomMarkdownEmitter extends CustomMarkdownEmitter.CustomMarkdownEmitter {
|
|
650
657
|
// Until https://github.com/microsoft/rushstack/issues/2914 gets fixed or we change markdown renderer we need a fix
|
|
651
658
|
// to render pipe | character correctly.
|
|
@@ -1150,4 +1157,4 @@ function parseArrayOption(value) {
|
|
|
1150
1157
|
}
|
|
1151
1158
|
|
|
1152
1159
|
exports.buildApiReports = buildApiReports;
|
|
1153
|
-
//# sourceMappingURL=api-reports-
|
|
1160
|
+
//# sourceMappingURL=api-reports-2bcd4682.cjs.js.map
|
package/dist/index.cjs.js
CHANGED
|
@@ -8,6 +8,12 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
8
8
|
|
|
9
9
|
var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
|
|
10
10
|
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __publicField = (obj, key, value) => {
|
|
14
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
15
|
+
return value;
|
|
16
|
+
};
|
|
11
17
|
class CustomError extends Error {
|
|
12
18
|
get name() {
|
|
13
19
|
return this.constructor.name;
|
|
@@ -18,6 +24,7 @@ class ExitCodeError extends CustomError {
|
|
|
18
24
|
super(
|
|
19
25
|
command ? `Command '${command}' exited with code ${code}` : `Child exited with code ${code}`
|
|
20
26
|
);
|
|
27
|
+
__publicField(this, "code");
|
|
21
28
|
this.code = code;
|
|
22
29
|
}
|
|
23
30
|
}
|
|
@@ -75,7 +82,7 @@ function registerCommands(program) {
|
|
|
75
82
|
"Turn on release tag validation for the public, beta, and alpha APIs"
|
|
76
83
|
).description("Generate an API report for selected packages").action(
|
|
77
84
|
lazy(
|
|
78
|
-
() => Promise.resolve().then(function () { return require('./cjs/api-reports-
|
|
85
|
+
() => Promise.resolve().then(function () { return require('./cjs/api-reports-2bcd4682.cjs.js'); }).then((m) => m.buildApiReports)
|
|
79
86
|
)
|
|
80
87
|
);
|
|
81
88
|
program.command("type-deps").description("Find inconsistencies in types of all packages and plugins").action(lazy(() => Promise.resolve().then(function () { return require('./cjs/type-deps-5eacd931.cjs.js'); }).then((m) => m.default)));
|
|
@@ -94,7 +101,7 @@ function lazy(getActionFunc) {
|
|
|
94
101
|
};
|
|
95
102
|
}
|
|
96
103
|
|
|
97
|
-
var version = "0.3.2
|
|
104
|
+
var version = "0.3.2";
|
|
98
105
|
|
|
99
106
|
const main = (argv) => {
|
|
100
107
|
commander.program.name("backstage-repo-tools").version(version);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/repo-tools",
|
|
3
3
|
"description": "CLI for Backstage repo tooling ",
|
|
4
|
-
"version": "0.3.2
|
|
4
|
+
"version": "0.3.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"@apidevtools/swagger-parser": "^10.1.0",
|
|
34
34
|
"@apisyouwonthate/style-guide": "^1.4.0",
|
|
35
35
|
"@backstage/cli-common": "^0.1.12",
|
|
36
|
-
"@backstage/cli-node": "^0.1.2
|
|
37
|
-
"@backstage/errors": "^1.2.1
|
|
36
|
+
"@backstage/cli-node": "^0.1.2",
|
|
37
|
+
"@backstage/errors": "^1.2.1",
|
|
38
38
|
"@manypkg/get-packages": "^1.1.3",
|
|
39
39
|
"@microsoft/api-documenter": "^7.19.27",
|
|
40
40
|
"@microsoft/api-extractor": "^7.33.7",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"ts-node": "^10.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@backstage/cli": "^0.22.9
|
|
60
|
+
"@backstage/cli": "^0.22.9",
|
|
61
61
|
"@backstage/types": "^1.1.0",
|
|
62
62
|
"@types/is-glob": "^4.0.2",
|
|
63
63
|
"@types/mock-fs": "^4.13.0",
|