Skip to content

Commit

Permalink
fix: include package.json in npm_sources
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Sep 16, 2024
1 parent bf93e47 commit b05f0ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions npm/private/npm_package_store.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ deps of npm_package_store must be in the same package.""" % (ctx.label.package,
for npm_package_store_info in npm_package_store_infos:
transitive_files_depsets.append(npm_package_store_info.files)

for source in sources_depset.to_list():
if source.basename == "package.json":
files.append(source)
break

npm_sources = depset(files, transitive = [jsinfo.npm_sources for jsinfo in js_infos])
transitive_files_depset = depset(files, transitive = transitive_files_depsets)
files_depset = depset(files)
Expand Down

0 comments on commit b05f0ea

Please sign in to comment.