Skip to content

Commit

Permalink
npm-install: do_npm_*(): cd to ${S} (#60)
Browse files Browse the repository at this point in the history
Change working directory to ${S} prior to running tasks from npm-install
class. This change is needed due to bitbake commit
67a7b8b021badc17d8fdf447c250e79d291e75f7.

Without this change do_npm_* functions are executed with ${TOPDIR}
as a rootdir. As a result they fail to find package.json.

Signed-off-by: Sergey Matyukevich <[email protected]>
  • Loading branch information
geomatsi authored and imyller committed Dec 21, 2016
1 parent 7d63ea2 commit 34c086b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/npm-install.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ NPM_INSTALL ?= ""
NPM_INSTALL_FLAGS ?= ""

do_npm_install() {
cd ${S}
oe_runnpm ${NPM_INSTALL_FLAGS} install ${NPM_INSTALL}
}

do_npm_shrinkwrap() {
cd ${S}
oe_runnpm shrinkwrap
}

do_npm_dedupe() {
cd ${S}
oe_runnpm dedupe
}

Expand Down

0 comments on commit 34c086b

Please sign in to comment.