archetype-themes / plugin-theme-component

A Shopify CLI plugin for building theme components.
MIT License
9 stars 4 forks source link

Malformed assets/component-name.js when running install command in theme #313

Closed bertiful closed 8 months ago

bertiful commented 9 months ago

When installing the latest set of our components library in Expanse, by running shopify theme component install, the assets/component-name.js file outputs the following code:

// This file and all its inclusions will be processed through postcss

import '@archetype-themes/scripts/config'
fig'

Note the fig' at the end of the file.

bertiful commented 8 months ago

Not an issue any longer with the latest version of the plugin. The contents of this file originates from: https://github.com/archetype-themes/components/blob/main/components/video-modal/assets/component-name.js, which we'll burn soon.