]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
npm: replace 'npm pack' call by 'tar czf'
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
Thu, 19 May 2022 10:05:51 +0000 (12:05 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Jun 2022 11:53:55 +0000 (12:53 +0100)
commit68b480d64ffb6750699cc8fa00d2ac0bc6a2e58a
tree07114bb49cca25490aff10503a06941545d4252f
parenta5edae117d0d2a59fd3456ccbeeb6cd35dd1951f
npm: replace 'npm pack' call by 'tar czf'

'npm pack' is a maintainer tool which tries to execute 'prepare'
and similar scripts.  This fails usually in OE because it requires
completely installed 'node_modules'.

Earlier nodejs versions supported an undocumented 'ignore-scripts'
option.  This has been removed in nodejs 16.

We could patch 'package.json' and remove the unwanted scripts.  But
this might complicate local workflows (applying patches) and installed
packages will contain the modified 'package.json'.

Instead of, package it manually by 'tar czf'.  As a sideeffect,
'do_configure' is running much faster now.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/npm.bbclass