Skip to content

Commit

Permalink
script moves packaged .vsix to root
Browse files Browse the repository at this point in the history
  • Loading branch information
hayemaxi committed Feb 5, 2024
1 parent 897087c commit e3b0d57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/toolkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "aws-toolkit-vscode",
"displayName": "AWS Toolkit - Amazon Q, CodeWhisperer, and more",
"description": "Including Amazon Q, CodeWhisperer, CodeCatalyst, Application Composer, and support for Lambda, S3, CloudWatch Logs, CloudFormation, and many other services",
"version": "2.9.0-SNAPSHOT",
"version": "2.9.0-897087c",
"extensionKind": [
"workspace"
],
Expand Down
3 changes: 3 additions & 0 deletions packages/toolkit/scripts/build/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ function main() {
child_process.execSync(`vsce package`, { stdio: 'inherit' })
const packageJson = JSON.parse(fs.readFileSync(packageJsonFile, { encoding: 'utf-8' }))
console.log(`VSIX Version: ${packageJson.version}`)

const vsixName = `aws-toolkit-vscode-${packageJson.version}.vsix`
fs.moveSync(vsixName, `../../${vsixName}`)
} catch (e) {
console.log(e)
throw Error('package.ts: failed')
Expand Down

0 comments on commit e3b0d57

Please sign in to comment.