Skip to content

Commit

Permalink
Corrected project name for initial .env file generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hanna committed Aug 3, 2024
1 parent 934f893 commit ce0a272
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/getEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import dotenv from 'dotenv';

import packageJson from '../package.json' with { type: 'json' };

const defaultEnv = `PROJECT_NAME = "${packageJson.name}"
const projectName = packageJson.name.replace(/^@.+\//, '');

const defaultEnv = `PROJECT_NAME = "${projectName}"
MODE = "development"
PORT = "8080"`;

Expand Down

0 comments on commit ce0a272

Please sign in to comment.