exportc 0.0.9 → 0.0.11

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.
Files changed (2) hide show
  1. package/commands/init.js +6 -4
  2. package/package.json +2 -2
package/commands/init.js CHANGED
@@ -124,7 +124,7 @@ export class Counter {
124
124
  deploy: "generate-export-types && wrangler deploy",
125
125
  },
126
126
  dependencies: {
127
- "export-runtime": "^0.0.14",
127
+ "export-runtime": "^0.0.15",
128
128
  },
129
129
  devDependencies: {
130
130
  wrangler: "^4.0.0",
@@ -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. Run: npm install");
254
- if (err.message) console.log(pc.gray(err.message));
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.9",
3
+ "version": "0.0.11",
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": {