Skip to content

[BUG] Windows - Uploading PATH #5

@apsolut

Description

@apsolut

Describe the bug
Uploading theme on Windows, online PATH should be "/theme-name/" but it is under "/theme-name/C:/folder-where-is-theme/theme/"

To Reproduce
Steps to reproduce the behavior:

  1. Install "@resultify/hubspot-cms-lib": "^3.7.0" on Windows
  2. Setup theme and run "npm run upload"
  3. Uploaded theme will be located under root: "/theme/C:/folder-where-is-theme/theme/"

Expected behavior
Upload just theme under "/theme/"

Screenshots

  • this is when theme is located under "C:\theme"
    chrome_WAYVPhjYzM 1

Desktop (please complete the following information):

  • OS: Windows
  • Node: v18.18.2, NPM v10.2.3
  • "@resultify/hubspot-cms-lib": "^3.7.0"

Additional context (QUICK FIX)
Gist where it works on Windows,:

What I changed to make it work cross platform - DIFF

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions