From e8638b2f4cb7706b2d58e8a3c72795903350ffcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Moreau?= Date: Sun, 14 Apr 2024 11:55:28 +0200 Subject: [PATCH] Merge pull request #84 * fix remix init --- remix.init/index.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/remix.init/index.js b/remix.init/index.js index 028803a..bcf8500 100644 --- a/remix.init/index.js +++ b/remix.init/index.js @@ -15,13 +15,9 @@ function getRandomString(length) { return crypto.randomBytes(length).toString("hex"); } -async function main({ rootDirectory, packageManager, isTypeScript }) { +async function main({ rootDirectory, packageManager }) { console.log(`🚀 Making something cool with this template ...`); - if (!isTypeScript) { - throw new Error("😌 Sorry, this template only supports TypeScript"); - } - const README_PATH = path.join(rootDirectory, "README.md"); const FLY_TOML_PATH = path.join(rootDirectory, "fly.toml"); const EXAMPLE_ENV_PATH = path.join(rootDirectory, ".env.example"); @@ -78,7 +74,7 @@ async function main({ rootDirectory, packageManager, isTypeScript }) { ? dockerfile.replace( new RegExp(escapeRegExp("ADD package.json"), "g"), `ADD package.json ${lockfile}`, - ) + ) : dockerfile; await Promise.all([