Skip to content

hs project upload does not work when not in root directory of package #1549

@UnderKoen

Description

@UnderKoen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions