diff --git a/src/package.ts b/src/package.ts index 3cdf61f5..22578a7e 100644 --- a/src/package.ts +++ b/src/package.ts @@ -2072,7 +2072,7 @@ export async function printAndValidatePackagedFiles(files: IFile[], cwd: string, // Print the files included in the package const printableFileStructure = await util.generateFileStructureTree( - options.packagePath ? path.basename(options.packagePath) : getDefaultPackageName(manifest, options), + await getPackagePath(cwd, manifest, options), files.map(f => ({ // File path relative to the extension root origin: !isInMemoryFile(f) ? f.localPath : util.vsixPathToFilePath(f.path),