Skip to content

Commit

Permalink
Merge pull request #18
Browse files Browse the repository at this point in the history
* Fix #17
  • Loading branch information
rphlmr authored May 19, 2024
1 parent 7be785c commit 21078fe
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 ...`);

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

0 comments on commit 21078fe

Please sign in to comment.