chore: make test.sh work again
Previously, `test.sh` relied on calling `build.sh` first
This commit is contained in:
@ -73,8 +73,7 @@ export class MockTypescriptHost implements ts.LanguageServiceHost {
|
||||
constructor(private scriptNames: string[], private data: MockData) {
|
||||
let angularIndex = module.filename.indexOf('@angular');
|
||||
if (angularIndex >= 0)
|
||||
this.angularPath =
|
||||
module.filename.substr(0, angularIndex).replace('/all/', '/packages-dist/');
|
||||
this.angularPath = module.filename.substr(0, angularIndex).replace('/all/', '/all/@angular/');
|
||||
let distIndex = module.filename.indexOf('/dist/all');
|
||||
if (distIndex >= 0)
|
||||
this.nodeModulesPath = path.join(module.filename.substr(0, distIndex), 'node_modules');
|
||||
|
Reference in New Issue
Block a user