diff mbox series

[1/2] npm.bbclass: fix typo in npm_pack tar exclude path

Message ID 20260810093947.2289126-1-sh0127.shin@lge.com
State New
Headers show
Series [1/2] npm.bbclass: fix typo in npm_pack tar exclude path | expand

Commit Message

sh0127.shin@lge.com Aug. 10, 2026, 9:39 a.m. UTC
From: "sh0127.shin" <sh0127.shin@lge.com>

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 <sh0127.shin@lge.com>
---
 meta/classes-recipe/npm.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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',