@hubspot/npm-scripts 0.0.5-experimental.2 → 0.0.5-experimental.3
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/package.json +1 -1
- package/src/vscode-release.js +9 -2
package/package.json
CHANGED
package/src/vscode-release.js
CHANGED
|
@@ -32,6 +32,13 @@ function buildHandler({ build, packageName, localVersion, mainBranch, }) {
|
|
|
32
32
|
logger.warn('No git tags found, skipping version check.');
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
+
try {
|
|
36
|
+
await exec('vsce --version');
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
logger.log('Installing @vscode/vsce...');
|
|
40
|
+
await exec('yarn global add @vscode/vsce');
|
|
41
|
+
}
|
|
35
42
|
const newVersion = semver.inc(localVersion, versionIncrement);
|
|
36
43
|
if (!newVersion) {
|
|
37
44
|
logger.error('Error incrementing version.');
|
|
@@ -64,7 +71,7 @@ function buildHandler({ build, packageName, localVersion, mainBranch, }) {
|
|
|
64
71
|
await exec('yarn lint');
|
|
65
72
|
}
|
|
66
73
|
logger.log('\nPackaging pre-release...');
|
|
67
|
-
await exec('
|
|
74
|
+
await exec('mkdir -p releases && vsce package --pre-release -o releases/');
|
|
68
75
|
logger.success('Pre-release package created.');
|
|
69
76
|
logger.log('\nTo test the package locally:');
|
|
70
77
|
logger.log(' 1. Open VS Code');
|
|
@@ -85,7 +92,7 @@ function buildHandler({ build, packageName, localVersion, mainBranch, }) {
|
|
|
85
92
|
await exec(`yarn version --no-git-tag-version --new-version ${newVersion}`);
|
|
86
93
|
logger.success('Version updated in package.json');
|
|
87
94
|
logger.log('\nPackaging regular release...');
|
|
88
|
-
await exec('
|
|
95
|
+
await exec('mkdir -p releases && vsce package -o releases/');
|
|
89
96
|
logger.success('Regular release package created.');
|
|
90
97
|
const confirmRegularRelease = await confirm({
|
|
91
98
|
message: 'Test the regular release .vsix and confirm it works. Ready to proceed?',
|