wisdom 15.4.1 → 16.0.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/ChangeLog +15 -0
- package/lib/run/run-wisdom.js +17 -3
- package/package.json +7 -6
- package/lib/run/set-path.js +0 -3
package/ChangeLog
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
2025.03.22, v16.0.1
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 166fd5d wisdom: redrun v12.0.0
|
|
5
|
+
|
|
6
|
+
2025.03.22, v16.0.0
|
|
7
|
+
|
|
8
|
+
feature:
|
|
9
|
+
- 2a142f7 wisdom: drop support of node < 20
|
|
10
|
+
- 64c9258 wisdom: eslint-plugin-putout v26.0.2
|
|
11
|
+
- 1aa1af3 wisdom: putout v39.0.4
|
|
12
|
+
- 41e0f35 wisdom: madrun v11.0.0
|
|
13
|
+
- bf8690e wisdom: redrun v11.1.0
|
|
14
|
+
- bbfb759 wisdom: search directory node_modules
|
|
15
|
+
|
|
1
16
|
2025.03.13, v15.4.1
|
|
2
17
|
|
|
3
18
|
fix:
|
package/lib/run/run-wisdom.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import {execSync} from 'node:child_process';
|
|
2
2
|
import process from 'node:process';
|
|
3
|
+
import {join} from 'node:path';
|
|
4
|
+
import {statSync} from 'node:fs';
|
|
3
5
|
import redrun from 'redrun';
|
|
4
6
|
import envir from 'envir';
|
|
7
|
+
import parentDirectories from 'parent-directories';
|
|
8
|
+
import tryCatch from 'try-catch';
|
|
5
9
|
import getEnv from '../get-env.js';
|
|
6
|
-
import {setPath} from './set-path.js';
|
|
7
10
|
|
|
8
11
|
const {PATH} = process.env;
|
|
9
12
|
const {cwd} = process;
|
|
@@ -17,10 +20,9 @@ export default async (name, type, version, info, emitter) => {
|
|
|
17
20
|
|
|
18
21
|
const env = {
|
|
19
22
|
...process.env,
|
|
20
|
-
...envir(PATH, cwd(), info),
|
|
21
23
|
...getEnv(version),
|
|
22
|
-
PATH: setPath(PATH),
|
|
23
24
|
npm_package_version: info.version,
|
|
25
|
+
...envir(PATH, nodeModulesDir(cwd()), info),
|
|
24
26
|
};
|
|
25
27
|
|
|
26
28
|
const stdio = [
|
|
@@ -35,3 +37,15 @@ export default async (name, type, version, info, emitter) => {
|
|
|
35
37
|
stdio,
|
|
36
38
|
});
|
|
37
39
|
};
|
|
40
|
+
|
|
41
|
+
function nodeModulesDir(cwd) {
|
|
42
|
+
for (const dir of parentDirectories(cwd)) {
|
|
43
|
+
const nodeModulesPath = join(dir, 'node_modules');
|
|
44
|
+
const [error] = tryCatch(statSync, nodeModulesPath);
|
|
45
|
+
|
|
46
|
+
if (!error)
|
|
47
|
+
return dir;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return cwd;
|
|
51
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wisdom",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.1",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
5
|
"description": "configurable publish releases to github and npm",
|
|
6
6
|
"homepage": "http://github.com/coderaiser/wisdom",
|
|
@@ -41,10 +41,11 @@
|
|
|
41
41
|
"grizzly": "^6.0.0",
|
|
42
42
|
"jessy": "^4.1.0",
|
|
43
43
|
"minor": "^1.2.0",
|
|
44
|
+
"parent-directories": "^3.0.0",
|
|
44
45
|
"prepend": "^1.0.1",
|
|
45
46
|
"read-package-up": "^11.0.0",
|
|
46
47
|
"readjson": "^2.2.2",
|
|
47
|
-
"redrun": "^
|
|
48
|
+
"redrun": "^12.0.0",
|
|
48
49
|
"rendy": "^4.1.3",
|
|
49
50
|
"try-catch": "^3.0.0",
|
|
50
51
|
"try-to-catch": "^3.0.0",
|
|
@@ -52,17 +53,17 @@
|
|
|
52
53
|
},
|
|
53
54
|
"license": "MIT",
|
|
54
55
|
"engines": {
|
|
55
|
-
"node": ">=
|
|
56
|
+
"node": ">=20"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
59
|
"c8": "^10.1.2",
|
|
59
60
|
"escover": "^4.1.0",
|
|
60
61
|
"eslint": "^9.3.0",
|
|
61
|
-
"eslint-plugin-putout": "^
|
|
62
|
-
"madrun": "^
|
|
62
|
+
"eslint-plugin-putout": "^26.0.2",
|
|
63
|
+
"madrun": "^11.0.0",
|
|
63
64
|
"mock-import": "^4.0.3",
|
|
64
65
|
"montag": "^1.2.1",
|
|
65
|
-
"putout": "^
|
|
66
|
+
"putout": "^39.0.4",
|
|
66
67
|
"supertape": "^10.0.0"
|
|
67
68
|
}
|
|
68
69
|
}
|
package/lib/run/set-path.js
DELETED