vyriy 0.4.7 → 0.4.8
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/commands/create/index.js +13 -2
- package/package.json +2 -2
package/commands/create/index.js
CHANGED
|
@@ -57,6 +57,18 @@ const writeFiles = (target, files, overwrite) => {
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
|
+
const verifyProject = async (target) => {
|
|
61
|
+
console.log('Running checks...');
|
|
62
|
+
try {
|
|
63
|
+
await exec(`yarn --cwd ${target} check`);
|
|
64
|
+
}
|
|
65
|
+
catch {
|
|
66
|
+
console.log('Running fixes...');
|
|
67
|
+
await exec(`yarn --cwd ${target} fix`);
|
|
68
|
+
console.log('Running checks...');
|
|
69
|
+
await exec(`yarn --cwd ${target} check`);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
60
72
|
export const create = async (options) => {
|
|
61
73
|
const { directory, dryRun, overwrite, skipExisting, install, verify } = options;
|
|
62
74
|
const checkEnvCode = await checkEnv();
|
|
@@ -107,8 +119,7 @@ export const create = async (options) => {
|
|
|
107
119
|
return 0;
|
|
108
120
|
}
|
|
109
121
|
if (verify) {
|
|
110
|
-
|
|
111
|
-
await exec(`yarn --cwd ${target} check`);
|
|
122
|
+
await verifyProject(target);
|
|
112
123
|
}
|
|
113
124
|
else {
|
|
114
125
|
console.log('Running checks... SKIPPED');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vyriy",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8",
|
|
4
4
|
"description": "Interactive project master for calm cloud-ready applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "./bin/vyriy.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"stylelint": "^17.12.0",
|
|
27
27
|
"tsx": "^4.22.3",
|
|
28
28
|
"typescript": "^6.0.3",
|
|
29
|
-
"webpack-cli": "^7.0.
|
|
29
|
+
"webpack-cli": "^7.0.3"
|
|
30
30
|
},
|
|
31
31
|
"peerDependenciesMeta": {
|
|
32
32
|
"@types/react": {
|