Paul Gschwendtner 4fee94a96c build: rename //:root_modules to //:node_modules.
This is necessary as `rules_js` requires this "common name" when dealing
with Yarn workspaces, linking first party dependencies automatically.

In the future, we may be able to send a PR to `rules_js` to support a
custom name somehow.
2025-01-15 19:20:40 +01:00

52 lines
1.0 KiB
Python

# Copyright Google Inc. All Rights Reserved.
#
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file at https://angular.dev/license
load("//tools:defaults2.bzl", "npm_package", "ts_project")
licenses(["notice"])
RUNTIME_ASSETS = glob(
include = [
"src/*.js",
"src/*.mjs",
],
) + [
"package.json",
]
ts_project(
name = "create",
srcs = glob([
"src/*.ts",
]),
data = RUNTIME_ASSETS,
module_name = "@angular/create",
deps = [
"//:node_modules/@types/node",
"//packages/angular/cli:angular-cli",
],
)
genrule(
name = "license",
srcs = ["//:LICENSE"],
outs = ["LICENSE"],
cmd = "cp $(execpath //:LICENSE) $@",
)
npm_package(
name = "pkg",
pkg_deps = [
"//packages/angular/cli:package.json",
],
tags = ["release-package"],
visibility = ["//visibility:public"],
deps = RUNTIME_ASSETS + [
":README.md",
":create_rjs",
":license",
],
)