Skip to content

Commit

Permalink
Merge pull request #20749 from emberjs/fix-metadata-publish
Browse files Browse the repository at this point in the history
Fix metadata publishing
  • Loading branch information
ef4 authored Sep 12, 2024
2 parents f24fc7c + 013733a commit e775073
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@
"@ember/test/index.js": "ember-source/@ember/test/index.js",
"@ember/utils/index.js": "ember-source/@ember/utils/index.js",
"@ember/utils/lib/compare.js": "ember-source/@ember/utils/lib/compare.js",
"@ember/utils/lib/is-equal.js": "ember-source/@ember/utils/lib/is-equal.js",
"@ember/utils/lib/is_blank.js": "ember-source/@ember/utils/lib/is_blank.js",
"@ember/utils/lib/is_empty.js": "ember-source/@ember/utils/lib/is_empty.js",
"@ember/utils/lib/is_none.js": "ember-source/@ember/utils/lib/is_none.js",
"@ember/utils/lib/is_present.js": "ember-source/@ember/utils/lib/is_present.js",
"@ember/utils/lib/is-equal.js": "ember-source/@ember/utils/lib/is-equal.js",
"@ember/utils/lib/type-of.js": "ember-source/@ember/utils/lib/type-of.js",
"@ember/version/index.js": "ember-source/@ember/version/index.js",
"@glimmer/debug/index.js": "ember-source/@glimmer/debug/index.js",
Expand Down
27 changes: 12 additions & 15 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -500,23 +500,20 @@ function pruneEmptyBundles() {
}

function packageMeta() {
let renamedModules = Object.fromEntries(
glob
.sync('**/*.js', {
cwd: new URL('dist/packages', import.meta.url).pathname,
ignore: ['shared-chunks/**'],
nodir: true,
})
.map((name) => {
return [name, 'ember-source/' + name];
})
);
return {
name: 'package-meta',
buildEnd(error) {
if (error) {
return;
}
generateBundle(options, bundles) {
let renamedModules = Object.fromEntries(
Object.keys(bundles)
.filter((name) => !name.startsWith('packages/shared-chunks/'))
.sort()
.map((name) => {
return [
name.replace(/^packages\//, ''),
'ember-source/' + name.replace(/^packages\//, ''),
];
})
);
let pkg = JSON.parse(readFileSync('package.json'));
if (!pkg['ember-addon']) {
pkg['ember-adodn'] = {};
Expand Down

0 comments on commit e775073

Please sign in to comment.