@rnx-kit/cli 0.16.24 → 0.16.26
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/lib/clean.js +1 -0
- package/lib/serve/help.js +2 -6
- package/package.json +4 -5
- package/src/clean.ts +1 -0
- package/src/serve/help.ts +1 -2
package/lib/clean.js
CHANGED
|
@@ -165,6 +165,7 @@ function execute(command, args, cwd) {
|
|
|
165
165
|
const process = (0, child_process_1.spawn)(command, args, {
|
|
166
166
|
cwd,
|
|
167
167
|
stdio: ["inherit", null, null],
|
|
168
|
+
shell: command.endsWith(".bat") || command.endsWith(".cmd"),
|
|
168
169
|
});
|
|
169
170
|
const stderr = [];
|
|
170
171
|
process.stderr.on("data", (data) => {
|
package/lib/serve/help.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.makeHelp = void 0;
|
|
7
|
-
const
|
|
4
|
+
const console_1 = require("@rnx-kit/console");
|
|
8
5
|
function makeHelp(terminal, { hasDebugger }) {
|
|
9
6
|
const openDebugger = hasDebugger
|
|
10
7
|
? ["J", "Open debugger"]
|
|
@@ -31,7 +28,6 @@ function makeHelp(terminal, { hasDebugger }) {
|
|
|
31
28
|
const keyWidth = menuItems.reduce(maxColumnWidth(0), 0);
|
|
32
29
|
const labelWidth = menuItems.reduce(maxColumnWidth(1), 0);
|
|
33
30
|
const separator = `┠${"─".repeat(labelWidth + keyWidth + margin + 1)}`;
|
|
34
|
-
const dim = chalk_1.default.dim;
|
|
35
31
|
const lines = menuItems.map((item) => {
|
|
36
32
|
if (!item) {
|
|
37
33
|
return separator;
|
|
@@ -40,7 +36,7 @@ function makeHelp(terminal, { hasDebugger }) {
|
|
|
40
36
|
const labelPadding = labelWidth - label.length;
|
|
41
37
|
const keyPadding = keyWidth - key.length;
|
|
42
38
|
const padding = " ".repeat(labelPadding + keyPadding + margin);
|
|
43
|
-
return `┃ ${dim(label)}${padding}${key}`;
|
|
39
|
+
return `┃ ${(0, console_1.dim)(label)}${padding}${key}`;
|
|
44
40
|
});
|
|
45
41
|
lines.push("");
|
|
46
42
|
const help = lines.join("\n");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rnx-kit/cli",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.26",
|
|
4
4
|
"description": "Command-line interface for working with kit packages in your repo",
|
|
5
5
|
"homepage": "https://github.com/microsoft/rnx-kit/tree/main/packages/cli#readme",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,20 +37,19 @@
|
|
|
37
37
|
"test": "rnx-kit-scripts test"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@rnx-kit/align-deps": "^2.4.
|
|
40
|
+
"@rnx-kit/align-deps": "^2.4.3",
|
|
41
41
|
"@rnx-kit/config": "^0.6.6",
|
|
42
|
-
"@rnx-kit/console": "^1.0
|
|
42
|
+
"@rnx-kit/console": "^1.1.0",
|
|
43
43
|
"@rnx-kit/metro-plugin-cyclic-dependencies-detector": "^1.1.1",
|
|
44
44
|
"@rnx-kit/metro-plugin-duplicates-checker": "^2.1.1",
|
|
45
45
|
"@rnx-kit/metro-plugin-typescript": "^0.4.4",
|
|
46
46
|
"@rnx-kit/metro-serializer": "^1.0.14",
|
|
47
47
|
"@rnx-kit/metro-serializer-esbuild": "^0.1.31",
|
|
48
|
-
"@rnx-kit/metro-service": "^3.1.
|
|
48
|
+
"@rnx-kit/metro-service": "^3.1.6",
|
|
49
49
|
"@rnx-kit/third-party-notices": "^1.3.4",
|
|
50
50
|
"@rnx-kit/tools-language": "^2.0.0",
|
|
51
51
|
"@rnx-kit/tools-node": "^2.1.1",
|
|
52
52
|
"@rnx-kit/tools-react-native": "^1.3.5",
|
|
53
|
-
"chalk": "^4.1.0",
|
|
54
53
|
"fs-extra": "^10.0.0",
|
|
55
54
|
"node-fetch": "^2.6.7",
|
|
56
55
|
"ora": "^5.4.1",
|
package/src/clean.ts
CHANGED
|
@@ -174,6 +174,7 @@ function execute(command: string, args: string[], cwd: string): Promise<void> {
|
|
|
174
174
|
const process = spawn(command, args, {
|
|
175
175
|
cwd,
|
|
176
176
|
stdio: ["inherit", null, null],
|
|
177
|
+
shell: command.endsWith(".bat") || command.endsWith(".cmd"),
|
|
177
178
|
});
|
|
178
179
|
|
|
179
180
|
const stderr: Buffer[] = [];
|
package/src/serve/help.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { dim } from "@rnx-kit/console";
|
|
1
2
|
import type { MetroTerminal } from "@rnx-kit/metro-service";
|
|
2
|
-
import chalk from "chalk";
|
|
3
3
|
|
|
4
4
|
type HelpOptions = {
|
|
5
5
|
hasDebugger: boolean;
|
|
@@ -41,7 +41,6 @@ export function makeHelp(
|
|
|
41
41
|
const labelWidth = menuItems.reduce(maxColumnWidth(1), 0);
|
|
42
42
|
const separator = `┠${"─".repeat(labelWidth + keyWidth + margin + 1)}`;
|
|
43
43
|
|
|
44
|
-
const dim = chalk.dim;
|
|
45
44
|
const lines = menuItems.map((item) => {
|
|
46
45
|
if (!item) {
|
|
47
46
|
return separator;
|