mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-14 17:43:52 +08:00
build: use a more restrictive node modules glob
This commit is contained in:
parent
04d2fc6096
commit
80479bb85c
20
BUILD
20
BUILD
@ -15,6 +15,24 @@ exports_files([
|
||||
# @external_begin
|
||||
filegroup(
|
||||
name = "node_modules",
|
||||
srcs = glob(["node_modules/**/*"]),
|
||||
srcs = glob(
|
||||
# Only include files we might use, to reduce the file count and surface size of
|
||||
# filename problems.
|
||||
[
|
||||
"node_modules/**/*.js",
|
||||
"node_modules/**/*.json",
|
||||
"node_modules/**/*.d.ts",
|
||||
],
|
||||
exclude = [
|
||||
# e.g. node_modules/adm-zip/test/assets/attributes_test/New folder/hidden.txt
|
||||
"node_modules/**/test/**",
|
||||
# e.g. node_modules/xpath/docs/function resolvers.md
|
||||
"node_modules/**/docs/**",
|
||||
# e.g. node_modules/puppeteer/.local-chromium/mac-536395/chrome-mac/Chromium.app/Contents/Versions/66.0.3347.0/Chromium Framework.framework/Chromium Framework
|
||||
"node_modules/**/.*/**",
|
||||
# Ignore paths with spaces.
|
||||
"node_modules/**/* *",
|
||||
],
|
||||
) + glob(["node_modules/.bin/*"]),
|
||||
)
|
||||
# @external_end
|
||||
|
Loading…
x
Reference in New Issue
Block a user