exportc 0.0.9 → 0.0.10
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/init.js +5 -3
- package/package.json +2 -2
package/commands/init.js
CHANGED
|
@@ -247,11 +247,13 @@ declare module "export/" {
|
|
|
247
247
|
// Install exportc in main project
|
|
248
248
|
console.log(pc.gray("Installing exportc..."));
|
|
249
249
|
try {
|
|
250
|
-
execSync("npm install", { cwd, stdio: "inherit" });
|
|
250
|
+
execSync("npm install", { cwd, stdio: "inherit", encoding: "utf8" });
|
|
251
251
|
console.log(pc.green("✓") + " Installed exportc");
|
|
252
252
|
} catch (err) {
|
|
253
|
-
console.log(pc.yellow("!") + " Failed to install
|
|
254
|
-
if (err.
|
|
253
|
+
console.log(pc.yellow("!") + " Failed to install exportc");
|
|
254
|
+
if (err.stdout) console.log(err.stdout);
|
|
255
|
+
if (err.stderr) console.log(pc.red(err.stderr));
|
|
256
|
+
console.log(pc.gray("Run 'npm install' manually to see the full error."));
|
|
255
257
|
}
|
|
256
258
|
|
|
257
259
|
// Done
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "exportc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "CLI to add export to existing projects",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test test/init.test.mjs",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"picocolors": "^1.1.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"vite": "^5.0.0 || ^6.0.0"
|
|
46
|
+
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependenciesMeta": {
|
|
49
49
|
"vite": {
|