-
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(builtin): create symlink for build files present on node modules…
… installed with relative paths test(builtin): test setup attempt for support local linked packages chore(builtin): format fix chore(builtin): format fix chore(builtin): format fix chore(builtin): put back unintended changes test(builtin): correct test implementation feat(builtin): include warning log about not found build file chore(builtin): use specific workspace on local-module one for each package manager fix(builtin): only symlink package if it is inside the workspace chore(builtin): add note about corner case as suggested in the pr review docs(builtin): add docs for new behaviour on npm_install and yarn_install rules
- Loading branch information
Showing
16 changed files
with
199 additions
and
4 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 |
---|---|---|
|
@@ -126,6 +126,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" | ||
} |