summaryrefslogtreecommitdiffstats
path: root/meta/classes/npm.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/npm.bbclass')
-rw-r--r--meta/classes/npm.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass
index b5db99d2b9..33ff5e3f45 100644
--- a/meta/classes/npm.bbclass
+++ b/meta/classes/npm.bbclass
@@ -1,6 +1,8 @@
1DEPENDS_prepend = "nodejs-native " 1DEPENDS_prepend = "nodejs-native "
2S = "${WORKDIR}/npmpkg" 2S = "${WORKDIR}/npmpkg"
3 3
4NPM_INSTALLDIR = "${D}${libdir}/node_modules/${PN}"
5
4npm_do_compile() { 6npm_do_compile() {
5 # changing the home directory to the working directory, the .npmrc will 7 # changing the home directory to the working directory, the .npmrc will
6 # be created in this directory 8 # be created in this directory
@@ -14,8 +16,8 @@ npm_do_compile() {
14} 16}
15 17
16npm_do_install() { 18npm_do_install() {
17 mkdir -p ${D}${libdir}/node_modules/${PN}/ 19 mkdir -p ${NPM_INSTALLDIR}/
18 cp -a ${S}/* ${D}${libdir}/node_modules/${PN}/ --no-preserve=ownership 20 cp -a ${S}/* ${NPM_INSTALLDIR}/ --no-preserve=ownership
19} 21}
20 22
21python populate_packages_prepend () { 23python populate_packages_prepend () {