Skip to content

Commit

Permalink
fix: fix crash if there is no package.nls.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Apr 22, 2023
1 parent b3caa0a commit 7d6fa87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollup-vsix-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function plugin (options: Options = defaultOptions): Plugin {

const usedFiles = extractPathsFromExtensionManifest(manifest).filter(file => getVsixPath(file) in files)

const allFiles = ['package.json', 'package.nls.json', ...usedFiles]
const allFiles = ['package.json', 'package.nls.json', ...usedFiles].filter(file => getVsixPath(file) in files)

const vsixFile: Record<string, Buffer> = allFiles.reduce((acc, usedFile) => {
return ({
Expand Down

0 comments on commit 7d6fa87

Please sign in to comment.