Skip to content

Commit

Permalink
Merge pull request #84
Browse files Browse the repository at this point in the history
* fix remix init
  • Loading branch information
rphlmr authored Apr 14, 2024
1 parent 4516560 commit e8638b2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions remix.init/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...`);

Check warning on line 19 in remix.init/index.js

View workflow job for this annotation

GitHub Actions / ⬣ ESLint

Unexpected console statement

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");
Expand Down Expand Up @@ -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([
Expand Down

0 comments on commit e8638b2

Please sign in to comment.