create-arktos 1.2.0 → 1.5.0
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.
- package/bin/cli.js +7 -2
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -23,13 +23,16 @@ function createProject(projectName) {
|
|
|
23
23
|
process.exit(1);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
// Always use TypeScript template
|
|
27
|
+
const packageTemplate = 'template.package.json';
|
|
28
|
+
|
|
26
29
|
try {
|
|
27
30
|
// Create project directory
|
|
28
31
|
console.log('📁 Creating project directory...');
|
|
29
32
|
fs.mkdirSync(projectName);
|
|
30
33
|
|
|
31
34
|
// Copy src directory
|
|
32
|
-
console.log('📋 Copying source files...');
|
|
35
|
+
console.log('📋 Copying TypeScript source files...');
|
|
33
36
|
const targetSrcDir = path.join(projectName, 'src');
|
|
34
37
|
copyDir(TEMPLATE_DIR, targetSrcDir);
|
|
35
38
|
|
|
@@ -47,7 +50,7 @@ function createProject(projectName) {
|
|
|
47
50
|
|
|
48
51
|
// Copy and update package.json
|
|
49
52
|
console.log('🔧 Updating project configuration...');
|
|
50
|
-
const templatePackageJsonPath = path.join(ROOT_DIR,
|
|
53
|
+
const templatePackageJsonPath = path.join(ROOT_DIR, packageTemplate);
|
|
51
54
|
const targetPackageJsonPath = path.join(projectName, 'package.json');
|
|
52
55
|
|
|
53
56
|
if (fs.existsSync(templatePackageJsonPath)) {
|
|
@@ -59,6 +62,7 @@ function createProject(projectName) {
|
|
|
59
62
|
fs.writeFileSync(targetPackageJsonPath, JSON.stringify(packageJson, null, 2));
|
|
60
63
|
}
|
|
61
64
|
|
|
65
|
+
|
|
62
66
|
console.log('✅ Project created successfully!');
|
|
63
67
|
console.log();
|
|
64
68
|
console.log('🎯 Next steps:');
|
|
@@ -274,6 +278,7 @@ Happy coding! 🎉`
|
|
|
274
278
|
fs.copyFileSync(srcPath, destPath);
|
|
275
279
|
}
|
|
276
280
|
}
|
|
281
|
+
|
|
277
282
|
}
|
|
278
283
|
|
|
279
284
|
function showHelp() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-arktos",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "🚀 A modern Node.js backend boilerplate with TypeScript, Express, JWT authentication, Prisma ORM, PostgreSQL, and Resend email service. Includes complete authentication flow, security middleware, and database management.",
|
|
5
5
|
"main": "bin/cli.js",
|
|
6
6
|
"bin": {
|