Skip to content

Commit

Permalink
fix(empty package): when generating an empty rewritten-package, add t…
Browse files Browse the repository at this point in the history
…he package info so it's considered v2 addon
  • Loading branch information
BlueCutOfficial committed Jul 3, 2024
1 parent c1c13d6 commit 14fdcb0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/compat/src/empty-package-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ export default class extends Plugin {
writeJSONSync(join(this.outputPath, 'package.json'), {
name: this.originalPackage.name,
version: this.originalPackage.version,
keywords: ['ember-addon'],
'ember-addon': {
version: 2,
type: 'addon',
'auto-upgraded': true,
},
'//': 'This empty package was created by embroider. See https://github.com/embroider-build/embroider/blob/main/docs/empty-package-output.md',
});
}
Expand Down

0 comments on commit 14fdcb0

Please sign in to comment.