diff options
Diffstat (limited to 'meta/classes/npm.bbclass')
-rw-r--r-- | meta/classes/npm.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass index 55c7c3e278..fce4c1146f 100644 --- a/meta/classes/npm.bbclass +++ b/meta/classes/npm.bbclass | |||
@@ -16,6 +16,10 @@ def npm_oe_arch_map(target_arch, d): | |||
16 | NPM_ARCH ?= "${@npm_oe_arch_map(d.getVar('TARGET_ARCH', True), d)}" | 16 | NPM_ARCH ?= "${@npm_oe_arch_map(d.getVar('TARGET_ARCH', True), d)}" |
17 | 17 | ||
18 | npm_do_compile() { | 18 | npm_do_compile() { |
19 | # Copy in any additionally fetched modules | ||
20 | if [ -d ${WORKDIR}/node_modules ] ; then | ||
21 | cp -a ${WORKDIR}/node_modules ${S}/ | ||
22 | fi | ||
19 | # changing the home directory to the working directory, the .npmrc will | 23 | # changing the home directory to the working directory, the .npmrc will |
20 | # be created in this directory | 24 | # be created in this directory |
21 | export HOME=${WORKDIR} | 25 | export HOME=${WORKDIR} |