From: "sh0127.shin" <[email protected]>

The hardcoded exclude path './node-modules' used a hyphen instead of
an underscore, which is the standard npm directory name. As a result,
the node_modules directory was never actually excluded during tar
packing.

Fix the typo by changing './node-modules' to './node_modules'.

Signed-off-by: sh0127.shin <[email protected]>
---
 meta/classes-recipe/npm.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes-recipe/npm.bbclass b/meta/classes-recipe/npm.bbclass
index b1183a7ae3..f465ff10d7 100644
--- a/meta/classes-recipe/npm.bbclass
+++ b/meta/classes-recipe/npm.bbclass
@@ -82,7 +82,7 @@ def npm_pack(env, srcdir, workdir):
     # TODO: real 'npm pack' does not include directories while 'tar'
     # does.  But this does not seem to matter...
     subprocess.run(['tar', 'czf', tarball,
-                    '--exclude', './node-modules',
+                    '--exclude', './node_modules',
                     '--exclude-vcs',
                     '--transform', r's,^\./,package/,',
                     '--mtime', '1985-10-26T08:15:00.000Z',
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#243120): 
https://lists.openembedded.org/g/openembedded-core/message/243120
Mute This Topic: https://lists.openembedded.org/mt/120682214/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to