mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +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 |