We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1453ec0 commit 0293cbbCopy full SHA for 0293cbb
postcompile.sh
@@ -10,12 +10,6 @@ cd "$dir" || exit 1
10
11
cd "$npm_package_types" || exit 1
12
13
-sed -ir 's/(<reference )types(="[^"]+)"/\1path\2.d.ts"/' index.d.ts
14
-result="$?"
15
-
16
-if [ "$result" ]; then
17
- echo "another"
18
- sed -i '' -r 's/(<reference )types(="[^"]+)"/\1path\2.d.ts"/' index.d.ts
19
-else
20
- echo "was ok"
21
-fi
+# https://stackoverflow.com/a/4247319/9412937
+# sed -i'' -r 's/(<reference )types(="[^"]+)"/\1path\2.d.ts"/' index.d.ts
+perl -i -pe's/(<reference )types(="[^"]+)"/\1path\2.d.ts"/' index.d.ts
0 commit comments