Fix JS build: split napi and tsc scripts to handle target args
npm run with extra args (-- --target) appends them to the end,
which was causing tsc to receive napi-specific flags like
--target x86_64-unknown-linux-gnu and --use-napi-cross.
Split build scripts so CI can pass args only to build:napi.