@backstage/codemods 0.1.24 → 0.1.25
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 +9 -0
- package/dist/index.cjs.js +8 -8
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -23,10 +23,10 @@ var commander = {exports: {}};
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
(function (module, exports) {
|
|
26
|
-
const EventEmitter = require$$0__default[
|
|
27
|
-
const spawn = require$$1__default[
|
|
28
|
-
const path = require$$2__default[
|
|
29
|
-
const fs = require$$3__default[
|
|
26
|
+
const EventEmitter = require$$0__default["default"].EventEmitter;
|
|
27
|
+
const spawn = require$$1__default["default"].spawn;
|
|
28
|
+
const path = require$$2__default["default"];
|
|
29
|
+
const fs = require$$3__default["default"];
|
|
30
30
|
|
|
31
31
|
// @ts-check
|
|
32
32
|
|
|
@@ -1927,13 +1927,13 @@ class ExitCodeError extends CustomError {
|
|
|
1927
1927
|
function exitWithError(error) {
|
|
1928
1928
|
if (error instanceof ExitCodeError) {
|
|
1929
1929
|
process.stderr.write(`
|
|
1930
|
-
${chalk__default[
|
|
1930
|
+
${chalk__default["default"].red(error.message)}
|
|
1931
1931
|
|
|
1932
1932
|
`);
|
|
1933
1933
|
process.exit(error.code);
|
|
1934
1934
|
} else {
|
|
1935
1935
|
process.stderr.write(`
|
|
1936
|
-
${chalk__default[
|
|
1936
|
+
${chalk__default["default"].red(`${error}`)}
|
|
1937
1937
|
|
|
1938
1938
|
`);
|
|
1939
1939
|
process.exit(1);
|
|
@@ -1994,7 +1994,7 @@ function createCodemodAction(name) {
|
|
|
1994
1994
|
};
|
|
1995
1995
|
}
|
|
1996
1996
|
|
|
1997
|
-
var version = "0.1.
|
|
1997
|
+
var version = "0.1.25";
|
|
1998
1998
|
|
|
1999
1999
|
async function main(argv) {
|
|
2000
2000
|
program.name("backstage-codemods").version(version);
|
|
@@ -2011,7 +2011,7 @@ async function main(argv) {
|
|
|
2011
2011
|
});
|
|
2012
2012
|
program.on("command:*", () => {
|
|
2013
2013
|
console.log();
|
|
2014
|
-
console.log(chalk__default[
|
|
2014
|
+
console.log(chalk__default["default"].red(`Invalid command: ${program.args.join(" ")}`));
|
|
2015
2015
|
console.log();
|
|
2016
2016
|
program.outputHelp();
|
|
2017
2017
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/codemods",
|
|
3
3
|
"description": "A collection of codemods for Backstage projects",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.25",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"dist",
|
|
56
56
|
"transforms"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "562be0b43016294e27af3ad024191bb86b13b1c1"
|
|
59
59
|
}
|