@yeow/create-yeow 0.1.0 → 0.1.1

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/bin/index.js +4 -9
  2. package/package.json +2 -2
package/bin/index.js CHANGED
@@ -1,10 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ import { createInterface } from 'readline';
3
4
  import { existsSync, mkdirSync, readFileSync, writeFileSync, cpSync, copyFileSync } from 'fs';
4
5
  import { resolve, dirname } from 'path';
5
6
  import { fileURLToPath } from 'url';
6
- import { createInterface } from 'readline';
7
- import { execSync } from 'child_process';
8
7
 
9
8
  const __dirname = dirname(fileURLToPath(import.meta.url));
10
9
 
@@ -85,16 +84,12 @@ async function main() {
85
84
  }
86
85
 
87
86
  // npm install
88
- logInfo('Installing dependencies...');
89
- try {
90
- execSync('npm install', { cwd: projectDir, stdio: 'pipe' });
91
- logOk('Dependencies installed');
92
- } catch {
93
- logInfo('npm install failed, run manually: cd ' + name + ' && npm install');
94
- }
87
+ logInfo('Run ' + cyan('npm install') + ' to install dependencies');
88
+ logInfo('Run ' + cyan('npm run dev') + ' to start development server');
95
89
 
96
90
  console.log(`\n ${green('\u2713')} ${bold('Done!')}\n`);
97
91
  console.log(` ${dim('$')} ${cyan('cd ' + name)}`);
92
+ console.log(` ${dim('$')} ${cyan('npm install')}`);
98
93
  console.log(` ${dim('$')} ${cyan('npm run dev')} ${dim('Start development server')}`);
99
94
  console.log(` ${dim('$')} ${cyan('npm run build')} ${dim('Build plugin JAR')}\n`);
100
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeow/create-yeow",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Scaffold a Yeow plugin project",
5
5
  "bin": {
6
6
  "create-yeow": "./bin/index.js"
@@ -13,4 +13,4 @@
13
13
  "node": ">=18"
14
14
  },
15
15
  "license": "MIT"
16
- }
16
+ }