-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create symlink for build files present on node modules installe…
…d with relative paths (#2330)
- Loading branch information
Showing
16 changed files
with
203 additions
and
6 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
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
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 |
---|---|---|
|
@@ -133,6 +133,7 @@ sh_test( | |
"@fine_grained_deps_%s//jasmine" % pkgmgr, | ||
"@fine_grained_deps_%s//jasmine-core" % pkgmgr, | ||
"@fine_grained_deps_%s//ajv" % pkgmgr, | ||
"@fine_grained_deps_%s//local-module" % pkgmgr, | ||
"@fine_grained_deps_%s//typescript" % pkgmgr, | ||
"@fine_grained_deps_%s//rxjs" % pkgmgr, | ||
# Note, test-b depends on [email protected] which should be | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -751,6 +751,10 @@ [email protected]: | |
optionalDependencies: | ||
graceful-fs "^4.1.9" | ||
|
||
"local-module@link:tools/npm_packages/local_module/yarn": | ||
version "0.0.0" | ||
uid "" | ||
|
||
lodash.debounce@^4.0.8: | ||
version "4.0.8" | ||
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" | ||
|
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,35 @@ | ||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
SRCS = [ | ||
"index.js", | ||
"package.json", | ||
] | ||
|
||
filegroup( | ||
name = "local-module__files", | ||
srcs = ["@fine_grained_deps_npm//:node_modules/local-module/%s" % file for file in SRCS], | ||
) | ||
|
||
js_library( | ||
name = "local-module", | ||
srcs = [":local-module__files"], | ||
deps = [ | ||
":local-module__contents", | ||
], | ||
) | ||
|
||
js_library( | ||
name = "local-module__contents", | ||
srcs = [ | ||
":local-module__files", | ||
":local-module__nested_node_modules", | ||
], | ||
visibility = ["//:__subpackages__"], | ||
) | ||
|
||
filegroup( | ||
name = "local-module__nested_node_modules", | ||
visibility = ["//:__subpackages__"], | ||
) |
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 @@ | ||
module.exports = 'local_module'; |
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,4 @@ | ||
{ | ||
"version": "0.0.1", | ||
"main": "index.js" | ||
} |
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,35 @@ | ||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
SRCS = [ | ||
"index.js", | ||
"package.json", | ||
] | ||
|
||
filegroup( | ||
name = "local-module__files", | ||
srcs = ["@fine_grained_deps_yarn//:node_modules/local-module/%s" % file for file in SRCS], | ||
) | ||
|
||
js_library( | ||
name = "local-module", | ||
srcs = [":local-module__files"], | ||
deps = [ | ||
":local-module__contents", | ||
], | ||
) | ||
|
||
js_library( | ||
name = "local-module__contents", | ||
srcs = [ | ||
":local-module__files", | ||
":local-module__nested_node_modules", | ||
], | ||
visibility = ["//:__subpackages__"], | ||
) | ||
|
||
filegroup( | ||
name = "local-module__nested_node_modules", | ||
visibility = ["//:__subpackages__"], | ||
) |
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 @@ | ||
module.exports = 'local_module'; |
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,4 @@ | ||
{ | ||
"version": "0.0.1", | ||
"main": "index.js" | ||
} |