File tree 1 file changed +18
-7
lines changed
1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change 3
3
# Use of this source code is governed by an MIT-style license that can be
4
4
# found in the LICENSE file at https://angular.dev/license
5
5
6
- load ("//tools:defaults.bzl" , "pkg_npm" )
7
- load ("//tools:interop.bzl" , "ts_project" )
6
+ load ("//tools:defaults2.bzl" , "npm_package" , "ts_project" )
8
7
9
8
licenses (["notice" ])
10
9
10
+ RUNTIME_ASSETS = glob (
11
+ include = [
12
+ "src/*.js" ,
13
+ "src/*.mjs" ,
14
+ ],
15
+ ) + [
16
+ "package.json" ,
17
+ ]
18
+
11
19
ts_project (
12
20
name = "create" ,
13
- srcs = ["src/index.ts" ],
21
+ srcs = glob ([
22
+ "src/*.ts" ,
23
+ ]),
24
+ data = RUNTIME_ASSETS ,
14
25
module_name = "@angular/create" ,
15
26
deps = [
16
27
"//:root_modules/@types/node" ,
@@ -25,16 +36,16 @@ genrule(
25
36
cmd = "cp $(execpath //:LICENSE) $@" ,
26
37
)
27
38
28
- pkg_npm (
29
- name = "npm_package " ,
39
+ npm_package (
40
+ name = "pkg " ,
30
41
pkg_deps = [
31
42
"//packages/angular/cli:package.json" ,
32
43
],
33
44
tags = ["release-package" ],
34
45
visibility = ["//visibility:public" ],
35
- deps = [
46
+ deps = RUNTIME_ASSETS + [
36
47
":README.md" ,
37
- ":create " ,
48
+ ":create_rjs " ,
38
49
":license" ,
39
50
],
40
51
)
You can’t perform that action at this time.
0 commit comments