hereby 1.8.5 → 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/reexec.js +0 -9
- package/dist/cli/utils.js +0 -1
- package/dist/cli.js +9 -1
- package/package.json +7 -6
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",
|
|
@@ -50,14 +51,14 @@
|
|
|
50
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": "^6.
|
|
56
|
-
"@typescript-eslint/parser": "^6.
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
57
|
+
"@typescript-eslint/parser": "^6.4.1",
|
|
57
58
|
"ava": "~5.0.1",
|
|
58
59
|
"c8": "^8.0.1",
|
|
59
60
|
"dprint": "^0.40.2",
|
|
60
|
-
"eslint": "^8.
|
|
61
|
+
"eslint": "^8.48.0",
|
|
61
62
|
"eslint-plugin-ava": "^14.0.0",
|
|
62
63
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
63
64
|
"eslint-plugin-unicorn": "^48.0.1",
|
|
@@ -65,7 +66,7 @@
|
|
|
65
66
|
"moq.ts": "^10.0.6",
|
|
66
67
|
"rimraf": "^5.0.1",
|
|
67
68
|
"tmp": "^0.2.1",
|
|
68
|
-
"typescript": "^5.
|
|
69
|
+
"typescript": "^5.2.2"
|
|
69
70
|
},
|
|
70
71
|
"overrides": {
|
|
71
72
|
"ava": {
|