diff --git a/src/publish.ts b/src/publish.ts index adb0f070..110b03f4 100644 --- a/src/publish.ts +++ b/src/publish.ts @@ -40,7 +40,9 @@ export async function publish(options: IPublishOptions = {}): Promise { if (options.version) { throw new Error(`Both options not supported simultaneously: 'packagePath' and 'version'.`); } else if (options.targets) { - throw new Error(`Both options not supported simultaneously: 'packagePath' and 'target'.`); + throw new Error( + `Both options not supported simultaneously: 'packagePath' and 'target'. Use 'vsce package --target ' to first create a platform specific package, then use 'vsce publish --packagePath ' to publish it.` + ); } for (const packagePath of options.packagePath) {