textrun-shell 0.1.1 → 0.1.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.
|
@@ -27,7 +27,7 @@ async function commandWithInput(action) {
|
|
|
27
27
|
input = getInput(action.region);
|
|
28
28
|
}
|
|
29
29
|
// this needs to be global because it is used in the "verify-run-console-output" step
|
|
30
|
-
const processor = observableProcess.start(textrun_extension_1.callArgs(commandsToRun, process.platform), {
|
|
30
|
+
const processor = observableProcess.start((0, textrun_extension_1.callArgs)(commandsToRun, process.platform), {
|
|
31
31
|
cwd: action.configuration.workspace.platformified(),
|
|
32
32
|
});
|
|
33
33
|
for (const inputLine of input) {
|
package/dist/actions/command.js
CHANGED
|
@@ -9,7 +9,7 @@ const current_command_1 = require("../helpers/current-command");
|
|
|
9
9
|
const trim_dollar_1 = require("../helpers/trim-dollar");
|
|
10
10
|
/** Runs the given commands synchronously on the console. */
|
|
11
11
|
async function command(action) {
|
|
12
|
-
const config = configuration_1.Configuration.load(action.configuration.sourceDir.joinStr("textrun-shell.js"));
|
|
12
|
+
const config = await configuration_1.Configuration.load(action.configuration.sourceDir.joinStr("textrun-shell.js"));
|
|
13
13
|
const commandsToRun = action.region
|
|
14
14
|
.text()
|
|
15
15
|
.split("\n")
|
|
@@ -13,7 +13,7 @@ async function stopServer(action) {
|
|
|
13
13
|
throw new Error("No running process found");
|
|
14
14
|
}
|
|
15
15
|
await current_server_1.CurrentServer.instance().kill();
|
|
16
|
-
await end_child_processes_1.endChildProcesses();
|
|
16
|
+
await (0, end_child_processes_1.endChildProcesses)();
|
|
17
17
|
current_server_1.CurrentServer.instance().reset();
|
|
18
18
|
}
|
|
19
19
|
exports.stopServer = stopServer;
|
|
@@ -13,10 +13,9 @@ class Configuration {
|
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
/** Provides the configuration stored in the file with the given path. */
|
|
16
|
-
static load(filePath) {
|
|
16
|
+
static async load(filePath) {
|
|
17
17
|
try {
|
|
18
|
-
|
|
19
|
-
const content = require(filePath);
|
|
18
|
+
const content = await Promise.resolve().then(() => require(filePath));
|
|
20
19
|
return new Configuration(content);
|
|
21
20
|
}
|
|
22
21
|
catch (e) {
|
package/package.json
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "textrun-shell",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"main": "dist/index.js",
|
|
3
|
+
"version": "0.1.2",
|
|
5
4
|
"license": "ISC",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist/**/*.js"
|
|
8
8
|
],
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"assert-no-diff": "3.0.6",
|
|
11
|
+
"colorette": "2.0.19",
|
|
11
12
|
"end-child-processes": "1.0.3",
|
|
12
13
|
"observable-process": "8.0.0-pre4",
|
|
13
14
|
"strip-ansi": "6.0.0",
|
|
14
|
-
"text-runner-core": "5.0.
|
|
15
|
-
"textrun-extension": "0.1.
|
|
15
|
+
"text-runner-core": "^5.0.2",
|
|
16
|
+
"textrun-extension": "^0.1.2"
|
|
16
17
|
},
|
|
17
18
|
"devDependencies": {
|
|
18
|
-
"colorette": "1.2.2",
|
|
19
|
-
"cucumber": "6.0.5",
|
|
20
|
-
"mocha": "9.2.0",
|
|
21
19
|
"shared-cucumber-steps": "0.0.0",
|
|
22
|
-
"text-runner": "5.0.
|
|
23
|
-
"textrun-action": "0.1.
|
|
24
|
-
"textrun-extension": "0.1.
|
|
25
|
-
"textrun-workspace": "0.1.
|
|
20
|
+
"text-runner": "^5.0.2",
|
|
21
|
+
"textrun-action": "^0.1.2",
|
|
22
|
+
"textrun-extension": "0.1.2",
|
|
23
|
+
"textrun-workspace": "^0.1.2"
|
|
26
24
|
},
|
|
27
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "1dca29620ef3189c64a62d706ded97c9b99deda3"
|
|
28
26
|
}
|