diff --git a/files/__addonLocation__/package.json b/files/__addonLocation__/package.json index 4e850d8..b725f4f 100644 --- a/files/__addonLocation__/package.json +++ b/files/__addonLocation__/package.json @@ -36,6 +36,9 @@ "@embroider/addon-shim": "^1.8.7", "decorator-transforms": "^2.0.0" }, + "peerDependencies": { + "ember-source": ">= 4.12.0" + }, "devDependencies": { "@babel/core": "^7.24.4", <% if (typescript) { %>"@babel/plugin-transform-typescript": "^7.24.4"<% } else { %>"@babel/eslint-parser": "^7.24.1"<% } %>, @@ -72,6 +75,7 @@ "@rollup/plugin-babel": "^6.0.4", "babel-plugin-ember-template-compilation": "^2.2.5", "concurrently": "^8.2.2", + "ember-source": "^5.4.0", "ember-template-lint": "^6.0.0",<% if (packageManager === 'npm') { %> "ember-eslint-parser": "^0.4.2", <% } %>"eslint": "^8.56.0", diff --git a/index.js b/index.js index 4297a0e..565b494 100644 --- a/index.js +++ b/index.js @@ -309,7 +309,11 @@ module.exports = { let files = this._super.files.apply(this, arguments); if (options.addonOnly) { - files = files.filter((filename) => filename.includes('__addonLocation__') || filesToCopyFromRootToAddonInAddonOnlyMode.includes(filename)); + files = files.filter( + (filename) => + filename.includes('__addonLocation__') || + filesToCopyFromRootToAddonInAddonOnlyMode.includes(filename), + ); } else { // filter out the addon-specific npmrc, as it // is only applicable during --addon-only @@ -386,4 +390,3 @@ function isYarn(options) { function isNpm(options) { return options.packageManager === 'npm' || options.npm; } -