Skip to content

Commit

Permalink
fix(scaffold): config file is always generated at the project root (w…
Browse files Browse the repository at this point in the history
…ebpack#801)

* fix(scaffold): config file is always generated at the project root

config file is generated at the project root

* chore(scaffold): add package-lock for utils

add package-lock for utils as new dep was introduced

* chore(utils): fix ci

fix ci

* fix(scaffold): migrated to findup-sync to find the project root

migrated to use find-up sync to determine project root, removed additional packages

* chore(utils): added findup-sync package to utils package

added findup-sync to utils package

* chore(scaffold): do not pass process.cwd()

do not pass process.cwd()
  • Loading branch information
anshumanv authored and misterdev committed Apr 23, 2019
1 parent 0a2274e commit 6fcf344
Show file tree
Hide file tree
Showing 4 changed files with 316 additions and 42 deletions.
8 changes: 8 additions & 0 deletions packages/utils/find-root.ts
@@ -0,0 +1,8 @@
import * as findup from "findup-sync";
import * as path from "path";

export function findProjectRoot(): string {
const rootFilePath = findup(`package.json`);
const projectRoot = path.dirname(rootFilePath);
return projectRoot;
}

0 comments on commit 6fcf344

Please sign in to comment.