hubs/scripts/print-bindings.sh

10 строки
243 B
Bash
Executable File

if [ ! -e msrc ]; then
mkdir msrc
find src -type f |
grep '.js$' |
sed 's/.js$//' |
xargs -I{} sh -c 'mkdir -p $(dirname msrc/{}.mjs); cp {}.js msrc/{}.mjs'
fi
node --experimental-modules scripts/print-bindings.mjs
rm -rf msrc