Skip to content

Commit 0386930

Browse files
committed
更新生成的 package.json 文件名为项目目录名
1 parent 0ef6acd commit 0386930

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

packages/tools/cli/src/index.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,13 @@ program
3131

3232
program
3333
.command('init')
34-
.description('Create a new ObjectQL project')
35-
.option('-t, --template <template>', 'Template to use (basic, express-api, enterprise)', 'basic')
36-
.option('-n, --name <name>', 'Project name')
37-
.option('-d, --dir <path>', 'Target directory')
38-
.option('--skip-install', 'Skip dependency installation')
39-
.option('--skip-git', 'Skip git initialization')
40-
.action(async (options) => {
41-
try {
42-
await initProject(options);
43-
} catch (error) {
44-
console.error(error);
45-
process.exit(1);
46-
}
34+
.description('Create a new ObjectQL project (Deprecated)')
35+
.action(async () => {
36+
console.log(chalk.red('\n⚠️ DEPRECATED: The "objectql init" command has been removed.'));
37+
console.log(chalk.white('Please use the standard initializer instead:\n'));
38+
console.log(chalk.cyan(' npm create @objectql@latest <my-app>'));
39+
console.log('');
40+
process.exit(1);
4741
});
4842

4943
program

0 commit comments

Comments
 (0)