Skip to content

Commit f46245e

Browse files
committed
refactor: mark npm_import(dev) as deprecated
1 parent a089a8f commit f46245e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

docs/npm_import.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm/private/npm_import.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,11 @@ def npm_import(
12731273
12741274
dev: Whether this npm package is a dev dependency
12751275
1276+
DEPRECATED: this field is deprecated and will be removed in a future release.
1277+
1278+
A package should be marked as a dev dependency as part of the dependency declaration,
1279+
not as part of the package definition or import.
1280+
12761281
exclude_package_contents: List of glob patterns to exclude from the linked package.
12771282
12781283
This is useful for excluding files that are not needed in the linked package.

npm/private/npm_package_store_info.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ NpmPackageStoreInfo = provider(
1414
"package_store_directory": "the TreeArtifact of this npm package's package store location",
1515
"files": "depset of files that are part of the npm package",
1616
"transitive_files": "depset of the files that are part of the npm package and its transitive deps",
17-
"dev": "whether or not this npm package is a dev dependency",
17+
"dev": "DEPRECATED: whether or not this npm package is a dev dependency",
1818
},
1919
)

0 commit comments

Comments
 (0)