Skip to content

Commit

Permalink
fix: add missing name and version fields to .output/package.json (u…
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDutchCoder authored and WinterYukky committed Nov 1, 2022
1 parent 755dcf0 commit e994398
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rollup/plugins/externals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ export function externals (opts: NodeExternalsOptions): Plugin {

// Write an informative package.json
await fsp.writeFile(resolve(opts.outDir, 'package.json'), JSON.stringify({
name: 'nitro-output',
version: '0.0.0',
private: true,
bundledDependencies: Array.from(tracedPackages.keys())
}, null, 2), 'utf8')
Expand Down

0 comments on commit e994398

Please sign in to comment.