]> code.ossystems Code Review - openembedded-core.git/commit
npm: get npm package name from npm pack
authorJean-Marie LEMETAYER <jean-marie.lemetayer@savoirfairelinux.com>
Fri, 17 May 2019 15:14:08 +0000 (17:14 +0200)
committerArmin Kuster <akuster808@gmail.com>
Sun, 2 Jun 2019 17:25:22 +0000 (10:25 -0700)
commit86c9f25d4535663606326e53c33a8927f79e8f52
tree6f3eec322c044a0e869ab1935e7c0bd1c2c00057
parent3301846b009818f3d2150ae045dd6878f1f8c586
npm: get npm package name from npm pack

Fixes [YOCTO #12534]

When using npm packages with exotic names, like "JSONSelect" (with
uppercase) or "@angular/cli" (with at sign and slash), there are three
different names:
  - the recipe name ("jsonselect" or "angular-cli")
  - the npm module name ("JSONSelect" or "@angular/cli")
  - the npm pack name ("JSONSelect" or "angular-cli")

The commit fa9c077068a2acea04389fa2b44eb2e93548fce2 allow to have
different recipe name and npm module name by setting the NPMPN variable.

This commit allows to have yet another npm pack name. The pack filename
is now dynamically retrieved from the 'npm pack' command.

Signed-off-by: Jean-Marie LEMETAYER <jean-marie.lemetayer@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/npm.bbclass