Skip to content

Commit aac65cf

Browse files
hexchainhfiguiere
authored andcommitted
node: Fix path-based local package detection
1 parent 54c010c commit aac65cf

File tree

1 file changed

+1
-1
lines changed
  • node/flatpak_node_generator/providers

1 file changed

+1
-1
lines changed

node/flatpak_node_generator/providers/npm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def _process_packages_v2(
110110
source: PackageSource
111111
package_json_path = lockfile.parent / install_path / 'package.json'
112112
if (
113-
'node_modules' not in package_json_path.parents
113+
'node_modules' not in install_path.split('/')
114114
and package_json_path.exists()
115115
):
116116
source = LocalSource(path=install_path)

0 commit comments

Comments
 (0)