test: fix ngcc integration tests in windows (#30297)

```
//packages/compiler-cli/ngcc/test:integration
```

Partially addresses #29785

PR Close #30297
This commit is contained in:
Alan Agius
2019-05-07 10:08:21 +02:00
committed by Alex Rickabaugh
parent 1bd4891c9a
commit 18c0ba5272
3 changed files with 11 additions and 5 deletions

View File

@ -23,7 +23,7 @@ export class NodeJSFileSystem implements FileSystem {
readdir(path: AbsoluteFsPath): PathSegment[] { return fs.readdirSync(path) as PathSegment[]; }
lstat(path: AbsoluteFsPath): fs.Stats { return fs.lstatSync(path); }
stat(path: AbsoluteFsPath): fs.Stats { return fs.statSync(path); }
pwd() { return AbsoluteFsPath.fromUnchecked(process.cwd()); }
pwd() { return AbsoluteFsPath.from(process.cwd()); }
copyFile(from: AbsoluteFsPath, to: AbsoluteFsPath): void { cp(from, to); }
moveFile(from: AbsoluteFsPath, to: AbsoluteFsPath): void { mv(from, to); }
ensureDir(path: AbsoluteFsPath): void { mkdir('-p', path); }

View File

@ -92,7 +92,7 @@ export class EntryPointFinder {
entryPoints.push(...this.getEntryPointsForPackage(packagePath));
// Also check for any nested node_modules in this package
const nestedNodeModulesPath = AbsoluteFsPath.resolve(packagePath, 'node_modules');
const nestedNodeModulesPath = AbsoluteFsPath.join(packagePath, 'node_modules');
if (this.fs.exists(nestedNodeModulesPath)) {
entryPoints.push(...this.walkDirectoryForEntryPoints(nestedNodeModulesPath));
}