Skip to content

Commit c73d448

Browse files
authored
Workaround for shelljs in windows to fix CI (#236)
* Workaround shelljs in windows to fix CI shell.cp() creates invalid symlinks when copying directories See: shelljs/shelljs#198 * delete the file in init.ts instead of ci.yml so it fixes CI on other repos too
1 parent 886dba4 commit c73d448

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tool/get-language-repo.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ export async function getLanguageRepo(
2727
} else {
2828
await utils.cleanDir('build/sass');
2929
await utils.link(options.path, 'build/sass');
30+
31+
// Workaround for https://github.com/shelljs/shelljs/issues/198
32+
// This file is a symlink which gets messed up by `shell.cp` (called from
33+
// `utils.link`) on Windows.
34+
shell.rm('build/sass/spec/README.md');
3035
}
3136

3237
await utils.link('build/sass/js-api-doc', p.join(outPath, 'sass'));

0 commit comments

Comments
 (0)