swc/scripts/setup-env.sh
2020-08-30 15:29:42 +09:00

8 lines
193 B
Bash

#!/usr/bin/env bash
set -eu
NODE_PLATFORM_NAME=$(node -e "console.log(require('os').platform())")
(cd scripts/npm/core-$NODE_PLATFORM_NAME && npm link)
npm link @swc/core-$NODE_PLATFORM_NAME