govau/design-system-components

Component build process fails on Windows machine

mrrossmullen opened this issue · 0 comments

Bug Report

  • I’ve read and understood the Contributing guidelines and have done my best effort to follow them.
  • I’ve read and agree to the Code of Conduct.
  • I’ve searched for any related issues and avoided creating a duplicate issue.

What happened

Running npm run build on a Windows machine causes the component build process to fail. Earlier fix #1001 causes this problem as the substring function trims the first character of the directory path.

What I expected to happen

A component is ready for publishing to npm within the directory /lib and no errors displayed.

Reproducing

  • OS: Windows 10
  • Module name: helper.js
  • Module version: n/a
  • Pancake version: n/a
  • Node version: 14.15.4
  • npm version: 6.14.10
  • Pancake settings in your package.json: n/a

Steps to reproduce:

  1. npm i
  2. cd packages/<component directory>
  3. npm run build