textrun-shell 0.2.0 → 0.2.1
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.
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { PathMapper } from "./path-mapper.js";
|
|
2
2
|
/** Configuration represents the configuration options for the textrun-shell library. */
|
|
3
3
|
export class Configuration {
|
|
4
|
-
constructor(file) {
|
|
5
|
-
this.file = file;
|
|
6
|
-
}
|
|
7
4
|
static default() {
|
|
8
5
|
return new Configuration({
|
|
9
6
|
globals: {},
|
|
@@ -20,6 +17,9 @@ export class Configuration {
|
|
|
20
17
|
return Configuration.default();
|
|
21
18
|
}
|
|
22
19
|
}
|
|
20
|
+
constructor(file) {
|
|
21
|
+
this.file = file;
|
|
22
|
+
}
|
|
23
23
|
/** provides the PathMapper instance to use */
|
|
24
24
|
pathMapper() {
|
|
25
25
|
return new PathMapper(this.file.globals);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** CurrentServer provides global access to the currently running server process. */
|
|
2
2
|
export class CurrentServer {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.process = null;
|
|
5
|
-
}
|
|
6
3
|
static instance() {
|
|
7
4
|
return instance;
|
|
8
5
|
}
|
|
6
|
+
constructor() {
|
|
7
|
+
this.process = null;
|
|
8
|
+
}
|
|
9
9
|
hasProcess() {
|
|
10
10
|
return this.process != null;
|
|
11
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "textrun-shell",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -12,26 +12,26 @@
|
|
|
12
12
|
"clean": "rm -rf dist",
|
|
13
13
|
"cuke": "cucumber-js --format=progress",
|
|
14
14
|
"doc": "text-run static --format=summary && text-run dynamic --format=progress",
|
|
15
|
-
"fix": "eslint
|
|
16
|
-
"lint": "prettier -l . && eslint
|
|
15
|
+
"fix": "eslint --fix --ignore-pattern=dist/ . && prettier --write .",
|
|
16
|
+
"lint": "prettier -l . && eslint --ignore-pattern=dist/ . && depcheck --config=../.depcheckrc",
|
|
17
17
|
"unit": "env NODE_NO_WARNINGS=1 mocha --reporter=dot 'src/**/*.test.ts'"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"assert-no-diff": "3.0.6",
|
|
21
|
-
"colorette": "2.0.
|
|
21
|
+
"colorette": "2.0.20",
|
|
22
22
|
"end-child-processes": "1.0.3",
|
|
23
23
|
"observable-process": "8.0.0-pre4",
|
|
24
|
-
"strip-ansi": "7.0
|
|
25
|
-
"text-runner-core": "6.0.
|
|
26
|
-
"textrun-extension": "0.2.
|
|
24
|
+
"strip-ansi": "7.1.0",
|
|
25
|
+
"text-runner-core": "6.0.1",
|
|
26
|
+
"textrun-extension": "0.2.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"shared-cucumber-steps": "*",
|
|
30
|
-
"text-runner": "6.0.
|
|
31
|
-
"textrun-action": "0.2.
|
|
32
|
-
"textrun-extension": "0.2.
|
|
33
|
-
"textrun-workspace": "0.2.
|
|
34
|
-
"
|
|
30
|
+
"text-runner": "6.0.1",
|
|
31
|
+
"textrun-action": "0.2.1",
|
|
32
|
+
"textrun-extension": "0.2.1",
|
|
33
|
+
"textrun-workspace": "0.2.1",
|
|
34
|
+
"tsx": "4.19.3"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "e479ff08fba71c7b2f6d1e3e14001b7818a38e12"
|
|
37
37
|
}
|