Skip to content

Commit 1ab1c6c

Browse files
littledivyclydin
authored andcommitted
fix(@angular-devkit/schematics): use web standard error check for Deno support
(cherry picked from commit 41ee8ea)
1 parent c6b82f6 commit 1ab1c6c

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/schematics/src/rules

1 file changed

+1
-1
lines changed

packages/angular_devkit/schematics/src/rules/template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function applyContentTemplate<T>(options: T): FileOperator {
6262
content: Buffer.from(templateImpl(decodedContent, {})(options)),
6363
};
6464
} catch (e) {
65-
if ((e as NodeJS.ErrnoException).code === 'ERR_ENCODING_INVALID_ENCODED_DATA') {
65+
if (e instanceof TypeError) {
6666
return entry;
6767
}
6868

0 commit comments

Comments
 (0)