Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrachet committed Dec 1, 2020
1 parent 97b4b26 commit 9fb4667
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/create-gatsby/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Enquirer from "enquirer"
import cmses from "./cmses.json"
import styles from "./styles.json"
import features from "./features.json"
import { initStarter, getPackageManager, gitSetup } from "./init-starter"
import { initStarter, packageManager, gitSetup } from "./init-starter"
import { installPlugins } from "./install-plugins"
import c from "ansi-colors"
import path from "path"
Expand Down Expand Up @@ -312,7 +312,7 @@ ${c.bold(`Thanks! Here's what we'll now do:`)}

await gitSetup(data.project)

const pm = await getPackageManager()
const pm = await packageManager()
const runCommand = pm === `npm` ? `npm run` : `yarn`

reporter.info(
Expand Down
2 changes: 1 addition & 1 deletion packages/create-gatsby/src/init-starter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const kebabify = (str: string): string =>
.replace(/[^a-zA-Z]+/g, `-`)
.toLowerCase()

const packageManager = (npmConfigUserAgent?: string): PackageManager => {
export const packageManager = (npmConfigUserAgent?: string): PackageManager => {
const configStore = getConfigStore()
const actualPackageManager = configStore.get(packageManagerConfigKey)

Expand Down

0 comments on commit 9fb4667

Please sign in to comment.