Skip to content

Commit

Permalink
fix: prepack addon tree for embroider (#8308)
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired authored Nov 19, 2022
1 parent af8f5a1 commit 0ed43be
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
concat-stats-for
dist
tmp
packages/tracking/addon

# dependencies
bower_components
Expand Down
15 changes: 0 additions & 15 deletions packages/tracking/addon-main.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
const path = require('path');

const Funnel = require('broccoli-funnel');

module.exports = {
name: require('./package.json').name,

options: {
babel: {
plugins: [require.resolve('./lib/transform-ext.js')],
},
},

treeForAddon() {
const assetDir = path.join(__dirname, './dist');
return this._super.treeForAddon.call(this, new Funnel(assetDir, { include: ['**/*.js'] }));
},

treeForVendor() {
return;
},
Expand Down
8 changes: 4 additions & 4 deletions packages/tracking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"extends": "../../package.json"
},
"dependencies": {
"broccoli-funnel": "^3.0.8",
"ember-cli-babel": "^7.26.11"
},
"exports": {
Expand All @@ -36,9 +35,9 @@
"dist"
],
"scripts": {
"build": "rollup --config",
"build": "rollup --config && babel ./dist --out-dir addon --plugins=./lib/transform-ext.js",
"start": "rollup --config --watch",
"prepack": "rollup --config"
"prepack": "pnpm build"
},
"ember-addon": {
"main": "addon-main.js",
Expand All @@ -47,6 +46,7 @@
},
"devDependencies": {
"@babel/core": "^7.20.2",
"@babel/cli": "^7.19.3",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.20.2",
"@babel/plugin-transform-runtime": "^7.19.6",
Expand All @@ -65,4 +65,4 @@
"ember": {
"edition": "octane"
}
}
}
54 changes: 51 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0ed43be

Please sign in to comment.