@roots/bud-compiler 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 +1 -1
- package/lib/service/index.js +11 -16
- package/package.json +5 -5
- package/src/service/index.ts +12 -16
package/README.md
CHANGED
@@ -53,7 +53,7 @@ Keep track of development and community news.
|
|
53
53
|
|
54
54
|
## Sponsors
|
55
55
|
|
56
|
-
**
|
56
|
+
**bud.js** is an open source project and completely free to use.
|
57
57
|
|
58
58
|
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).
|
59
59
|
|
package/lib/service/index.js
CHANGED
@@ -59,22 +59,17 @@ class Compiler extends Service {
|
|
59
59
|
this.stats.children
|
60
60
|
?.filter(child => isNumber(child.errorsCount) && child.errorsCount > 0)
|
61
61
|
.forEach(child => {
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
this.app.
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
error.file && this.app.notifier.openEditor(error.file);
|
74
|
-
}
|
75
|
-
catch (error) {
|
76
|
-
this.logger.error(error);
|
77
|
-
}
|
62
|
+
const error = child.errors?.shift();
|
63
|
+
if (!error)
|
64
|
+
return;
|
65
|
+
this.app.notifier.notify({
|
66
|
+
group: `${this.app.label}-${child.name}`,
|
67
|
+
message: stripAnsi(error.message),
|
68
|
+
open: error.file ? pathToFileURL(error.file) : ``,
|
69
|
+
subtitle: error.file ? `Error in ${error.name}` : error.name,
|
70
|
+
title: makeNoticeTitle(this.app, child),
|
71
|
+
});
|
72
|
+
error.file && this.app.notifier.openEditor(error.file);
|
78
73
|
});
|
79
74
|
}
|
80
75
|
this.stats.children?.forEach(child => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@roots/bud-compiler",
|
3
|
-
"version": "2024.6.
|
3
|
+
"version": "2024.6.28-8",
|
4
4
|
"description": "Compilation handler",
|
5
5
|
"engines": {
|
6
6
|
"node": ">=16"
|
@@ -65,14 +65,14 @@
|
|
65
65
|
"types": "./lib/index.d.ts",
|
66
66
|
"module": "./lib/index.js",
|
67
67
|
"devDependencies": {
|
68
|
-
"@roots/bud-api": "2024.6.
|
68
|
+
"@roots/bud-api": "2024.6.28-8",
|
69
69
|
"@skypack/package-check": "0.2.2",
|
70
70
|
"@types/node": "20.12.8"
|
71
71
|
},
|
72
72
|
"dependencies": {
|
73
|
-
"@roots/bud-dashboard": "2024.6.
|
74
|
-
"@roots/bud-framework": "2024.6.
|
75
|
-
"@roots/bud-support": "2024.6.
|
73
|
+
"@roots/bud-dashboard": "2024.6.28-8",
|
74
|
+
"@roots/bud-framework": "2024.6.28-8",
|
75
|
+
"@roots/bud-support": "2024.6.28-8",
|
76
76
|
"tslib": "2.6.2"
|
77
77
|
},
|
78
78
|
"volta": {
|
package/src/service/index.ts
CHANGED
@@ -88,22 +88,18 @@ class Compiler extends Service implements BudCompiler {
|
|
88
88
|
child => isNumber(child.errorsCount) && child.errorsCount > 0,
|
89
89
|
)
|
90
90
|
.forEach(child => {
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
this.app.
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
error.file && this.app.notifier.openEditor(error.file)
|
104
|
-
} catch (error) {
|
105
|
-
this.logger.error(error)
|
106
|
-
}
|
91
|
+
const error = child.errors?.shift()
|
92
|
+
if (!error) return
|
93
|
+
|
94
|
+
this.app.notifier.notify({
|
95
|
+
group: `${this.app.label}-${child.name}`,
|
96
|
+
message: stripAnsi(error.message),
|
97
|
+
open: error.file ? pathToFileURL(error.file) : ``,
|
98
|
+
subtitle: error.file ? `Error in ${error.name}` : error.name,
|
99
|
+
title: makeNoticeTitle(this.app, child),
|
100
|
+
})
|
101
|
+
|
102
|
+
error.file && this.app.notifier.openEditor(error.file)
|
107
103
|
})
|
108
104
|
}
|
109
105
|
|