Preset not creating pasckage.json? #150
Unanswered
ari-hellomolly
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey @ari-hellomolly, The preset should install all the necessary files to start using Vite and Shopify Vite Plugin in a fresh Shopify theme, including the package.json file. shopify-vite-preset.mp4 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I work at an ecommerce company and will be rebuilding one of our sites in shopify from scratch. I plan on using Volt + Vite on top of the Dawn theme as a starting point. I've been testing the installation guides in the documentation and something I've noticed is that if I use the preset approach, while it perfectly scaffolds a starting point for the volt plugin, it doesn't include a package.json with dependencies or scripts. Is this the expected behavior or is the expectation to create a package.json with npm init (or in my case, pnpm init) before running the preset cli command? The documentation specifically mentions "Once you have installed the preset, you do not need to follow the rest of the installation guide." however it only talks about creating a package.json in the ensuing installation guide.
What's the expected workflow for someone using the preset, once they've initialised a fresh shopify theme and run the preset cli commands? There are "next steps" that get echoed in the terminal once the preset command has been run, however it references running scripts with npm which can't be done until there is a package.json with scripts & dependencies included:
Beta Was this translation helpful? Give feedback.
All reactions