swc/scripts/setup-env.sh

8 lines
193 B
Bash
Raw Normal View History

2020-08-30 09:29:42 +03:00
#!/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