You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fail("No package name specified to link to. Package name must either be specified explicitly via 'package' attribute or come from the 'src' 'NpmPackageInfo', typically a 'npm_package' target")
183
+
fail("No package name specified to link to. Package name must either be specified explicitly via 'package' attribute or come from the 'src' 'JsInfo|NpmPackageInfo', typically a 'js_library|npm_package' target")
184
184
ifnotversion:
185
-
fail("No package version specified to link to. Package version must either be specified explicitly via 'version' attribute or come from the 'src' 'NpmPackageInfo', typically a 'npm_package' target")
185
+
fail("No package version specified to link to. Package version must either be specified explicitly via 'version' attribute or come from the 'src' 'JsInfo|NpmPackageInfo', typically a 'js_library|npm_package' target")
Copy file name to clipboardExpand all lines: npm/private/npm_translate_lock.bzl
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -445,18 +445,20 @@ def npm_translate_lock(
445
445
446
446
Read more: [lifecycles](/docs/pnpm.md#lifecycles)
447
447
448
-
replace_packages: A dict of package names to npm_package targets to link instead of the sources specified in the pnpm lock file for the corresponding packages.
448
+
replace_packages: A dict of package names to targets to link instead of the sources specified in the pnpm lock file for the corresponding packages.
449
449
450
-
The injected npm_package targets may optionally contribute transitive npm package dependencies on top
450
+
Targets must produce `JsInfo` or `NpmPackageInfo` providers such as `js_library` or `npm_package` targets.
451
+
452
+
The injected package targets may optionally contribute transitive npm package dependencies on top
451
453
of the transitive dependencies specified in the pnpm lock file for their respective packages, however, these
452
454
transitive dependencies must not collide with pnpm lock specified transitive dependencies.
453
455
454
-
Any patches specified for the packages will be not applied to the injected npm_package targets. They
456
+
Any patches specified for the packages will be not applied to the injected package targets. They
455
457
will be applied, however, to the fetches sources for their respecitve packages so they can still be useful
456
458
for patching the fetched `package.json` files, which are used to determine the generated bin entries for packages.
457
459
458
460
NB: lifecycle hooks and custom_postinstall scripts, if implicitly or explicitly enabled, will be run on
459
-
the injected npm_package targets. These may be disabled explicitly using the `lifecycle_hooks` attribute.
461
+
the injected package targets. These may be disabled explicitly using the `lifecycle_hooks` attribute.
460
462
461
463
bins: Binary files to create in `node_modules/.bin` for packages in this lock file.
462
464
@@ -553,7 +555,7 @@ def npm_translate_lock(
553
555
554
556
use_pnpm: label of the pnpm entry point to use.
555
557
556
-
npm_package_target_name: The name of linked `npm_package`, `js_library` or `JsInfo` producing targets.
558
+
npm_package_target_name: The name of linked `js_library`, `npm_package` or `JsInfo` producing targets.
557
559
558
560
When targets are linked as pnpm workspace packages, the name of the target must align with this value.
0 commit comments