Skip to content

Commit 9498e21

Browse files
greenkeeper[bot]pvdlg
authored andcommitted
fix(package): update execa to version 2.0.0
1 parent a060b91 commit 9498e21

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/get-release-info.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = async (
66
{cwd, env: {DEFAULT_NPM_REGISTRY = 'https://registry.npmjs.org/', ...env}},
77
registry
88
) => {
9-
const distTag = tag || (await execa.stdout('npm', ['config', 'get', 'tag'], {cwd, env})) || 'latest';
9+
const distTag = tag || (await execa('npm', ['config', 'get', 'tag'], {cwd, env})).stdout || 'latest';
1010

1111
return {
1212
name: `npm package (@${distTag} dist-tag)`,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"dependencies": {
2727
"@semantic-release/error": "^2.2.0",
2828
"aggregate-error": "^3.0.0",
29-
"execa": "^1.0.0",
29+
"execa": "^2.0.0",
3030
"fs-extra": "^8.0.0",
3131
"lodash": "^4.17.4",
3232
"nerf-dart": "^1.0.0",

test/integration.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ test('Publish the package', async t => {
257257
t.deepEqual(result, {name: 'npm package (@latest dist-tag)', url: undefined});
258258
t.is((await readJson(path.resolve(cwd, 'package.json'))).version, '1.0.0');
259259
t.false(await pathExists(path.resolve(cwd, `${pkg.name}-1.0.0.tgz`)));
260-
t.is(await execa.stdout('npm', ['view', pkg.name, 'version'], {cwd, env: testEnv}), '1.0.0');
260+
t.is((await execa('npm', ['view', pkg.name, 'version'], {cwd, env: testEnv})).stdout, '1.0.0');
261261
});
262262

263263
test('Publish the package on a dist-tag', async t => {
@@ -282,7 +282,7 @@ test('Publish the package on a dist-tag', async t => {
282282
t.deepEqual(result, {name: 'npm package (@next dist-tag)', url: 'https://www.npmjs.com/package/publish-tag'});
283283
t.is((await readJson(path.resolve(cwd, 'package.json'))).version, '1.0.0');
284284
t.false(await pathExists(path.resolve(cwd, `${pkg.name}-1.0.0.tgz`)));
285-
t.is(await execa.stdout('npm', ['view', pkg.name, 'version'], {cwd, env: testEnv}), '1.0.0');
285+
t.is((await execa('npm', ['view', pkg.name, 'version'], {cwd, env: testEnv})).stdout, '1.0.0');
286286
});
287287

288288
test('Publish the package from a sub-directory', async t => {
@@ -307,7 +307,7 @@ test('Publish the package from a sub-directory', async t => {
307307
t.deepEqual(result, {name: 'npm package (@latest dist-tag)', url: undefined});
308308
t.is((await readJson(path.resolve(cwd, 'dist/package.json'))).version, '1.0.0');
309309
t.false(await pathExists(path.resolve(cwd, `${pkg.name}-1.0.0.tgz`)));
310-
t.is(await execa.stdout('npm', ['view', pkg.name, 'version'], {cwd, env: testEnv}), '1.0.0');
310+
t.is((await execa('npm', ['view', pkg.name, 'version'], {cwd, env: testEnv})).stdout, '1.0.0');
311311
});
312312

313313
test('Create the package and skip publish ("npmPublish" is false)', async t => {

0 commit comments

Comments
 (0)