我的 lerna 项目 package.json 中有以下内容:
{
"scripts": {
"build": "../../node_modules/.bin/tsc"
}
}
在 Windows bash.exe 上运行时,我得到
'..' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-package@1.0.0 build: `../../node_modules/.bin/tsc`
我试过:"build": "\"../../node_modules/.bin/tsc\""
没有运气。我希望这个命令在 Windows 和 Mac 上都可以使用。我如何实现这一目标?