hereby 1.8.1 → 1.8.6
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/dist/cli/index.d.ts +5 -0
- package/dist/cli/reexec.js +0 -9
- package/dist/cli/utils.js +0 -1
- package/dist/cli.js +9 -1
- package/package.json +19 -18
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Task } from "../index.js";
|
|
2
|
+
import { type Herebyfile } from "./loadHerebyfile.js";
|
|
3
|
+
import { type D } from "./utils.js";
|
|
4
|
+
export declare function main(d: D): Promise<void>;
|
|
5
|
+
export declare function selectTasks(d: Pick<D, "simplifyPath">, herebyfile: Herebyfile, herebyfilePath: string, taskNames: string[]): Promise<Task[]>;
|
package/dist/cli/reexec.js
CHANGED
|
@@ -15,15 +15,6 @@ export async function reexec(d, herebyfilePath) {
|
|
|
15
15
|
// Rather than trying to fix this by messing around with Node's resolution
|
|
16
16
|
// (which won't work in ESM anyway), instead opt to figure out the location
|
|
17
17
|
// of hereby as imported by the Herebyfile, and then "reexec" it by importing.
|
|
18
|
-
if (d.isPnP) {
|
|
19
|
-
// When we are running within PnP, we can't really figure out what to
|
|
20
|
-
// do. import-meta-resolve doesn't implement this, so we can't do
|
|
21
|
-
// anything until import.meta.resolve is no longer experimental.
|
|
22
|
-
//
|
|
23
|
-
// Just assume that everything is okay; we will error later if there's
|
|
24
|
-
// a mismatch.
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
18
|
const thisCLI = await d.resolve(cliExportName, import.meta.url);
|
|
28
19
|
let otherCLI;
|
|
29
20
|
try {
|
package/dist/cli/utils.js
CHANGED
|
@@ -62,7 +62,6 @@ export async function real() {
|
|
|
62
62
|
const { version } = JSON.parse(packageJson);
|
|
63
63
|
return version;
|
|
64
64
|
},
|
|
65
|
-
isPnP: !!process.versions["pnp"],
|
|
66
65
|
resolve: async (specifier, parent) => {
|
|
67
66
|
const resolve = await importResolve();
|
|
68
67
|
return resolve(specifier, parent);
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { main } from "./cli/index.js";
|
|
2
2
|
import { real } from "./cli/utils.js";
|
|
3
3
|
async function run() {
|
|
4
|
-
|
|
4
|
+
try {
|
|
5
|
+
await main(await real());
|
|
6
|
+
}
|
|
7
|
+
catch (e) {
|
|
8
|
+
// eslint-disable-next-line no-restricted-globals
|
|
9
|
+
console.error(e);
|
|
10
|
+
// eslint-disable-next-line no-restricted-globals
|
|
11
|
+
process.exitCode = 1;
|
|
12
|
+
}
|
|
5
13
|
}
|
|
6
14
|
void run();
|
|
7
15
|
//# sourceMappingURL=cli.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hereby",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.6",
|
|
4
4
|
"description": "A simple task runner",
|
|
5
5
|
"repository": "github:jakebailey/hereby",
|
|
6
6
|
"type": "module",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">= 12.20"
|
|
32
32
|
},
|
|
33
|
+
"preferUnplugged": true,
|
|
33
34
|
"files": [
|
|
34
35
|
"README.md",
|
|
35
36
|
"LICENSE",
|
|
@@ -40,44 +41,41 @@
|
|
|
40
41
|
"dependencies": {
|
|
41
42
|
"command-line-usage": "^6.1.3",
|
|
42
43
|
"fastest-levenshtein": "^1.0.16",
|
|
43
|
-
"import-meta-resolve": "^2.2.
|
|
44
|
+
"import-meta-resolve": "^2.2.2",
|
|
44
45
|
"minimist": "^1.2.8",
|
|
45
46
|
"picocolors": "^1.0.0",
|
|
46
47
|
"pretty-ms": "^8.0.0"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@ava/typescript": "^3.0.1",
|
|
50
|
-
"@tsconfig/node12": "^1.0
|
|
51
|
+
"@tsconfig/node12": "^12.1.0",
|
|
51
52
|
"@types/command-line-usage": "^5.0.2",
|
|
52
53
|
"@types/minimist": "^1.2.2",
|
|
53
|
-
"@types/node": "^14.18.
|
|
54
|
+
"@types/node": "^14.18.56",
|
|
54
55
|
"@types/tmp": "^0.2.3",
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
56
|
-
"@typescript-eslint/parser": "^
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
57
|
+
"@typescript-eslint/parser": "^6.4.1",
|
|
57
58
|
"ava": "~5.0.1",
|
|
58
|
-
"c8": "^
|
|
59
|
-
"dprint": "^0.
|
|
60
|
-
"eslint": "^8.
|
|
59
|
+
"c8": "^8.0.1",
|
|
60
|
+
"dprint": "^0.40.2",
|
|
61
|
+
"eslint": "^8.48.0",
|
|
61
62
|
"eslint-plugin-ava": "^14.0.0",
|
|
62
63
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
63
|
-
"eslint-plugin-unicorn": "^
|
|
64
|
+
"eslint-plugin-unicorn": "^48.0.1",
|
|
64
65
|
"execa": "^6.1.0",
|
|
65
|
-
"moq.ts": "^
|
|
66
|
-
"rimraf": "^
|
|
66
|
+
"moq.ts": "^10.0.6",
|
|
67
|
+
"rimraf": "^5.0.1",
|
|
67
68
|
"tmp": "^0.2.1",
|
|
68
|
-
"typescript": "
|
|
69
|
+
"typescript": "^5.2.2"
|
|
69
70
|
},
|
|
70
71
|
"overrides": {
|
|
71
72
|
"ava": {
|
|
72
73
|
"emittery": "1.0.0"
|
|
73
74
|
}
|
|
74
75
|
},
|
|
75
|
-
"packageManager": "npm@8.
|
|
76
|
-
"volta": {
|
|
77
|
-
"node": "14.20.0",
|
|
78
|
-
"npm": "8.17.0"
|
|
79
|
-
},
|
|
76
|
+
"packageManager": "npm@8.19.4",
|
|
80
77
|
"scripts": {
|
|
78
|
+
"ci": "npm ci",
|
|
81
79
|
"build": "tsc",
|
|
82
80
|
"watch": "tsc --watch",
|
|
83
81
|
"test": "ava",
|
|
@@ -105,6 +103,9 @@
|
|
|
105
103
|
]
|
|
106
104
|
},
|
|
107
105
|
"release-it": {
|
|
106
|
+
"npm": {
|
|
107
|
+
"publish": false
|
|
108
|
+
},
|
|
108
109
|
"git": {
|
|
109
110
|
"commitMessage": "Release v${version}",
|
|
110
111
|
"tagName": "v${version}"
|