Skip to content

Commit

Permalink
refactor(cli): Replace execSync with spawn in cli.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Jun 4, 2024
1 parent be32917 commit 2d331ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env node

const { execSync } = require('child_process');
const { spawn } = require('child_process');

execSync("npx @million/install@latest", { stdio: 'inherit' });
try {
spawn('npx', ['@million/install@latest'], {
stdio: ['inherit', 'inherit', 'ignore'],
});
} catch (_) {}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "million",
"version": "3.1.8",
"version": "3.1.10",
"description": "Make React Faster. Automatically.",
"keywords": [
"million",
Expand Down

0 comments on commit 2d331ef

Please # to comment.