diff --git a/packages/addon-dev/src/rollup-public-assets.ts b/packages/addon-dev/src/rollup-public-assets.ts index 10aabb5bb..10c6d7655 100644 --- a/packages/addon-dev/src/rollup-public-assets.ts +++ b/packages/addon-dev/src/rollup-public-assets.ts @@ -51,7 +51,7 @@ export default function publicAssets( }); const publicAssets: Record = filenames.reduce( (acc: Record, v): Record => { - const namespace = opts?.namespace ?? join(pkg.name, path); + const namespace = opts?.namespace ?? pkg.name; acc[`./${path}/${v}`] = resolve('/' + join(namespace, v)); return acc; diff --git a/tests/scenarios/v2-addon-dev-test.ts b/tests/scenarios/v2-addon-dev-test.ts index b0928e0bb..52d6ad05b 100644 --- a/tests/scenarios/v2-addon-dev-test.ts +++ b/tests/scenarios/v2-addon-dev-test.ts @@ -393,7 +393,7 @@ export { SingleFileComponent as default }; let expectNoNamespaceFile = expectFilesAt(inDependency(app, 'v2-addon-no-namespace').dir, { qunit: assert }); expectFile('package.json').json('ember-addon.public-assets').deepEquals({ - './public/thing.txt': '/v2-addon/public/thing.txt', + './public/thing.txt': '/v2-addon/thing.txt', }); expectNoNamespaceFile('package.json').json('ember-addon.public-assets').deepEquals({ './public/other.txt': '/other.txt',