-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88361df
commit 98ab7d2
Showing
23 changed files
with
254 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7.0.0rc6 | ||
7.0.2 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7.0.2 |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
e2e/bazel_6_litmus/MODULE.bazel → e2e/bazel_7_litmus/MODULE.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module( | ||
name = "bazel_6_litmus", | ||
name = "bazel_7_litmus", | ||
version = "0.0.0", | ||
compatibility_level = 0, | ||
) | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7.0.2 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
""" | ||
""" | ||
|
||
visibility(["//lib/private"]) | ||
|
||
def _impl(rctx): | ||
pass | ||
# 1. Resolve `package.json` and `yarn.lock` paths. | ||
|
||
# 2. Process in their original location using API from forked Yarn. | ||
|
||
# 3. Using data from `hoisted` API, generate `BUILD.bazel` file. | ||
# Required targets to match existing API follow. | ||
# - `:node_modules`, catch-all target that includes all dependencies. | ||
# Rule type: `js_library`. | ||
# - `:node_modules/{package_name}`, an alias that allows a subset of outputs to be referenced. | ||
# Rule type: NA, source files. | ||
# - `[{package_scope}/]{package_name}:{package_name}`, normal way packages are referenced | ||
# Rule type: `js_library`. | ||
# - `[{package_scope}/]{package_name}:{package_name}__contents`, implementation detail. | ||
# Rule type: `js_library`. | ||
# - `[{package_scope}/]{package_name}:{package_name}__files`, implementation detail. | ||
# Rule type: `filegroup`. | ||
# - `[{package_scope}/]{package_name}:{package_name}__typings`, implementation detail. | ||
# Rule type: `alias`. | ||
# - `[{package_scope}/]{package_name}:{package_name}__umd`, implementation detail, unused. | ||
# Rule type: `npm_umd_bundle`. | ||
# - `[{package_scope}/]{package_name}:{package_name}__umd_directory_file_path`, implementation detail, unused. | ||
# Rule type: `directory_file_path`. | ||
|
||
yarn_install_via_action = repository_rule( | ||
implementation = _impl, | ||
attrs = { | ||
"package_json": attr.label( | ||
mandatory = True, | ||
allow_single_file = True, | ||
), | ||
"yarn_lock": attr.label( | ||
mandatory = True, | ||
allow_single_file = True, | ||
), | ||
"host_node_bin": attr.label( | ||
mandatory = True, | ||
allow_single_file = True, | ||
), | ||
}, | ||
doc = """ | ||
Parses `package.json` and `yarn.lock`, extracting data required for the `yarn_install` rule. | ||
The result is similar to the `yarn_install` repository rule when operating in directory mode. | ||
""", | ||
) |
Oops, something went wrong.