textrun-npm 0.7.0 → 0.7.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.
package/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
SPDX-License-Identifier: ISC
|
|
2
|
+
|
|
3
|
+
Copyright 2026 Kevin Goslar
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software
|
|
6
|
+
for any purpose with or without fee is hereby granted,
|
|
7
|
+
provided that the above copyright notice
|
|
8
|
+
and this permission notice appear in all copies.
|
|
9
|
+
|
|
10
|
+
THE SOFTWARE IS PROVIDED “AS IS”
|
|
11
|
+
AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
12
|
+
WITH REGARD TO THIS SOFTWARE
|
|
13
|
+
INCLUDING ALL IMPLIED WARRANTIES
|
|
14
|
+
OF MERCHANTABILITY AND FITNESS.
|
|
15
|
+
|
|
16
|
+
IN NO EVENT SHALL THE AUTHOR BE LIABLE
|
|
17
|
+
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
|
|
18
|
+
OR ANY DAMAGES WHATSOEVER
|
|
19
|
+
RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
20
|
+
WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
22
|
+
ARISING OUT OF OR IN CONNECTION WITH
|
|
23
|
+
THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
package/dist/actions/install.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { promises as fs } from "fs";
|
|
1
|
+
import { promises as fs } from "node:fs";
|
|
2
2
|
import { styleText } from "node:util";
|
|
3
3
|
import { trimDollar } from "../helpers/trim-dollar.js";
|
|
4
4
|
export async function install(action) {
|
|
@@ -13,7 +13,9 @@ export async function install(action) {
|
|
|
13
13
|
const pkgText = await fs.readFile(pkgJsonPath, "utf-8");
|
|
14
14
|
const pkg = JSON.parse(pkgText);
|
|
15
15
|
if (missesPackageName(installText, pkg.name)) {
|
|
16
|
-
|
|
16
|
+
const text = styleText("cyan", installText);
|
|
17
|
+
const name = styleText("cyan", pkg.name);
|
|
18
|
+
throw new Error(`installation instructions ${text} don't contain expected npm package name ${name}`);
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
function missesPackageName(installText, packageName) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { promises as fsp } from "fs";
|
|
1
|
+
import { promises as fsp } from "node:fs";
|
|
2
|
+
import * as path from "node:path";
|
|
2
3
|
import { styleText } from "node:util";
|
|
3
|
-
import * as path from "path";
|
|
4
4
|
import * as textRunner from "text-runner-engine";
|
|
5
5
|
import { trimDollar } from "../helpers/trim-dollar.js";
|
|
6
6
|
export async function installedExecutable(action) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "textrun-npm",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -11,21 +11,21 @@
|
|
|
11
11
|
"build": "tsc -p tsconfig-build.json",
|
|
12
12
|
"cuke": "yarn run build && cucumber-js --format=progress",
|
|
13
13
|
"doc": "yarn run build && text-runner --format=dot",
|
|
14
|
-
"fix": "
|
|
15
|
-
"lint": "dprint check && sort-package-json --check --quiet &&
|
|
14
|
+
"fix": "biome check --write --unsafe && dprint fmt && sort-package-json --quiet && ../tools/rta ghokin fmt replace features",
|
|
15
|
+
"lint": "biome check --error-on-warnings && dprint check && sort-package-json --check --quiet && depcheck --config=../.depcheckrc",
|
|
16
16
|
"reset": "rm -rf dist && yarn run build",
|
|
17
17
|
"unit": "node --test --import tsx 'src/**/*.test.ts'"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"text-runner-engine": "7.5.
|
|
20
|
+
"text-runner-engine": "7.5.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"shared-cucumber-steps": "*",
|
|
24
|
-
"text-runner": "7.5.
|
|
25
|
-
"textrun-action": "0.7.
|
|
26
|
-
"textrun-extension": "0.7.
|
|
27
|
-
"textrun-workspace": "0.7.
|
|
24
|
+
"text-runner": "7.5.1",
|
|
25
|
+
"textrun-action": "0.7.1",
|
|
26
|
+
"textrun-extension": "0.7.1",
|
|
27
|
+
"textrun-workspace": "0.7.1",
|
|
28
28
|
"tsx": "4.21.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "ffa7b993386ef88d6f199373e97d9c39e3ea3ac4"
|
|
31
31
|
}
|