-
Just upgraded to Shopify CLI 3 and noticing the serve command is |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I don't think it'll be updated now to be honest, but its a simple change, just updated the script to the following in
Have been using it no problem on my end. |
Beta Was this translation helpful? Give feedback.
-
Thanks @lukecharle I also needed to specify my theme path with My NPM scripts ended up looking like "scripts": {
"start": "run-p -sr shopify:dev vite:watch",
"deploy": "run-s vite:build && shopify theme push --path shopify",
"deploy:new": "run-s vite:build && shopify theme push --unpublished --path shopify",
"vite:watch": "cross-env NODE_ENV=development vite build --watch --mode 'development' --config .config/vite.config.js",
"vite:build": "cross-env NODE_ENV=production vite build --mode 'production' --config .config/vite.config.js",
"shopify:dev": "shopify theme dev --path shopify",
"shopify:pull": "shopify theme pull --path shopify",
"lint": "run-s -c lint:*",
"lint:js": "eslint src/**/*.js --config .config/.eslintrc.js",
"lint:css": "stylelint src/**/*.{css,sass,scss} --config .config/.stylelintrc.js",
"lint:shopify": "shopify theme check --path shopify",
"fix": "run-s -c fix:*",
"fix:js": "eslint src/**/*.js --config .config/.eslintrc.js --fix",
"fix:css": "stylelint src/**/*.{css,sass,scss} --config .config/.stylelintrc.js --fix",
"fix:shopify": "shopify theme check -a --path shopify"
}, I've tested |
Beta Was this translation helpful? Give feedback.
Thanks @lukecharle
I also needed to specify my theme path with
--path shopify
where my/shopify
directory is a direct child of the NPM root.My NPM scripts ended up looking like