test: remove symlink workaround (#29426)
This is no longer required. And is causing some errors to some of our engineers PR Close #29426
This commit is contained in:
parent
64e5628897
commit
68a9fe817c
@ -122,15 +122,8 @@ export function setupBazelTo(tmpDirPath: string) {
|
|||||||
fs.mkdirSync(nodeModulesPath);
|
fs.mkdirSync(nodeModulesPath);
|
||||||
fs.mkdirSync(angularDirectory);
|
fs.mkdirSync(angularDirectory);
|
||||||
|
|
||||||
getAngularPackagesFromRunfiles().forEach(({pkgPath, name}) => {
|
getAngularPackagesFromRunfiles().forEach(
|
||||||
fs.symlinkSync(pkgPath, path.join(angularDirectory, name), 'dir');
|
({pkgPath, name}) => { fs.symlinkSync(pkgPath, path.join(angularDirectory, name), 'dir'); });
|
||||||
|
|
||||||
// todo: check why we always need an index.d.ts
|
|
||||||
if (!fs.existsSync(path.join(angularDirectory, name, 'index.d.ts'))) {
|
|
||||||
fs.symlinkSync(
|
|
||||||
path.join(pkgPath, `${name}.d.ts`), path.join(angularDirectory, name, 'index.d.ts'));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Link typescript
|
// Link typescript
|
||||||
const typeScriptSource = resolveNpmTreeArtifact('npm/node_modules/typescript');
|
const typeScriptSource = resolveNpmTreeArtifact('npm/node_modules/typescript');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user