semantic-release-vsce 6.0.10 → 6.0.11
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/lib/prepare.js +6 -1
- package/lib/publish.js +12 -2
- package/lib/verify-ovsx-auth.js +5 -1
- package/lib/verify-vsce-auth.js +5 -1
- package/package.json +1 -1
package/lib/prepare.js
CHANGED
|
@@ -44,7 +44,12 @@ export async function prepare(version, packageVsix, logger, cwd) {
|
|
|
44
44
|
options.push('--target', process.env.VSCE_TARGET);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
await execa('vsce', options, {
|
|
47
|
+
await execa('vsce', options, {
|
|
48
|
+
stdio: 'inherit',
|
|
49
|
+
preferLocal: true,
|
|
50
|
+
localDir: import.meta.dirname,
|
|
51
|
+
cwd,
|
|
52
|
+
});
|
|
48
53
|
|
|
49
54
|
return packagePath;
|
|
50
55
|
}
|
package/lib/publish.js
CHANGED
|
@@ -43,7 +43,12 @@ export async function publish(version, packagePath, logger, cwd) {
|
|
|
43
43
|
if (isVscePublishEnabled()) {
|
|
44
44
|
logger.log(message + ' to Visual Studio Marketplace');
|
|
45
45
|
|
|
46
|
-
await execa('vsce', options, {
|
|
46
|
+
await execa('vsce', options, {
|
|
47
|
+
stdio: 'inherit',
|
|
48
|
+
preferLocal: true,
|
|
49
|
+
localDir: import.meta.dirname,
|
|
50
|
+
cwd,
|
|
51
|
+
});
|
|
47
52
|
const vsceUrl = `https://marketplace.visualstudio.com/items?itemName=${publisher}.${name}`;
|
|
48
53
|
|
|
49
54
|
logger.log(`The new version is available at ${vsceUrl}.`);
|
|
@@ -57,7 +62,12 @@ export async function publish(version, packagePath, logger, cwd) {
|
|
|
57
62
|
logger.log(message + 'to Open VSX Registry');
|
|
58
63
|
|
|
59
64
|
// When publishing to OpenVSX, packagePath will be always set
|
|
60
|
-
await execa('ovsx', options, {
|
|
65
|
+
await execa('ovsx', options, {
|
|
66
|
+
stdio: 'inherit',
|
|
67
|
+
preferLocal: true,
|
|
68
|
+
localDir: import.meta.dirname,
|
|
69
|
+
cwd,
|
|
70
|
+
});
|
|
61
71
|
const ovsxUrl = `https://open-vsx.org/extension/${publisher}/${name}/${version}`;
|
|
62
72
|
|
|
63
73
|
logger.log(`The new ovsx version is available at ${ovsxUrl}`);
|
package/lib/verify-ovsx-auth.js
CHANGED
|
@@ -15,7 +15,11 @@ export async function verifyOvsxAuth(logger, cwd) {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
try {
|
|
18
|
-
await execa('ovsx', ['verify-pat'], {
|
|
18
|
+
await execa('ovsx', ['verify-pat'], {
|
|
19
|
+
preferLocal: true,
|
|
20
|
+
localDir: import.meta.dirname,
|
|
21
|
+
cwd,
|
|
22
|
+
});
|
|
19
23
|
} catch (error) {
|
|
20
24
|
throw new SemanticReleaseError(
|
|
21
25
|
`Invalid ovsx personal access token. Additional information:\n\n${error}`,
|
package/lib/verify-vsce-auth.js
CHANGED
|
@@ -29,7 +29,11 @@ export async function verifyVsceAuth(logger, cwd) {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
try {
|
|
32
|
-
await execa('vsce', vsceArguments, {
|
|
32
|
+
await execa('vsce', vsceArguments, {
|
|
33
|
+
preferLocal: true,
|
|
34
|
+
localDir: import.meta.dirname,
|
|
35
|
+
cwd,
|
|
36
|
+
});
|
|
33
37
|
} catch (error) {
|
|
34
38
|
throw new SemanticReleaseError(
|
|
35
39
|
`Invalid vsce personal access token or azure credential. Additional information:\n\n${error}`,
|