Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Remix init #18

Merged
merged 1 commit into from
May 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading