-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge main to feature/debugconfig #1158
- Loading branch information
Showing
15 changed files
with
402 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/*! | ||
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
// | ||
// Creates an artifact that can be given to users for testing alpha builds: | ||
// | ||
// aws-toolkit-vscode-1.99.0-SNAPSHOT.vsix | ||
// | ||
// The script works like this: | ||
// 1. temporarily change `version` in package.json | ||
// 2. invoke `vsce package` | ||
// 3. restore the original package.json | ||
// | ||
|
||
import * as child_process from 'child_process' | ||
import * as fs from 'fs-extra' | ||
|
||
const packageJsonFile = './package.json' | ||
// Create a backup so that we can restore the original later. | ||
fs.copyFileSync(packageJsonFile, `${packageJsonFile}.bk`) | ||
|
||
const packageJson = JSON.parse(fs.readFileSync('./package.json', { encoding: 'UTF-8' }).toString()) | ||
packageJson.version = '1.99.0-SNAPSHOT' | ||
|
||
fs.writeFileSync(packageJsonFile, JSON.stringify(packageJson, undefined, ' ')) | ||
|
||
child_process.execSync(`vsce package`) | ||
|
||
// Restore the original package.json. | ||
fs.copyFileSync(`${packageJsonFile}.bk`, packageJsonFile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.