Skip to content

Commit

Permalink
Fix splitting of targets
Browse files Browse the repository at this point in the history
  • Loading branch information
alexravenna committed Sep 15, 2023
1 parent 7bef6b2 commit 89fee82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/createPackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function _convertToVSCECreateVSIXOptions(options: ActionOptions, targetVSIXPath:
// Shallow copy of options
const { baseContentUrl, baseImagesUrl, yarn: useYarn, packagePath: cwd, preRelease, dependencies } = { ...options };
const result: IPackageOptions = { baseContentUrl, useYarn, baseImagesUrl, cwd, packagePath: targetVSIXPath, preRelease, dependencies };

return result;
}

Expand Down
3 changes: 2 additions & 1 deletion src/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ async function publish(ovsxOptions: ActionOptions): Promise<void> {
let options: PublishOptions;

if (ovsxOptions.target) {
const targets = ovsxOptions.target.split(ovsxOptions.target);
const targets = ovsxOptions.target.split(' ');

options = { ...ovsxOptions, targets, packagePath: [ovsxOptions.packagePath] };
} else {
options = { ...ovsxOptions, packagePath: [ovsxOptions.packagePath] };
Expand Down

0 comments on commit 89fee82

Please sign in to comment.