File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,11 @@ export async function updateChangelog(version: string): Promise<string> {
146
146
return tempChangelog ;
147
147
}
148
148
149
- export async function packageExtension ( version : string ) {
149
+ export interface PackageExtensionOptions {
150
+ preRelease ?: boolean ;
151
+ }
152
+
153
+ export async function packageExtension ( version : string , options : PackageExtensionOptions = { } ) {
150
154
// Update version in a temporary CHANGELOG
151
155
const changelogPath = await updateChangelog ( version ) ;
152
156
@@ -160,6 +164,7 @@ export async function packageExtension(version: string) {
160
164
[
161
165
"vsce" ,
162
166
"package" ,
167
+ ...( options . preRelease === true ? [ "--pre-release" ] : [ ] ) ,
163
168
"--allow-package-secrets" ,
164
169
"sendgrid" ,
165
170
"--no-update-package-json" ,
Original file line number Diff line number Diff line change @@ -41,5 +41,5 @@ main(async () => {
41
41
" The version in the package.json has probably been incorrectly set to an odd minor version."
42
42
) ;
43
43
}
44
- await packageExtension ( previewVersion ) ;
44
+ await packageExtension ( previewVersion , { preRelease : true } ) ;
45
45
} ) ;
You can’t perform that action at this time.
0 commit comments