@rnx-kit/cli 0.16.6 → 0.16.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Change Log - @rnx-kit/cli
2
2
 
3
+ ## 0.16.8
4
+
5
+ ### Patch Changes
6
+
7
+ - f1dfcf6b: Inline helper functions
8
+ - Updated dependencies [f1dfcf6b]
9
+ - Updated dependencies [f1dfcf6b]
10
+ - Updated dependencies [f1dfcf6b]
11
+ - @rnx-kit/metro-service@3.0.4
12
+ - @rnx-kit/tools-language@2.0.0
13
+ - @rnx-kit/tools-node@2.0.0
14
+ - @rnx-kit/align-deps@2.2.2
15
+ - @rnx-kit/config@0.6.2
16
+ - @rnx-kit/metro-plugin-cyclic-dependencies-detector@1.1.1
17
+ - @rnx-kit/metro-plugin-duplicates-checker@2.1.1
18
+ - @rnx-kit/metro-plugin-typescript@0.4.1
19
+ - @rnx-kit/metro-serializer-esbuild@0.1.22
20
+ - @rnx-kit/third-party-notices@1.3.3
21
+ - @rnx-kit/tools-react-native@1.3.1
22
+
23
+ ## 0.16.7
24
+
25
+ ### Patch Changes
26
+
27
+ - a98b0421: Declare support for Jest 29
28
+
3
29
  ## 0.16.6
4
30
 
5
31
  ### Patch Changes
package/README.md CHANGED
@@ -1,24 +1,10 @@
1
- <!--remove-block start-->
2
-
3
1
  # @rnx-kit/cli
4
2
 
5
3
  [![Build](https://github.com/microsoft/rnx-kit/actions/workflows/build.yml/badge.svg)](https://github.com/microsoft/rnx-kit/actions/workflows/build.yml)
6
4
  [![npm version](https://img.shields.io/npm/v/@rnx-kit/cli)](https://www.npmjs.com/package/@rnx-kit/cli)
7
5
 
8
- <!--remove-block end-->
9
-
10
6
  Command-line interface for working with packages in your repo.
11
7
 
12
- <!--remove-block start-->
13
-
14
- - [Bundle a package](#bundle-a-package)
15
- - [Start a bundle server](#start-a-bundle-server)
16
- - [Manage dependencies](#manage-dependencies)
17
- - [Generate a 3rd-party notice for a package](#generate-a-third%2dparty-notice-for-a-package)
18
- - [Clean a React Native project](#clean-a-react-native-project)
19
-
20
- <!--remove-block end-->
21
-
22
8
  ## Bundle a Package
23
9
 
24
10
  Bundle a package using [Metro](https://facebook.github.io/metro). The bundling
@@ -1,161 +1,161 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1681220387800" clover="3.2.0">
3
- <project timestamp="1681220387800" name="All files">
4
- <metrics statements="246" coveredstatements="146" conditionals="162" coveredconditionals="88" methods="30" coveredmethods="24" elements="438" coveredelements="258" complexity="0" loc="246" ncloc="246" packages="2" files="6" classes="6"/>
2
+ <coverage generated="1682078451926" clover="3.2.0">
3
+ <project timestamp="1682078451926" name="All files">
4
+ <metrics statements="249" coveredstatements="149" conditionals="166" coveredconditionals="90" methods="31" coveredmethods="25" elements="446" coveredelements="264" complexity="0" loc="249" ncloc="249" packages="2" files="6" classes="6"/>
5
5
  <package name="src">
6
- <metrics statements="218" coveredstatements="118" conditionals="139" coveredconditionals="66" methods="23" coveredmethods="17"/>
6
+ <metrics statements="218" coveredstatements="118" conditionals="143" coveredconditionals="70" methods="23" coveredmethods="17"/>
7
7
  <file name="copy-assets.ts" path="/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/copy-assets.ts">
8
- <metrics statements="150" coveredstatements="81" conditionals="97" coveredconditionals="45" methods="17" coveredmethods="13"/>
9
- <line num="61" count="2" type="stmt"/>
10
- <line num="71" count="0" type="cond" truecount="0" falsecount="2"/>
8
+ <metrics statements="150" coveredstatements="81" conditionals="101" coveredconditionals="49" methods="17" coveredmethods="13"/>
9
+ <line num="60" count="2" type="stmt"/>
10
+ <line num="70" count="0" type="cond" truecount="0" falsecount="2"/>
11
+ <line num="71" count="0" type="stmt"/>
11
12
  <line num="72" count="0" type="stmt"/>
12
- <line num="73" count="0" type="stmt"/>
13
- <line num="78" count="4" type="cond" truecount="2" falsecount="0"/>
14
- <line num="79" count="3" type="stmt"/>
15
- <line num="81" count="1" type="cond" truecount="1" falsecount="1"/>
16
- <line num="82" count="0" type="stmt"/>
17
- <line num="84" count="1" type="stmt"/>
18
- <line num="88" count="4" type="stmt"/>
19
- <line num="94" count="0" type="cond" truecount="0" falsecount="3"/>
20
- <line num="98" count="9" type="stmt"/>
21
- <line num="99" count="9" type="cond" truecount="2" falsecount="0"/>
22
- <line num="100" count="1" type="stmt"/>
13
+ <line num="77" count="4" type="cond" truecount="2" falsecount="0"/>
14
+ <line num="78" count="3" type="stmt"/>
15
+ <line num="80" count="1" type="cond" truecount="1" falsecount="1"/>
16
+ <line num="81" count="0" type="stmt"/>
17
+ <line num="83" count="1" type="stmt"/>
18
+ <line num="87" count="4" type="stmt"/>
19
+ <line num="93" count="0" type="cond" truecount="0" falsecount="3"/>
20
+ <line num="97" count="9" type="stmt"/>
21
+ <line num="98" count="9" type="cond" truecount="2" falsecount="0"/>
22
+ <line num="99" count="1" type="stmt"/>
23
+ <line num="102" count="8" type="stmt"/>
23
24
  <line num="103" count="8" type="stmt"/>
24
- <line num="104" count="8" type="stmt"/>
25
- <line num="112" count="5" type="stmt"/>
26
- <line num="113" count="5" type="cond" truecount="2" falsecount="0"/>
27
- <line num="114" count="1" type="stmt"/>
25
+ <line num="111" count="5" type="stmt"/>
26
+ <line num="112" count="5" type="cond" truecount="2" falsecount="0"/>
27
+ <line num="113" count="1" type="stmt"/>
28
+ <line num="116" count="4" type="cond" truecount="2" falsecount="0"/>
28
29
  <line num="117" count="4" type="cond" truecount="2" falsecount="0"/>
29
- <line num="118" count="4" type="cond" truecount="2" falsecount="0"/>
30
- <line num="120" count="4" type="cond" truecount="1" falsecount="2"/>
31
- <line num="122" count="0" type="stmt"/>
32
- <line num="135" count="0" type="stmt"/>
30
+ <line num="119" count="4" type="cond" truecount="1" falsecount="2"/>
31
+ <line num="121" count="0" type="stmt"/>
32
+ <line num="134" count="0" type="stmt"/>
33
+ <line num="147" count="4" type="stmt"/>
33
34
  <line num="148" count="4" type="stmt"/>
34
- <line num="149" count="4" type="stmt"/>
35
- <line num="175" count="3" type="stmt"/>
36
- <line num="176" count="3" type="cond" truecount="1" falsecount="1"/>
37
- <line num="177" count="0" type="cond" truecount="0" falsecount="2"/>
38
- <line num="186" count="7" type="cond" truecount="2" falsecount="0"/>
39
- <line num="187" count="1" type="stmt"/>
35
+ <line num="174" count="3" type="stmt"/>
36
+ <line num="175" count="3" type="cond" truecount="1" falsecount="1"/>
37
+ <line num="176" count="0" type="cond" truecount="0" falsecount="2"/>
38
+ <line num="185" count="7" type="cond" truecount="2" falsecount="0"/>
39
+ <line num="186" count="1" type="stmt"/>
40
+ <line num="189" count="6" type="stmt"/>
40
41
  <line num="190" count="6" type="stmt"/>
41
- <line num="191" count="6" type="stmt"/>
42
- <line num="194" count="6" type="cond" truecount="2" falsecount="0"/>
42
+ <line num="193" count="6" type="cond" truecount="2" falsecount="0"/>
43
+ <line num="194" count="1" type="stmt"/>
43
44
  <line num="195" count="1" type="stmt"/>
44
- <line num="196" count="1" type="stmt"/>
45
- <line num="199" count="5" type="stmt"/>
46
- <line num="204" count="4" type="cond" truecount="4" falsecount="0"/>
45
+ <line num="198" count="5" type="stmt"/>
46
+ <line num="203" count="4" type="cond" truecount="4" falsecount="0"/>
47
+ <line num="204" count="1" type="stmt"/>
47
48
  <line num="205" count="1" type="stmt"/>
48
- <line num="206" count="1" type="stmt"/>
49
+ <line num="208" count="3" type="stmt"/>
49
50
  <line num="209" count="3" type="stmt"/>
50
- <line num="210" count="3" type="stmt"/>
51
+ <line num="216" count="3" type="stmt"/>
51
52
  <line num="217" count="3" type="stmt"/>
52
- <line num="218" count="3" type="stmt"/>
53
- <line num="220" count="3" type="stmt"/>
53
+ <line num="219" count="3" type="stmt"/>
54
+ <line num="221" count="3" type="stmt"/>
54
55
  <line num="222" count="3" type="stmt"/>
55
- <line num="223" count="3" type="stmt"/>
56
- <line num="225" count="3" type="stmt"/>
57
- <line num="226" count="3" type="cond" truecount="2" falsecount="0"/>
58
- <line num="227" count="1" type="cond" truecount="1" falsecount="1"/>
56
+ <line num="224" count="3" type="stmt"/>
57
+ <line num="225" count="3" type="cond" truecount="2" falsecount="0"/>
58
+ <line num="226" count="1" type="cond" truecount="1" falsecount="1"/>
59
+ <line num="227" count="0" type="stmt"/>
59
60
  <line num="228" count="0" type="stmt"/>
60
- <line num="229" count="0" type="stmt"/>
61
+ <line num="233" count="0" type="cond" truecount="0" falsecount="2"/>
61
62
  <line num="234" count="0" type="cond" truecount="0" falsecount="2"/>
62
- <line num="235" count="0" type="cond" truecount="0" falsecount="2"/>
63
+ <line num="235" count="0" type="stmt"/>
63
64
  <line num="236" count="0" type="stmt"/>
64
- <line num="237" count="0" type="stmt"/>
65
- <line num="238" count="0" type="cond" truecount="0" falsecount="2"/>
66
- <line num="239" count="0" type="stmt"/>
67
- <line num="246" count="1" type="stmt"/>
68
- <line num="248" count="2" type="stmt"/>
69
- <line num="249" count="2" type="cond" truecount="1" falsecount="1"/>
70
- <line num="250" count="0" type="stmt"/>
71
- <line num="253" count="2" type="stmt"/>
72
- <line num="261" count="2" type="cond" truecount="2" falsecount="0"/>
73
- <line num="263" count="2" type="cond" truecount="2" falsecount="0"/>
74
- <line num="266" count="2" type="cond" truecount="2" falsecount="0"/>
75
- <line num="269" count="2" type="cond" truecount="2" falsecount="0"/>
76
- <line num="271" count="2" type="stmt"/>
77
- <line num="276" count="2" type="stmt"/>
78
- <line num="308" count="2" type="stmt"/>
79
- <line num="310" count="2" type="stmt"/>
65
+ <line num="237" count="0" type="cond" truecount="0" falsecount="2"/>
66
+ <line num="238" count="0" type="stmt"/>
67
+ <line num="245" count="1" type="stmt"/>
68
+ <line num="247" count="2" type="stmt"/>
69
+ <line num="248" count="2" type="cond" truecount="1" falsecount="1"/>
70
+ <line num="249" count="0" type="stmt"/>
71
+ <line num="252" count="2" type="stmt"/>
72
+ <line num="260" count="2" type="cond" truecount="2" falsecount="0"/>
73
+ <line num="262" count="2" type="cond" truecount="2" falsecount="0"/>
74
+ <line num="265" count="2" type="cond" truecount="2" falsecount="0"/>
75
+ <line num="268" count="2" type="cond" truecount="2" falsecount="0"/>
76
+ <line num="270" count="2" type="stmt"/>
77
+ <line num="275" count="2" type="stmt"/>
78
+ <line num="307" count="2" type="stmt"/>
79
+ <line num="309" count="2" type="stmt"/>
80
+ <line num="317" count="2" type="stmt"/>
80
81
  <line num="318" count="2" type="stmt"/>
81
82
  <line num="319" count="2" type="stmt"/>
82
- <line num="320" count="2" type="stmt"/>
83
- <line num="324" count="2" type="stmt"/>
84
- <line num="327" count="2" type="stmt"/>
85
- <line num="330" count="3" type="stmt"/>
86
- <line num="334" count="10" type="cond" truecount="2" falsecount="0"/>
87
- <line num="335" count="8" type="stmt"/>
83
+ <line num="323" count="2" type="stmt"/>
84
+ <line num="326" count="2" type="stmt"/>
85
+ <line num="329" count="3" type="stmt"/>
86
+ <line num="333" count="10" type="cond" truecount="4" falsecount="0"/>
87
+ <line num="334" count="8" type="stmt"/>
88
+ <line num="337" count="2" type="stmt"/>
88
89
  <line num="338" count="2" type="stmt"/>
89
- <line num="339" count="2" type="stmt"/>
90
+ <line num="340" count="2" type="stmt"/>
90
91
  <line num="341" count="2" type="stmt"/>
91
- <line num="342" count="2" type="stmt"/>
92
- <line num="351" count="4" type="cond" truecount="2" falsecount="0"/>
93
- <line num="352" count="3" type="stmt"/>
92
+ <line num="350" count="4" type="cond" truecount="4" falsecount="0"/>
93
+ <line num="351" count="3" type="stmt"/>
94
+ <line num="354" count="1" type="stmt"/>
94
95
  <line num="355" count="1" type="stmt"/>
95
- <line num="356" count="1" type="stmt"/>
96
+ <line num="357" count="1" type="stmt"/>
96
97
  <line num="358" count="1" type="stmt"/>
97
- <line num="359" count="1" type="stmt"/>
98
- <line num="369" count="5" type="stmt"/>
99
- <line num="374" count="5" type="cond" truecount="2" falsecount="0"/>
100
- <line num="375" count="4" type="stmt"/>
101
- <line num="378" count="5" type="stmt"/>
98
+ <line num="368" count="5" type="stmt"/>
99
+ <line num="373" count="5" type="cond" truecount="2" falsecount="0"/>
100
+ <line num="374" count="4" type="stmt"/>
101
+ <line num="377" count="5" type="stmt"/>
102
+ <line num="384" count="1" type="stmt"/>
102
103
  <line num="385" count="1" type="stmt"/>
103
- <line num="386" count="1" type="stmt"/>
104
- <line num="387" count="1" type="cond" truecount="1" falsecount="1"/>
105
- <line num="388" count="1" type="stmt"/>
104
+ <line num="386" count="1" type="cond" truecount="1" falsecount="1"/>
105
+ <line num="387" count="1" type="stmt"/>
106
+ <line num="390" count="0" type="stmt"/>
106
107
  <line num="391" count="0" type="stmt"/>
107
- <line num="392" count="0" type="stmt"/>
108
+ <line num="393" count="0" type="stmt"/>
108
109
  <line num="394" count="0" type="stmt"/>
109
110
  <line num="395" count="0" type="stmt"/>
110
- <line num="396" count="0" type="stmt"/>
111
- <line num="399" count="0" type="stmt"/>
112
- <line num="400" count="0" type="cond" truecount="0" falsecount="2"/>
113
- <line num="401" count="0" type="stmt"/>
114
- <line num="402" count="0" type="cond" truecount="0" falsecount="2"/>
115
- <line num="403" count="0" type="stmt"/>
116
- <line num="407" count="0" type="stmt"/>
117
- <line num="412" count="0" type="stmt"/>
118
- <line num="413" count="0" type="cond" truecount="0" falsecount="2"/>
111
+ <line num="398" count="0" type="stmt"/>
112
+ <line num="399" count="0" type="cond" truecount="0" falsecount="2"/>
113
+ <line num="400" count="0" type="stmt"/>
114
+ <line num="401" count="0" type="cond" truecount="0" falsecount="2"/>
115
+ <line num="402" count="0" type="stmt"/>
116
+ <line num="406" count="0" type="stmt"/>
117
+ <line num="411" count="0" type="stmt"/>
118
+ <line num="412" count="0" type="cond" truecount="0" falsecount="2"/>
119
+ <line num="413" count="0" type="stmt"/>
119
120
  <line num="414" count="0" type="stmt"/>
120
121
  <line num="415" count="0" type="stmt"/>
121
- <line num="416" count="0" type="stmt"/>
122
- <line num="417" count="0" type="cond" truecount="0" falsecount="4"/>
123
- <line num="418" count="0" type="stmt"/>
124
- <line num="423" count="0" type="stmt"/>
125
- <line num="480" count="0" type="cond" truecount="0" falsecount="2"/>
126
- <line num="481" count="0" type="stmt"/>
122
+ <line num="416" count="0" type="cond" truecount="0" falsecount="4"/>
123
+ <line num="417" count="0" type="stmt"/>
124
+ <line num="422" count="0" type="stmt"/>
125
+ <line num="479" count="0" type="cond" truecount="0" falsecount="2"/>
126
+ <line num="480" count="0" type="stmt"/>
127
+ <line num="483" count="0" type="stmt"/>
127
128
  <line num="484" count="0" type="stmt"/>
128
129
  <line num="485" count="0" type="stmt"/>
129
- <line num="486" count="0" type="stmt"/>
130
- <line num="487" count="0" type="cond" truecount="0" falsecount="2"/>
131
- <line num="488" count="0" type="stmt"/>
130
+ <line num="486" count="0" type="cond" truecount="0" falsecount="2"/>
131
+ <line num="487" count="0" type="stmt"/>
132
+ <line num="490" count="0" type="stmt"/>
132
133
  <line num="491" count="0" type="stmt"/>
133
- <line num="492" count="0" type="stmt"/>
134
- <line num="493" count="0" type="cond" truecount="0" falsecount="2"/>
135
- <line num="494" count="0" type="stmt"/>
136
- <line num="497" count="0" type="stmt"/>
137
- <line num="498" count="0" type="cond" truecount="0" falsecount="2"/>
134
+ <line num="492" count="0" type="cond" truecount="0" falsecount="2"/>
135
+ <line num="493" count="0" type="stmt"/>
136
+ <line num="496" count="0" type="stmt"/>
137
+ <line num="497" count="0" type="cond" truecount="0" falsecount="2"/>
138
+ <line num="498" count="0" type="stmt"/>
138
139
  <line num="499" count="0" type="stmt"/>
139
- <line num="500" count="0" type="stmt"/>
140
- <line num="503" count="0" type="stmt"/>
141
- <line num="504" count="0" type="cond" truecount="0" falsecount="4"/>
140
+ <line num="502" count="0" type="stmt"/>
141
+ <line num="503" count="0" type="cond" truecount="0" falsecount="4"/>
142
+ <line num="504" count="0" type="stmt"/>
142
143
  <line num="505" count="0" type="stmt"/>
143
- <line num="506" count="0" type="stmt"/>
144
+ <line num="507" count="0" type="stmt"/>
144
145
  <line num="508" count="0" type="stmt"/>
145
- <line num="509" count="0" type="stmt"/>
146
- <line num="513" count="0" type="cond" truecount="0" falsecount="2"/>
146
+ <line num="512" count="0" type="cond" truecount="0" falsecount="2"/>
147
+ <line num="513" count="0" type="stmt"/>
147
148
  <line num="514" count="0" type="stmt"/>
148
149
  <line num="515" count="0" type="stmt"/>
149
150
  <line num="516" count="0" type="stmt"/>
150
- <line num="517" count="0" type="stmt"/>
151
- <line num="522" count="0" type="cond" truecount="0" falsecount="2"/>
151
+ <line num="521" count="0" type="cond" truecount="0" falsecount="2"/>
152
+ <line num="525" count="0" type="stmt"/>
152
153
  <line num="526" count="0" type="stmt"/>
153
- <line num="527" count="0" type="stmt"/>
154
- <line num="530" count="0" type="stmt"/>
155
- <line num="534" count="2" type="stmt"/>
154
+ <line num="529" count="0" type="stmt"/>
155
+ <line num="533" count="2" type="stmt"/>
156
+ <line num="538" count="0" type="stmt"/>
156
157
  <line num="539" count="0" type="stmt"/>
157
158
  <line num="540" count="0" type="stmt"/>
158
- <line num="541" count="0" type="stmt"/>
159
159
  </file>
160
160
  <file name="metro-config.ts" path="/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/metro-config.ts">
161
161
  <metrics statements="68" coveredstatements="37" conditionals="42" coveredconditionals="21" methods="6" coveredmethods="4"/>
@@ -230,7 +230,7 @@
230
230
  </file>
231
231
  </package>
232
232
  <package name="src.bundle">
233
- <metrics statements="28" coveredstatements="28" conditionals="23" coveredconditionals="22" methods="7" coveredmethods="7"/>
233
+ <metrics statements="31" coveredstatements="31" conditionals="23" coveredconditionals="20" methods="8" coveredmethods="8"/>
234
234
  <file name="defaultPlugins.ts" path="/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/defaultPlugins.ts">
235
235
  <metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
236
236
  <line num="5" count="3" type="stmt"/>
@@ -254,14 +254,17 @@
254
254
  <line num="74" count="10" type="stmt"/>
255
255
  </file>
256
256
  <file name="metro.ts" path="/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/metro.ts">
257
- <metrics statements="7" coveredstatements="7" conditionals="7" coveredconditionals="6" methods="1" coveredmethods="1"/>
258
- <line num="29" count="4" type="stmt"/>
259
- <line num="31" count="4" type="stmt"/>
260
- <line num="36" count="4" type="stmt"/>
261
- <line num="43" count="4" type="stmt"/>
262
- <line num="44" count="4" type="cond" truecount="2" falsecount="0"/>
263
- <line num="46" count="4" type="cond" truecount="2" falsecount="0"/>
257
+ <metrics statements="10" coveredstatements="10" conditionals="7" coveredconditionals="4" methods="2" coveredmethods="2"/>
258
+ <line num="11" count="12" type="stmt"/>
259
+ <line num="33" count="4" type="stmt"/>
260
+ <line num="35" count="4" type="stmt"/>
261
+ <line num="40" count="4" type="stmt"/>
262
+ <line num="47" count="4" type="stmt"/>
263
+ <line num="48" count="4" type="cond" truecount="1" falsecount="1"/>
264
264
  <line num="49" count="4" type="stmt"/>
265
+ <line num="51" count="4" type="cond" truecount="1" falsecount="1"/>
266
+ <line num="52" count="4" type="stmt"/>
267
+ <line num="56" count="4" type="stmt"/>
265
268
  </file>
266
269
  <file name="overrides.ts" path="/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/overrides.ts">
267
270
  <metrics statements="5" coveredstatements="5" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>