Skip to content

Commit a5d7904

Browse files
josephperrottclydin
authored andcommitted
build: add tests/ as a pnpm workspace to allow for npm package mappings for usage within tests BUILD files
1 parent 5358aa4 commit a5d7904

File tree

7 files changed

+28
-3
lines changed

7 files changed

+28
-3
lines changed

.aspect/rules/external_repository_action_cache/npm_translate_lock_MzA5NzUwNzMx

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ packages/angular_devkit/schematics/package.json=673943597
1717
packages/angular_devkit/schematics_cli/package.json=-2026655035
1818
packages/ngtools/webpack/package.json=605871936
1919
packages/schematics/angular/package.json=251715148
20-
pnpm-lock.yaml=610919784
21-
pnpm-workspace.yaml=-1056556036
20+
pnpm-lock.yaml=1642270121
21+
pnpm-workspace.yaml=-1264044456
22+
tests/package.json=700948366
2223
yarn.lock=1260513060

.bazelignore

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ packages/angular_devkit/schematics_cli/node_modules
1616
packages/ngtools/webpack/node_modules
1717
packages/schematics/angular/node_modules
1818
modules/testing/builder/node_modules
19+
tests/node_modules

WORKSPACE

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ npm_translate_lock(
187187
"//packages/angular_devkit/schematics_cli:package.json",
188188
"//packages/ngtools/webpack:package.json",
189189
"//packages/schematics/angular:package.json",
190+
"//tests:package.json",
190191
],
191192
lifecycle_hooks_envs = {
192193
# TODO: Standardize browser management for `rules_js`

pnpm-lock.yaml

+6-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ packages:
1414
- packages/schematics/angular
1515
- packages/ngtools/webpack
1616
- modules/testing/builder
17+
- tests

tests/BUILD.bazel

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
load("@npm2//:defs.bzl", "npm_link_all_packages")
2+
3+
# Copyright Google Inc. All Rights Reserved.
4+
#
5+
# Use of this source code is governed by an MIT-style license that can be
6+
# found in the LICENSE file at https://angular.dev/license
7+
package(default_visibility = ["//visibility:public"])
8+
9+
licenses(["notice"])
10+
11+
npm_link_all_packages()

tests/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"devDependencies": {
3+
"@angular-devkit/schematics": "workspace:*"
4+
}
5+
}

0 commit comments

Comments
 (0)