wisdom 15.2.2 → 15.4.0
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 +10 -0
- package/lib/publish.js +3 -3
- package/lib/{run-wisdom.js → run/run-wisdom.js} +2 -1
- package/lib/run/set-path.js +3 -0
- package/lib/runner.js +1 -1
- package/package.json +1 -1
package/ChangeLog
CHANGED
package/lib/publish.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {execSync} from 'node:child_process';
|
|
2
2
|
import getEnv from './get-env.js';
|
|
3
3
|
|
|
4
|
-
export const publish = ({cwd, version}) => {
|
|
5
|
-
execute(`npm publish`, version, cwd);
|
|
4
|
+
export const publish = ({cwd, version, execute = _execute}) => {
|
|
5
|
+
execute(`npm publish --tag latest`, version, cwd);
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
function
|
|
8
|
+
function _execute(cmd, version, cwd) {
|
|
9
9
|
const stdio = [
|
|
10
10
|
0,
|
|
11
11
|
1,
|
|
@@ -3,6 +3,7 @@ import process from 'node:process';
|
|
|
3
3
|
import redrun from 'redrun';
|
|
4
4
|
import envir from 'envir';
|
|
5
5
|
import getEnv from './get-env.js';
|
|
6
|
+
import {setPath} from './set-path.js';
|
|
6
7
|
|
|
7
8
|
const {PATH} = process.env;
|
|
8
9
|
const {cwd} = process;
|
|
@@ -18,7 +19,7 @@ export default async (name, type, version, info, emitter) => {
|
|
|
18
19
|
...process.env,
|
|
19
20
|
...envir(PATH, cwd(), info),
|
|
20
21
|
...getEnv(version),
|
|
21
|
-
PATH,
|
|
22
|
+
PATH: setPath(PATH),
|
|
22
23
|
npm_package_version: info.version,
|
|
23
24
|
};
|
|
24
25
|
|
package/lib/runner.js
CHANGED
|
@@ -8,7 +8,7 @@ import versionio from 'version-io';
|
|
|
8
8
|
import changelog from 'changelog-io';
|
|
9
9
|
import getEnv from './get-env.js';
|
|
10
10
|
import {release} from './release.js';
|
|
11
|
-
import runWisdom from './run-wisdom.js';
|
|
11
|
+
import runWisdom from './run/run-wisdom.js';
|
|
12
12
|
import {traverse} from './traverse.js';
|
|
13
13
|
|
|
14
14
|
const prepend = promisify(_prepend);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wisdom",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.4.0",
|
|
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",
|