govau / design-system-components

🛠 Component code and tests for the Australian Government design system
https://auds.service.gov.au
MIT License
739 stars 111 forks source link

Component build process fails on Windows machine #1007

Closed mrrossmullen closed 3 years ago

mrrossmullen commented 3 years ago

Bug Report

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

Steps to reproduce:

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