Skip to content

Commit c731a83

Browse files
committed
fix: always run {p}npm|yarn i in development mode
1 parent 6af0f4e commit c731a83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/prompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { getUserPkgManager } from "./utils/getUserPkgManager"
55

66
const skipIfCheviotWasChosen = (typeIfNotMerino: PromptType) => (_: unknown, preferences: Record<string, string>) => preferences.setStack === "cheviot" ? null : typeIfNotMerino
77

8-
const PROJECT_NAME_NOUNS = ["app", "project", "endeavour", "undertaking", "enterprise", "venture", "experiment", "effort", "operation", "affair", "pursuit", "struggle", "adventure", "thing"]
8+
const PROJECT_NAME_NOUNS = ["app", "project", "endeavour", "undertaking", "enterprise", "venture", "experiment", "effort", "operation", "affair", "pursuit", "struggle", "adventure", "thing", "opportunity"]
99
const getRandomProjectNoun = () => PROJECT_NAME_NOUNS[Math.floor((Math.random() * PROJECT_NAME_NOUNS.length))]
1010

1111
const PROMPT_QUESTIONS: PromptObject[] = [

src/steps/5.npmInstall.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { getUserPkgManager } from "../utils/getUserPkgManager"
22
import { execa } from "execa"
33

4-
export default (templateDir: string) => execa(getUserPkgManager(), ["install"], { cwd: templateDir })
4+
export default (templateDir: string) => execa(getUserPkgManager(), ["install"], { cwd: templateDir, env: { NODE_ENV: "development" } })

0 commit comments

Comments
 (0)