@roots/bud-build 6.16.1 → 6.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -118,3 +118,6 @@ However, the amount of effort needed to maintain and develop new features and pr
118
118
  <a href="https://www.copiadigital.com/">
119
119
  <img src="https://cdn.roots.io/app/uploads/copia-digital.svg" alt="Copia Digital" width="200" height="150"/>
120
120
  </a>
121
+ <a href="https://www.freave.com/">
122
+ <img src="https://cdn.roots.io/app/uploads/freave.svg" alt="Freave" width="200" height="150"/>
123
+ </a>
@@ -1 +1,7 @@
1
- export const entry = async ({ hooks }) => hooks.filter(`build.entry`, { main: { import: [`index`] } });
1
+ export const entry = async ({ hooks }) => {
2
+ const entrypoints = hooks.filter(`build.entry`, { main: { import: [`index`] } });
3
+ return Object.entries(entrypoints).reduce((acc, [key, value]) => {
4
+ value.import = [...new Set(value.import)];
5
+ return { ...acc, [key]: value };
6
+ }, {});
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roots/bud-build",
3
- "version": "6.16.1",
3
+ "version": "6.17.0",
4
4
  "description": "bud.js core module",
5
5
  "engines": {
6
6
  "node": ">=16"
@@ -169,14 +169,14 @@
169
169
  "types": "./lib/index.d.ts",
170
170
  "module": "./lib/index.js",
171
171
  "devDependencies": {
172
- "@roots/bud-api": "6.16.1",
173
- "@roots/bud-hooks": "6.16.1",
172
+ "@roots/bud-api": "6.17.0",
173
+ "@roots/bud-hooks": "6.17.0",
174
174
  "@skypack/package-check": "0.2.2",
175
- "@types/node": "18.17.9"
175
+ "@types/node": "18.17.19"
176
176
  },
177
177
  "dependencies": {
178
- "@roots/bud-framework": "6.16.1",
179
- "@roots/bud-support": "6.16.1",
178
+ "@roots/bud-framework": "6.17.0",
179
+ "@roots/bud-support": "6.17.0",
180
180
  "tslib": "2.6.2"
181
181
  },
182
182
  "volta": {
@@ -1,4 +1,10 @@
1
1
  import type {Factory} from '@roots/bud-build/config'
2
2
 
3
- export const entry: Factory<`entry`> = async ({hooks}) =>
4
- hooks.filter(`build.entry`, {main: {import: [`index`]}})
3
+ export const entry: Factory<`entry`> = async ({hooks}) => {
4
+ const entrypoints = hooks.filter(`build.entry`, {main: {import: [`index`]}})
5
+
6
+ return Object.entries(entrypoints).reduce((acc, [key, value]) => {
7
+ value.import = [...new Set(value.import)]
8
+ return {...acc, [key]: value}
9
+ }, {})
10
+ }