@travetto/compiler 8.0.0-alpha.3 → 8.0.0-alpha.4
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 +1 -1
- package/src/compiler.ts +3 -1
- package/src/state.ts +8 -1
package/package.json
CHANGED
package/src/compiler.ts
CHANGED
|
@@ -164,7 +164,9 @@ export class Compiler {
|
|
|
164
164
|
log.error(`ERROR ${event.file}:${error}`);
|
|
165
165
|
}
|
|
166
166
|
// Touch file to ensure recompilation later
|
|
167
|
-
await fs.
|
|
167
|
+
if (await fs.stat(event.file, { throwIfNoEntry: false })) {
|
|
168
|
+
await fs.utimes(event.file, new Date(), new Date());
|
|
169
|
+
}
|
|
168
170
|
}
|
|
169
171
|
metrics.push(event);
|
|
170
172
|
}
|
package/src/state.ts
CHANGED
|
@@ -177,7 +177,14 @@ export class CompilerState implements CompilerHost {
|
|
|
177
177
|
.filter(d => d.category === ts.DiagnosticCategory.Error)
|
|
178
178
|
.map(diag => {
|
|
179
179
|
let message = ts.flattenDiagnosticMessageText(diag.messageText, '\n');
|
|
180
|
-
if (
|
|
180
|
+
if (
|
|
181
|
+
message.includes("is not under 'rootDir'")
|
|
182
|
+
|| message.includes("does not exist on type 'EnvDataCombinedType'")
|
|
183
|
+
|| message.startsWith('Could not find a declaration file for module')
|
|
184
|
+
|| message.startsWith("Cannot find module '@travetto")
|
|
185
|
+
|| message.startsWith("This JSX tag requires the module path '@travetto")
|
|
186
|
+
|| message.startsWith("JSX element implicitly has type 'any'")
|
|
187
|
+
) {
|
|
181
188
|
return '';
|
|
182
189
|
}
|
|
183
190
|
if (diag.file) {
|