@roots/bud-build 2024.6.19-7 → 2024.6.20-7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- export const bail = async ({ hooks, isProduction }) => hooks.filter(`build.bail`, isProduction);
1
+ export const bail = async ({ context, hooks, isProduction, }) => hooks.filter(`build.bail`, isProduction && !context.ignoreErrors);
@@ -1 +1 @@
1
- export const stats = async (app) => app.hooks.filter(`build.stats`, { preset: `normal` });
1
+ export const stats = async (app) => app.hooks.filter(`build.stats`, { preset: `none` });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roots/bud-build",
3
- "version": "2024.6.19-7",
3
+ "version": "2024.6.20-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.19-7",
173
- "@roots/bud-hooks": "2024.6.19-7",
172
+ "@roots/bud-api": "2024.6.20-7",
173
+ "@roots/bud-hooks": "2024.6.20-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.19-7",
179
- "@roots/bud-support": "2024.6.19-7",
178
+ "@roots/bud-framework": "2024.6.20-7",
179
+ "@roots/bud-support": "2024.6.20-7",
180
180
  "tslib": "2.6.2"
181
181
  },
182
182
  "volta": {
@@ -1,4 +1,7 @@
1
1
  import type {Factory} from '@roots/bud-build/config'
2
2
 
3
- export const bail: Factory<'bail'> = async ({hooks, isProduction}) =>
4
- hooks.filter(`build.bail`, isProduction)
3
+ export const bail: Factory<'bail'> = async ({
4
+ context,
5
+ hooks,
6
+ isProduction,
7
+ }) => hooks.filter(`build.bail`, isProduction && !context.ignoreErrors)
@@ -25,6 +25,7 @@ export const optimization: Factory<`optimization`> = async ({
25
25
  `build.optimization.providedExports`,
26
26
  isProduction,
27
27
  ),
28
+
28
29
  /**
29
30
  * Will be new default in webpack 6
30
31
  * @see {@link https://webpack.js.org/configuration/optimization/#optimizationremoveavailablemodules}
@@ -1,4 +1,4 @@
1
1
  import type {Factory} from '@roots/bud-build/config'
2
2
 
3
3
  export const stats: Factory<`stats`> = async app =>
4
- app.hooks.filter(`build.stats`, {preset: `normal`})
4
+ app.hooks.filter(`build.stats`, {preset: `none`})