Skip to content

Commit 7d7ef32

Browse files
alan-agius4dgp1130
authored andcommitted
build: update tslib to 1.11.0
Spec helper change is related to microsoft/tslib#90
1 parent e756e00 commit 7d7ef32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/transformers/spec_helpers.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import { virtualFs } from '@angular-devkit/core';
9-
import { readFileSync, readdirSync } from 'fs';
9+
import { readFileSync, readdirSync, statSync } from 'fs';
1010
import { dirname, join } from 'path';
1111
import * as ts from 'typescript';
1212
import { WebpackCompilerHost } from '../compiler_host';
@@ -126,7 +126,8 @@ function loadTypeScriptLibFiles(): Record<string, string> {
126126

127127
function loadTsLibFiles(): Record<string, string> {
128128
const libFolderPath = dirname(require.resolve('tslib/package.json'));
129-
const libFolderFiles = readdirSync(libFolderPath);
129+
const libFolderFiles = readdirSync(libFolderPath)
130+
.filter(p => statSync(join(libFolderPath, p)).isFile());
130131

131132
// Return a map of the lib names to their content.
132133
const libs: Record<string, string> = {};

0 commit comments

Comments
 (0)