From 14fdcb022273b55011bcfdfc025b3ed7ed9588bc Mon Sep 17 00:00:00 2001 From: Marine Dunstetter Date: Wed, 3 Jul 2024 12:16:06 +0200 Subject: [PATCH] fix(empty package): when generating an empty rewritten-package, add the package info so it's considered v2 addon --- packages/compat/src/empty-package-tree.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/compat/src/empty-package-tree.ts b/packages/compat/src/empty-package-tree.ts index aa2ffd46c..b41bb0d2a 100644 --- a/packages/compat/src/empty-package-tree.ts +++ b/packages/compat/src/empty-package-tree.ts @@ -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', }); }