package.json
{
...
"scripts": {
"deploy": "cd project && hs project upload"
},
"devDependencies": {
"@hubspot/cli": "^7.5.4"
}
}
file structure
package.json
project/
hsproject.json
src/
app/
logo.png
public-app.js
When running npm run deploy it fails because it can't find the project configuration file.
This is due to that process.env.INIT_CWD is set to the root and not ./project
Suggested solution:
Make it possible to pass the directory where the project is in with --project ./project