diff --git a/packaging/flatpak/flatpak-builder-tools/flatpak_node_generator/providers/npm.py b/packaging/flatpak/flatpak-builder-tools/flatpak_node_generator/providers/npm.py index a60cb08e..08d14efd 100644 --- a/packaging/flatpak/flatpak-builder-tools/flatpak_node_generator/providers/npm.py +++ b/packaging/flatpak/flatpak-builder-tools/flatpak_node_generator/providers/npm.py @@ -110,7 +110,7 @@ def _process_packages_v2( source: PackageSource package_json_path = lockfile.parent / install_path / 'package.json' if ( - 'node_modules' not in package_json_path.parents + 'node_modules' not in package_json_path.parts[:-1] and package_json_path.exists() ): source = LocalSource(path=install_path)