Closed justinmk3 closed 1 week ago
Because of the npm run restorePackageJson step, the --feature separate-sessions arg is not passed to package.ts:
npm run restorePackageJson
--feature separate-sessions
package.ts
npm run copyPackageJson && ts-node ../../scripts/package.ts && npm run restorePackageJson --feature separate-sessions
Thus the feature branch name is not in the toolkit artifact name. For example, the feature/separate-sessions branch artifacts are:
amazon-q-vscode-1.10.0-separate-sessions-g8a563a7.vsix aws-toolkit-vscode-3.11.0-g8a563a7.vsix
Inline the --restore logic into package.ts. This is hacky, but should be temporary after we resolved IDE-12831 so that these hacks are no longer needed.
--restore
https://github.com/justinmk3/aws-toolkit-vscode/releases/tag/pre-smurf
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Problem:
Because of the
npm run restorePackageJson
step, the--feature separate-sessions
arg is not passed topackage.ts
:Thus the feature branch name is not in the toolkit artifact name. For example, the feature/separate-sessions branch artifacts are:
Solution:
Inline the
--restore
logic intopackage.ts
. This is hacky, but should be temporary after we resolved IDE-12831 so that these hacks are no longer needed.Example
https://github.com/justinmk3/aws-toolkit-vscode/releases/tag/pre-smurf
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.