Skip to content

Commit

Permalink
Merge pull request #195 from Bagaar/remove-build-logic
Browse files Browse the repository at this point in the history
Remove automatic inclusion/exclusion of msw's worker file
  • Loading branch information
bertdeblock committed Feb 7, 2024
2 parents 46b46eb + 11cf196 commit 1a0a322
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 20 deletions.
16 changes: 0 additions & 16 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,4 @@ module.exports = {
enableTypeScriptTransform: true,
},
},

treeForPublic(tree) {
const host = this._findHost();
const shouldExcludePublicFiles = host.env === 'production';

if (shouldExcludePublicFiles) {
return;
}

const funnel = require('broccoli-funnel');
const mergeTrees = require('broccoli-merge-trees');

return mergeTrees([tree, funnel(host.trees.public)], {
overwrite: true,
});
},
};
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@
},
"dependencies": {
"@babel/core": "^7.23.3",
"broccoli-funnel": "^3.0.5",
"broccoli-merge-trees": "^4.2.0",
"ember-auto-import": "^2.7.0",
"ember-cli-babel": "^8.2.0",
"lodash.merge": "^4.6.2"
Expand Down Expand Up @@ -133,7 +131,7 @@
"configPath": "tests/dummy/config"
},
"msw": {
"workerDirectory": "public"
"workerDirectory": "tests/dummy/public"
},
"release-it": {
"plugins": {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3571,7 +3571,7 @@ broccoli-funnel@^2.0.0, broccoli-funnel@^2.0.2:
symlink-or-copy "^1.0.0"
walk-sync "^0.3.1"

broccoli-funnel@^3.0.5, broccoli-funnel@^3.0.8:
broccoli-funnel@^3.0.8:
version "3.0.8"
resolved "https://registry.yarnpkg.com/broccoli-funnel/-/broccoli-funnel-3.0.8.tgz#f5b62e2763c3918026a15a3c833edc889971279b"
integrity sha512-ng4eIhPYiXqMw6SyGoxPHR3YAwEd2lr9FgBI1CyTbspl4txZovOsmzFkMkGAlu88xyvYXJqHiM2crfLa65T1BQ==
Expand Down

0 comments on commit 1a0a322

Please sign in to comment.