mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 00:52:29 +03:00
13 lines
190 B
Bash
13 lines
190 B
Bash
|
#/usr/bin/env bash
|
||
|
set -eux
|
||
|
|
||
|
npx swc src -d lib
|
||
|
ls -alR ./lib
|
||
|
|
||
|
# fsync
|
||
|
|
||
|
if [[ "$OSTYPE" == 'darwin'* ]]; then
|
||
|
sed -i '' 's/.mjs/.js/g' ./lib/*.js
|
||
|
else
|
||
|
sed -i 's/.mjs/.js/g' ./lib/*.js
|
||
|
fi
|