create-laju-app
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -8,2 +8,3 @@ #!/usr/bin/env node | ||
const fs = require('fs'); | ||
const { execSync } = require('child_process'); | ||
@@ -62,9 +63,15 @@ program | ||
console.log('✅ Project created successfully!'); | ||
// Change directory and run setup commands | ||
process.chdir(targetPath); | ||
console.log('📦 Installing dependencies...'); | ||
execSync('npm install', { stdio: 'inherit' }); | ||
console.log('📝 Copying environment file...'); | ||
execSync('cp .env.example .env', { stdio: 'inherit' }); | ||
console.log('🔄 Running migrations...'); | ||
execSync('npx knex migrate:latest', { stdio: 'inherit' }); | ||
console.log('🎉 Project created successfully!'); | ||
console.log(''); | ||
console.log('To get started:'); | ||
console.log(` cd ${projectDirectory}`); | ||
console.log(' npm install'); | ||
console.log(' npm run dev'); | ||
console.log('🚀 Your project is ready! You can now start developing.'); | ||
console.log('🔥 npm run dev to start the development server.'); | ||
console.log('📦 npm run build to build the production files.'); | ||
} catch (error) { | ||
@@ -71,0 +78,0 @@ console.error('Error:', error.message); |
{ | ||
"name": "create-laju-app", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"keywords": [ | ||
@@ -18,2 +18,3 @@ "laju", | ||
"dependencies": { | ||
"child_process": "^1.0.2", | ||
"commander": "^11.0.0", | ||
@@ -28,4 +29,2 @@ "degit": "^2.8.4", | ||
} | ||
} | ||
} |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
11130
66
4
1
+ Addedchild_process@^1.0.2
+ Addedchild_process@1.0.2(transitive)