From 21078fe28c3b992fe6e09f2fb62d7338dbcb1c7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Moreau?= Date: Sun, 19 May 2024 17:37:12 +0200 Subject: [PATCH] Merge pull request #18 * Fix #17 --- 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 950a37c..cc58c79 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 FLY_TOML_PATH = path.join(rootDirectory, "fly.toml"); const EXAMPLE_ENV_PATH = path.join(rootDirectory, ".env.example"); const ENV_PATH = path.join(rootDirectory, ".env"); @@ -70,7 +66,7 @@ async function main({ rootDirectory, packageManager, isTypeScript }) { ? dockerfile.replace( new RegExp(escapeRegExp("ADD package.json"), "g"), `ADD package.json ${lockfile}`, - ) + ) : dockerfile; await Promise.all([