From 76295f6b2f015fee00e50eb7ad1fc2c7aac84dd3 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Mon, 18 Nov 2024 13:28:59 +0000 Subject: [PATCH] Only one template for now --- package.json | 2 +- src/index.ts | 2 +- {templates/basic => template}/.gitignore | 0 {templates/basic => template}/package.json.ejs | 0 {templates/basic => template}/src/index.ts.ejs | 0 {templates/basic => template}/tsconfig.json | 0 6 files changed, 2 insertions(+), 2 deletions(-) rename {templates/basic => template}/.gitignore (100%) rename {templates/basic => template}/package.json.ejs (100%) rename {templates/basic => template}/src/index.ts.ejs (100%) rename {templates/basic => template}/tsconfig.json (100%) 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