diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/npm.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass index a69bedbb28..898a54eb50 100644 --- a/meta/classes/npm.bbclass +++ b/meta/classes/npm.bbclass | |||
@@ -31,7 +31,7 @@ npm_do_compile() { | |||
31 | fi | 31 | fi |
32 | npm set cache ${WORKDIR}/npm_cache | 32 | npm set cache ${WORKDIR}/npm_cache |
33 | # clear cache before every build | 33 | # clear cache before every build |
34 | npm cache clear | 34 | npm cache clear --force |
35 | # Install pkg into ${S} without going to the registry | 35 | # Install pkg into ${S} without going to the registry |
36 | if [ "${NPM_INSTALL_DEV}" = "1" ]; then | 36 | if [ "${NPM_INSTALL_DEV}" = "1" ]; then |
37 | npm --arch=${NPM_ARCH} --target_arch=${NPM_ARCH} --no-registry install | 37 | npm --arch=${NPM_ARCH} --target_arch=${NPM_ARCH} --no-registry install |
@@ -45,7 +45,8 @@ npm_do_install() { | |||
45 | # be created in this directory | 45 | # be created in this directory |
46 | export HOME=${WORKDIR} | 46 | export HOME=${WORKDIR} |
47 | mkdir -p ${NPM_INSTALLDIR}/ | 47 | mkdir -p ${NPM_INSTALLDIR}/ |
48 | npm install --prefix ${D}${prefix} -g --arch=${NPM_ARCH} --target_arch=${NPM_ARCH} --production --no-registry | 48 | npm pack . |
49 | npm install --prefix ${D}${prefix} -g --arch=${NPM_ARCH} --target_arch=${NPM_ARCH} --production --no-registry ${PN}-${PV}.tgz | ||
49 | if [ -d ${D}${prefix}/etc ] ; then | 50 | if [ -d ${D}${prefix}/etc ] ; then |
50 | # This will be empty | 51 | # This will be empty |
51 | rmdir ${D}${prefix}/etc | 52 | rmdir ${D}${prefix}/etc |