diff --git a/package.json b/package.json index 0471f51..53c3ae7 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ }, "files": [ "build", - "templates" + "template" ], "scripts": { "build": "tsc && shx chmod +x build/index.js", diff --git a/src/index.ts b/src/index.ts index 03f8698..5ace70a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -41,7 +41,7 @@ async function createServer(directory: string, options: any = {}) { await fs.mkdir(directory, { recursive: true }); // Copy template files - const templateDir = path.join(__dirname, "../templates"); + const templateDir = path.join(__dirname, "../template"); const files = await fs.readdir(templateDir, { recursive: true }); for (const file of files) { diff --git a/templates/basic/.gitignore b/template/.gitignore similarity index 100% rename from templates/basic/.gitignore rename to template/.gitignore diff --git a/templates/basic/package.json.ejs b/template/package.json.ejs similarity index 100% rename from templates/basic/package.json.ejs rename to template/package.json.ejs diff --git a/templates/basic/src/index.ts.ejs b/template/src/index.ts.ejs similarity index 100% rename from templates/basic/src/index.ts.ejs rename to template/src/index.ts.ejs diff --git a/templates/basic/tsconfig.json b/template/tsconfig.json similarity index 100% rename from templates/basic/tsconfig.json rename to template/tsconfig.json