From 88f7c7c7966db2138513e935dfa05b27cdb5976a Mon Sep 17 00:00:00 2001 From: Steven Sacks Date: Tue, 17 Sep 2024 15:44:55 +0900 Subject: [PATCH] fix: remix.init path --- remix.init/index.mjs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/remix.init/index.mjs b/remix.init/index.mjs index d9e1807..3100501 100644 --- a/remix.init/index.mjs +++ b/remix.init/index.mjs @@ -1,10 +1,15 @@ -import {copyFileSync} from 'node:fs'; +/* eslint-disable no-console */ +import {rename} from 'node:fs'; import path from 'node:path'; const initializeEnvironment = () => { const originalFile = path.resolve('.env.example'); const renamedFile = path.resolve('.env'); - copyFileSync(originalFile, renamedFile); + rename(originalFile, renamedFile, (error) => { + if (error) { + console.error('ERROR:', error); + } + }); }; const main = () => {