Skip to content

Commit 3024d0f

Browse files
authoredAug 19, 2022
fix: clarify simultaneous use of packagePath and target in vsce publish (#765)
Fixes: #764
1 parent 0940626 commit 3024d0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/publish.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export async function publish(options: IPublishOptions = {}): Promise<any> {
4040
if (options.version) {
4141
throw new Error(`Both options not supported simultaneously: 'packagePath' and 'version'.`);
4242
} else if (options.targets) {
43-
throw new Error(`Both options not supported simultaneously: 'packagePath' and 'target'.`);
43+
throw new Error(
44+
`Both options not supported simultaneously: 'packagePath' and 'target'. Use 'vsce package --target <target>' to first create a platform specific package, then use 'vsce publish --packagePath <path>' to publish it.`
45+
);
4446
}
4547

4648
for (const packagePath of options.packagePath) {

0 commit comments

Comments
 (0)
Please sign in to comment.