holidayextras / ui-toolkit

DEPRECATED - CSS & React components
http://tech.holidayextras.co.uk/ui-toolkit/
MIT License
14 stars 3 forks source link

Fix transpilation of countdown #165

Closed djbeaumont closed 6 years ago

djbeaumont commented 6 years ago

In v3.1.0 I linted the code base with standardjs and also changed var to const, expecting it to be transpiled back in the dist build anyway. As it happens that happens for all but two files 🙄

The files in src/components/countdown/lib weren't transpiled and had a weird require path to them so that components in dist could refer to them back in the src folder. This beartrap continued to work, but the const declarations in that file weren't transpiled, breaking the tripapp uglify step.

This PR makes sure all the src files are transpiled by adding some special case logic to the build script.