@carbon/cli 11.29.0-rc.0 → 11.29.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/cli",
|
|
3
3
|
"description": "Task automation for working with the Carbon Design System",
|
|
4
|
-
"version": "11.29.0
|
|
4
|
+
"version": "11.29.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
7
7
|
"carbon-cli": "./bin/carbon-cli.js"
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"typescript-config-carbon": "^0.5.0",
|
|
57
57
|
"yargs": "^17.0.1"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "faed0dec20f49fc7a98d7509c2c0170dff9992fc"
|
|
60
60
|
}
|
package/src/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2019,
|
|
2
|
+
* Copyright IBM Corp. 2019, 2025
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -14,9 +14,7 @@ async function main({ argv }) {
|
|
|
14
14
|
cli
|
|
15
15
|
.scriptName(packageJson.name)
|
|
16
16
|
.version(packageJson.version)
|
|
17
|
-
.usage('Usage: $0 [options]')
|
|
18
|
-
|
|
19
|
-
cli
|
|
17
|
+
.usage('Usage: $0 [options]')
|
|
20
18
|
.commandDir('commands')
|
|
21
19
|
.strict()
|
|
22
20
|
.fail((message, error, yargs) => {
|
|
@@ -27,13 +25,12 @@ async function main({ argv }) {
|
|
|
27
25
|
}
|
|
28
26
|
console.error(error);
|
|
29
27
|
process.exit(1);
|
|
30
|
-
return;
|
|
31
28
|
}
|
|
32
29
|
console.log(message);
|
|
33
30
|
console.log(yargs.help());
|
|
34
31
|
process.exit(1);
|
|
35
32
|
})
|
|
36
|
-
.parse(argv.slice(2))
|
|
33
|
+
.parse(argv.slice(2));
|
|
37
34
|
}
|
|
38
35
|
|
|
39
36
|
module.exports = main;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2019,
|
|
2
|
+
* Copyright IBM Corp. 2019, 2025
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -63,6 +63,7 @@ async function getGitHubClient() {
|
|
|
63
63
|
await octokit.users.getAuthenticated();
|
|
64
64
|
return octokit;
|
|
65
65
|
} catch (error) {
|
|
66
|
+
console.error(error);
|
|
66
67
|
throw new Error('Invalid GitHub token');
|
|
67
68
|
}
|
|
68
69
|
}
|