npm-scriptsで指定したコマンドにオプションを渡す"scripts": { "tsc" : "tsc", "test": "echo \"Error: no test specified\" && exit 1" },
SHELL> tsc -v Version 2.9.2 SHELL> npm -v 5.6.0 SHELL> npm run tsc -v (1) 5.6.0 SHELL> npm run tsc -- -v (2) Version 2.9.2
参考https://stackoverflow.com/questions/38030078/how-to-install-and-run-typescript-locally-in-npm |
|