semantic-release-vsce 6.0.11 → 6.0.13
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/utilities.js +3 -5
- package/lib/verify-target.js +0 -7
- package/lib/verify-vsce-auth.js +1 -1
- package/package.json +4 -4
package/lib/utilities.js
CHANGED
|
@@ -7,7 +7,7 @@ function environmentToBoolean(name) {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export function isOvsxPublishEnabled() {
|
|
10
|
-
return
|
|
10
|
+
return !!process.env.OVSX_PAT;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export function isAzureCredentialEnabled() {
|
|
@@ -15,11 +15,9 @@ export function isAzureCredentialEnabled() {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export function isVscePublishEnabled() {
|
|
18
|
-
return
|
|
18
|
+
return !!process.env.VSCE_PAT || isAzureCredentialEnabled();
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export function isTargetEnabled() {
|
|
22
|
-
return
|
|
23
|
-
'VSCE_TARGET' in process.env && process.env.VSCE_TARGET !== 'universal'
|
|
24
|
-
);
|
|
22
|
+
return !!process.env.VSCE_TARGET && process.env.VSCE_TARGET !== 'universal';
|
|
25
23
|
}
|
package/lib/verify-target.js
CHANGED
|
@@ -9,13 +9,6 @@ export async function verifyTarget() {
|
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
if (!process.env.VSCE_TARGET) {
|
|
13
|
-
throw new SemanticReleaseError(
|
|
14
|
-
'Empty vsce target specified.',
|
|
15
|
-
'EINVALIDVSCETARGET',
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
12
|
if (process.env.VSCE_TARGET !== 'universal') {
|
|
20
13
|
const vscePackage = await import('@vscode/vsce/out/package.js');
|
|
21
14
|
const targets = vscePackage.Targets;
|
package/lib/verify-vsce-auth.js
CHANGED
|
@@ -6,7 +6,7 @@ import process from 'node:process';
|
|
|
6
6
|
import { isAzureCredentialEnabled } from './utilities.js';
|
|
7
7
|
|
|
8
8
|
export async function verifyVsceAuth(logger, cwd) {
|
|
9
|
-
const pat =
|
|
9
|
+
const pat = process.env.VSCE_PAT;
|
|
10
10
|
const azureCredential = isAzureCredentialEnabled();
|
|
11
11
|
|
|
12
12
|
if (!pat && !azureCredential) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semantic-release-vsce",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.13",
|
|
4
4
|
"description": "semantic-release plugin to package and publish VS Code extensions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"volta": {
|
|
50
|
-
"node": "22.
|
|
51
|
-
"npm": "11.
|
|
50
|
+
"node": "22.21.0",
|
|
51
|
+
"npm": "11.6.2"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@semantic-release/error": "^4.0.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"c8": "^10.1.3",
|
|
67
67
|
"conventional-changelog-conventionalcommits": "^9.0.0",
|
|
68
68
|
"eslint": "^9.12.0",
|
|
69
|
-
"eslint-plugin-unicorn": "^
|
|
69
|
+
"eslint-plugin-unicorn": "^61.0.0",
|
|
70
70
|
"esmock": "^2.6.9",
|
|
71
71
|
"husky": "^9.0.11",
|
|
72
72
|
"installed-check": "^9.0.0",
|