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 +1 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/{config-Br7AGMZa.d.mts → config-0kQvegVT.d.mts} +27 -2
- package/dist/config-0kQvegVT.d.mts.map +1 -0
- package/dist/{config-CASV13hX.mjs → config-DJXKpBNV.mjs} +80 -4
- package/dist/config-DJXKpBNV.mjs.map +1 -0
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/pkl/LinterConfig.pkl +2 -0
- package/pkl/jsonschema/LintRuleOptionsSchemaDefinitions.pkl +4 -0
- package/pkl/vize.pkl +2 -0
- package/schemas/vize.config.schema.json +4 -0
- package/src/init/plan-project.ts +7 -3
- package/src/types/generated.ts +1 -0
- package/src/types/runtime.ts +27 -1
- package/dist/config-Br7AGMZa.d.mts.map +0 -1
- package/dist/config-CASV13hX.mjs.map +0 -1
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,
|