2021-01-22 14:53:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-01-22 14:47:33 +00:00
|
|
|
# Add file extensions to Crypto-Api imports
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
|
|
find ./node_modules/crypto-api/src/ \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e '/\.mjs/!s/\(from "\.[^"]*\)";/\1.mjs";/g'
|
|
|
|
else
|
|
|
|
find ./node_modules/crypto-api/src/ \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i -e '/\.mjs/!s/\(from "\.[^"]*\)";/\1.mjs";/g'
|
|
|
|
fi
|