create-next-rkk 2.0.0 → 2.0.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/dist/index.js +6 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -72,7 +72,7 @@ function cleanupProjectDir(projectPath) {
72
72
  program
73
73
  .name('create-next-rkk')
74
74
  .description('Create a new Next.js app with rkk-next pre-configured')
75
- .version('2.0.0')
75
+ .version('2.0.1')
76
76
  .argument('[project-name]', 'name of your project')
77
77
  .action(async (projectName) => {
78
78
  console.log(chalk_1.default.bold.cyan('\nšŸš€ Create RKK Next.js App\n'));
@@ -119,18 +119,20 @@ program
119
119
  // Step 1: Create Next.js app
120
120
  const spinner = (0, ora_1.default)('Creating Next.js application...').start();
121
121
  try {
122
- // Use create-next-app with all options specified to avoid prompts
122
+ // Use create-next-app with all options specified to avoid prompts.
123
+ // --yes tells npx to auto-install create-next-app without asking.
123
124
  const createNextAppCmd = [
124
125
  'npx',
126
+ '--yes',
125
127
  'create-next-app@latest',
126
128
  targetDir,
127
129
  answers.typescript ? '--typescript' : '--js',
128
130
  '--eslint',
129
131
  '--no-tailwind',
130
132
  '--src-dir',
131
- '--app',
133
+ answers.router === 'app' ? '--app' : '--no-app',
132
134
  '--import-alias', '@/*',
133
- '--no-git'
135
+ '--no-git',
134
136
  ].join(' ');
135
137
  activeStep = 'create-app';
136
138
  (0, child_process_1.execSync)(createNextAppCmd, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-next-rkk",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "CLI tool to create Next.js apps with rkk-next pre-configured",
5
5
  "author": "Rohit Kumar Kundu",
6
6
  "license": "MIT",