@roots/bud-build 2024.6.26-7 → 2024.6.28-8

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -96,7 +96,7 @@ Keep track of development and community news.
96
96
 
97
97
  ## Sponsors
98
98
 
99
- **Bud** is an open source project and completely free to use.
99
+ **bud.js** is an open source project and completely free to use.
100
100
 
101
101
  However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).
102
102
 
@@ -1,4 +1,4 @@
1
- import { ConfigError } from '@roots/bud-support/errors';
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 ConfigError.normalize(`${dependency} is not a registered instance of bud.js.`, {
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}`, `no loader registered`);
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.26-7",
3
+ "version": "2024.6.28-8",
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.26-7",
173
- "@roots/bud-hooks": "2024.6.26-7",
172
+ "@roots/bud-api": "2024.6.28-8",
173
+ "@roots/bud-hooks": "2024.6.28-8",
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.26-7",
179
- "@roots/bud-support": "2024.6.26-7",
178
+ "@roots/bud-framework": "2024.6.28-8",
179
+ "@roots/bud-support": "2024.6.28-8",
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 {ConfigError} from '@roots/bud-support/errors'
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 ConfigError.normalize(
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}`, `no loader registered`)
143
+ logger.error(`error in ${this.ident}: no loader registered`)
144
144
  }
145
145
 
146
146
  return Object.entries(output).reduce(