vize 0.515.0 → 0.516.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -1385,7 +1385,7 @@ function planScripts(detection, selection, draft) {
1385
1385
  const source = fs.readFileSync(packagePath, "utf8");
1386
1386
  const packageJson = parsePackageJson(packagePath, source);
1387
1387
  const scripts = { ...detection.scripts };
1388
- for (const name of missing) scripts[name] = name === "vize:check" && detection.framework === "nuxt" ? "nuxt prepare && vize check" : DEFAULT_SCRIPTS[name];
1388
+ for (const name of missing) scripts[name] = name === "vize:fmt" && detection.framework === "nuxt" ? "vize fmt --check app app.vue" : name === "vize:fmt:fix" && detection.framework === "nuxt" ? "vize fmt --write app app.vue" : name === "vize:check" && detection.framework === "nuxt" ? "nuxt prepare && vize check" : DEFAULT_SCRIPTS[name];
1389
1389
  packageJson.scripts = scripts;
1390
1390
  draft.files.push({
1391
1391
  filename: packagePath,