Skip to content

Commit

Permalink
Merge pull request #20850 from emberjs/fix-source-map-publish
Browse files Browse the repository at this point in the history
Fix source maps in published packages
  • Loading branch information
ef4 authored Feb 22, 2025
2 parents 33ff324 + 7b0a083 commit 2e55d8f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
9 changes: 7 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,19 @@ module.exports = {

let templateCompiler = new Funnel(tree, {
destDir: 'ember',
include: ['ember-template-compiler.js', 'ember-template-compiler.map'],
include: ['ember-template-compiler.js', 'ember-template-compiler.js.map'],
});

let which = isProduction ? 'prod' : 'debug';

let ember = new Funnel(tree, {
destDir: 'ember',
include: [`ember.${which}.js`, `ember.${which}.map`, 'ember-testing.js', 'ember-testing.map'],
include: [
`ember.${which}.js`,
`ember.${which}.js.map`,
'ember-testing.js',
'ember-testing.js.map',
],
getDestinationPath(path) {
return path.replace(`ember.${which}.`, 'ember.');
},
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
"dist/packages",
"dist/dependencies",
"dist/ember-template-compiler.js",
"dist/ember-template-compiler.map",
"dist/ember-template-compiler.js.map",
"dist/ember.debug.js",
"dist/ember.debug.map",
"dist/ember.debug.js.map",
"dist/ember.prod.js",
"dist/ember.prod.map",
"dist/ember.prod.js.map",
"dist/ember-testing.js",
"dist/ember-testing.map",
"dist/ember-testing.js.map",
"docs/data.json",
"lib",
"types"
"types/stable"
],
"repository": {
"type": "git",
Expand Down Expand Up @@ -398,4 +398,4 @@
"node": "16.20.0",
"pnpm": "8.10.0"
}
}
}

0 comments on commit 2e55d8f

Please sign in to comment.