From ca4ec8230010d137a13db2e60e1db2b149ecc0ec Mon Sep 17 00:00:00 2001 From: Edward Faulkner Date: Thu, 12 Sep 2024 11:51:37 +0100 Subject: [PATCH] attempting to fix metadata in alpha releases The alpha release CI is publishing with empty renamed-modules. I'm not quite sure why. This will eliminate the possibility that it's a CWD problem. --- rollup.config.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rollup.config.mjs b/rollup.config.mjs index beaa74fcec4..8b215a9680e 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -502,7 +502,11 @@ function pruneEmptyBundles() { function packageMeta() { let renamedModules = Object.fromEntries( glob - .sync('**/*.js', { cwd: 'dist/packages', ignore: ['shared-chunks/**'], nodir: true }) + .sync('**/*.js', { + cwd: new URL('dist/packages', import.meta.url).pathname, + ignore: ['shared-chunks/**'], + nodir: true, + }) .map((name) => { return [name, 'ember-source/' + name]; })