-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
370c66c
commit 73dd708
Showing
3 changed files
with
24 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,5 @@ | ||
/* 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'); | ||
rename(originalFile, renamedFile, (error) => { | ||
if (error) { | ||
console.error('ERROR:', error); | ||
} | ||
}); | ||
/* eslint-disable unicorn/prefer-module,unicorn/no-anonymous-default-export */ | ||
module.exports = async (...args) => { | ||
const {default: main} = await import('./index.mjs'); | ||
await main(...args); | ||
}; | ||
|
||
const main = () => { | ||
initializeEnvironment(); | ||
}; | ||
|
||
export default main; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* 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'); | ||
rename(originalFile, renamedFile, (error) => { | ||
if (error) { | ||
console.error('ERROR:', error); | ||
} | ||
}); | ||
}; | ||
|
||
const main = () => { | ||
initializeEnvironment(); | ||
}; | ||
|
||
export default main; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,5 @@ | |
"name": "remix.init", | ||
"private": true, | ||
"main": "index.js", | ||
"license": "MIT", | ||
"type": "module" | ||
"license": "MIT" | ||
} |