Skip to content

Commit 7e2514c

Browse files
fix: removing ts installed with dtslint to prevent fails on older node.js
1 parent 4d2fad9 commit 7e2514c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/scripts/ditslint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
#!/bin/bash
2+
3+
# IMPORTANT NOTE
4+
# The following line removes TS installed by dtslint because it caused a failure on Node.js < 12.
5+
# dtslint in its current version installs typescript@next which is failing on older Node.js.
6+
# Using --localTs does not fix the issue because interpreter first gets the code of dtslint and its dependencies.
7+
rm -rf node_modules/dtslint/node_modules/typescript
8+
29
dtslint --expectOnly --localTs node_modules/typescript/lib types

0 commit comments

Comments
 (0)