mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
13 lines
190 B
Bash
Executable File
13 lines
190 B
Bash
Executable File
#/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 |