@roots/bud-build 2024.6.25-7 → 2024.6.27-7
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { BudError } from '@roots/bud-support/errors';
|
2
2
|
import isUndefined from '@roots/bud-support/isUndefined';
|
3
3
|
export const dependencies = async ({ hooks, label, root, }) => {
|
4
4
|
const dependencies = hooks
|
@@ -6,7 +6,7 @@ export const dependencies = async ({ hooks, label, root, }) => {
|
|
6
6
|
?.filter(dependency => {
|
7
7
|
const defined = !isUndefined(root.children?.[dependency]);
|
8
8
|
if (!defined) {
|
9
|
-
throw
|
9
|
+
throw BudError.normalize(`${dependency} is not a registered instance of bud.js.`, {
|
10
10
|
details: root.children
|
11
11
|
? `Available instances are: ${Object.values(root.children)
|
12
12
|
.map(child => child.label)
|
package/lib/item/index.js
CHANGED
@@ -99,7 +99,7 @@ class Item extends Registrable {
|
|
99
99
|
output.ident = this.getIdent();
|
100
100
|
}
|
101
101
|
if (!output.loader) {
|
102
|
-
logger.error(`error in ${this.ident}
|
102
|
+
logger.error(`error in ${this.ident}: no loader registered`);
|
103
103
|
}
|
104
104
|
return Object.entries(output).reduce((output, [key, value]) => ({
|
105
105
|
...(output ?? {}),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@roots/bud-build",
|
3
|
-
"version": "2024.6.
|
3
|
+
"version": "2024.6.27-7",
|
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": "2024.6.
|
173
|
-
"@roots/bud-hooks": "2024.6.
|
172
|
+
"@roots/bud-api": "2024.6.27-7",
|
173
|
+
"@roots/bud-hooks": "2024.6.27-7",
|
174
174
|
"@skypack/package-check": "0.2.2",
|
175
175
|
"@types/node": "20.12.8"
|
176
176
|
},
|
177
177
|
"dependencies": {
|
178
|
-
"@roots/bud-framework": "2024.6.
|
179
|
-
"@roots/bud-support": "2024.6.
|
178
|
+
"@roots/bud-framework": "2024.6.27-7",
|
179
|
+
"@roots/bud-support": "2024.6.27-7",
|
180
180
|
"tslib": "2.6.2"
|
181
181
|
},
|
182
182
|
"volta": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type {Factory} from '@roots/bud-build/config'
|
2
2
|
|
3
|
-
import {
|
3
|
+
import {BudError} from '@roots/bud-support/errors'
|
4
4
|
import isUndefined from '@roots/bud-support/isUndefined'
|
5
5
|
|
6
6
|
export const dependencies: Factory<`dependencies`> = async ({
|
@@ -14,7 +14,7 @@ export const dependencies: Factory<`dependencies`> = async ({
|
|
14
14
|
const defined = !isUndefined(root.children?.[dependency])
|
15
15
|
|
16
16
|
if (!defined) {
|
17
|
-
throw
|
17
|
+
throw BudError.normalize(
|
18
18
|
`${dependency} is not a registered instance of bud.js.`,
|
19
19
|
{
|
20
20
|
details: root.children
|
package/src/item/index.ts
CHANGED
@@ -140,7 +140,7 @@ class Item extends Registrable implements Build.Item {
|
|
140
140
|
}
|
141
141
|
|
142
142
|
if (!output.loader) {
|
143
|
-
logger.error(`error in ${this.ident}
|
143
|
+
logger.error(`error in ${this.ident}: no loader registered`)
|
144
144
|
}
|
145
145
|
|
146
146
|
return Object.entries(output).reduce(
|