Skip to content

Commit f21a665

Browse files
committed
test: create node_modules directory in PnP integration test
The Angular CLI requires the `node_modules` directory for ngcc to be present. With PnP this directory does not exist and we need to make sure it exists. Previously it worked without the explicit command because it went up the execroot, but the CLI made this stricter so that we now notice it until the fix/looser check is available: angular/angular-cli@5319428.
1 parent 561889e commit f21a665

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

integration/yarn-pnp-compat/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ node_integration_test(
1616
srcs = glob(["**/*"]),
1717
commands = [
1818
"yarn install --no-immutable",
19+
# TODO(devversion): Remove when https://github.com/angular/angular-cli/commit/5319428e14a7e364a58caa8ca936964cfc5503cf
20+
# is available.
21+
"mkdir node_modules",
1922
"yarn build",
2023
],
2124
environment = {

0 commit comments

Comments
 (0)