claui / cookiecutter-vscode-extension

Cookiecutter template for generating Visual Studio Code extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bash syntax error in `jest.jestCommandLine`

claui opened this issue · comments

"jest.jestCommandLine": "if ! type nvm > /dev/null && [ \"${NVM_DIR}\"] && [-s \"${NVM_DIR}/nvm.sh\"]; then . \"${NVM_DIR}/nvm.sh\"; nvm use; fi; node --version && yarn test",

Need to change that to:

    "jest.jestCommandLine": "if ! type nvm > /dev/null && [ \"${NVM_DIR}\" ] && [ -s \"${NVM_DIR}/nvm.sh\" ]; then . \"${NVM_DIR}/nvm.sh\"; nvm use; fi; node --version && yarn test",

Likewise, in tasks.json, the command:

"command": "if ! type nvm > /dev/null && [ \"${NVM_DIR}\"] && [-s \"${NVM_DIR}/nvm.sh\"]; then . \"${NVM_DIR}/nvm.sh\"; nvm use; fi; node --version && yarn compile",

needs to change to:

      "command": "if ! type nvm > /dev/null && [ \"${NVM_DIR}\" ] && [ -s \"${NVM_DIR}/nvm.sh\" ]; then . \"${NVM_DIR}/nvm.sh\"; nvm use; fi; node --version && yarn compile",

Fixed in #46.