@travetto/compiler 8.0.0-alpha.8 → 8.0.0-alpha.9
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/package.json +2 -2
- package/src/compiler.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/compiler",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The compiler infrastructure for the Travetto framework",
|
|
6
6
|
"keywords": [
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@travetto/transformer": "^8.0.0-alpha.4"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@travetto/cli": "^8.0.0-alpha.
|
|
38
|
+
"@travetto/cli": "^8.0.0-alpha.13"
|
|
39
39
|
},
|
|
40
40
|
"peerDependenciesMeta": {
|
|
41
41
|
"@travetto/cli": {
|
package/src/compiler.ts
CHANGED
|
@@ -187,7 +187,7 @@ export class Compiler {
|
|
|
187
187
|
await ManifestUtil.writeManifest(manifest);
|
|
188
188
|
await ManifestUtil.writeDependentManifests(manifest);
|
|
189
189
|
|
|
190
|
-
if (failures.size) {
|
|
190
|
+
if (!this.#watch && failures.size) {
|
|
191
191
|
return this.#shutdown('error');
|
|
192
192
|
}
|
|
193
193
|
|
|
@@ -213,6 +213,9 @@ export class Compiler {
|
|
|
213
213
|
const errors = await this.#state.compileSourceFile(event.entry.sourceFile, true);
|
|
214
214
|
if (errors?.length) {
|
|
215
215
|
log.error('Compilation failed', `${event.entry.sourceFile}: ${errors.length} errors found`);
|
|
216
|
+
for (const error of errors) {
|
|
217
|
+
log.error(`ERROR ${event.file}:${error}`);
|
|
218
|
+
}
|
|
216
219
|
} else {
|
|
217
220
|
log.info(`Compiled ${event.entry.sourceFile} on ${event.action}`);
|
|
218
221
|
}
|