Skip to content

Commit

Permalink
fix: remix.init path
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensacks committed Sep 17, 2024
1 parent fb915ee commit 88f7c7c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions remix.init/index.mjs
Original file line number Diff line number Diff line change
@@ -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 = () => {
Expand Down

0 comments on commit 88f7c7c

Please sign in to comment.