@rnx-kit/cli 0.12.5 → 0.14.0
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 +116 -0
- package/README.md +90 -65
- package/coverage/clover.xml +216 -225
- package/coverage/coverage-final.json +7 -6
- package/coverage/lcov-report/index.html +29 -29
- package/coverage/lcov-report/src/bundle/index.html +29 -29
- package/coverage/lcov-report/src/bundle/kit-config.ts.html +63 -117
- package/coverage/lcov-report/src/bundle/metro.ts.html +40 -163
- package/coverage/lcov-report/src/bundle/overrides.ts.html +28 -58
- package/coverage/lcov-report/src/bundler-plugin-defaults.ts.html +115 -0
- package/coverage/lcov-report/src/copy-assets.ts.html +36 -12
- package/coverage/lcov-report/src/index.html +35 -20
- package/coverage/lcov-report/src/metro-config.ts.html +49 -31
- package/coverage/lcov-report/src/typescript/index.html +1 -1
- package/coverage/lcov-report/src/typescript/project-cache.ts.html +5 -5
- package/coverage/lcov.info +408 -419
- package/lib/bundle/kit-config.d.ts +9 -15
- package/lib/bundle/kit-config.d.ts.map +1 -1
- package/lib/bundle/kit-config.js +29 -43
- package/lib/bundle/kit-config.js.map +1 -1
- package/lib/bundle/metro.d.ts +7 -11
- package/lib/bundle/metro.d.ts.map +1 -1
- package/lib/bundle/metro.js +10 -40
- package/lib/bundle/metro.js.map +1 -1
- package/lib/bundle/overrides.d.ts +11 -9
- package/lib/bundle/overrides.d.ts.map +1 -1
- package/lib/bundle/overrides.js +10 -18
- package/lib/bundle/overrides.js.map +1 -1
- package/lib/bundle/types.d.ts +4 -17
- package/lib/bundle/types.d.ts.map +1 -1
- package/lib/bundle.d.ts +8 -7
- package/lib/bundle.d.ts.map +1 -1
- package/lib/bundle.js +3 -19
- package/lib/bundle.js.map +1 -1
- package/lib/bundler-plugin-defaults.d.ts +3 -0
- package/lib/bundler-plugin-defaults.d.ts.map +1 -0
- package/lib/bundler-plugin-defaults.js +13 -0
- package/lib/bundler-plugin-defaults.js.map +1 -0
- package/lib/copy-assets.d.ts.map +1 -1
- package/lib/copy-assets.js +8 -2
- package/lib/copy-assets.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/metro-config.d.ts +3 -2
- package/lib/metro-config.d.ts.map +1 -1
- package/lib/metro-config.js +7 -5
- package/lib/metro-config.js.map +1 -1
- package/lib/parsers.d.ts +2 -0
- package/lib/parsers.d.ts.map +1 -1
- package/lib/parsers.js +16 -1
- package/lib/parsers.js.map +1 -1
- package/lib/serve/kit-config.d.ts +6 -5
- package/lib/serve/kit-config.d.ts.map +1 -1
- package/lib/serve/kit-config.js +16 -6
- package/lib/serve/kit-config.js.map +1 -1
- package/lib/start.d.ts +2 -2
- package/lib/start.d.ts.map +1 -1
- package/lib/start.js +3 -9
- package/lib/start.js.map +1 -1
- package/package.json +9 -7
- package/react-native.config.js +66 -59
- package/src/bundle/kit-config.ts +42 -60
- package/src/bundle/metro.ts +15 -56
- package/src/bundle/overrides.ts +24 -34
- package/src/bundle/types.ts +17 -23
- package/src/bundle.ts +18 -36
- package/src/bundler-plugin-defaults.ts +10 -0
- package/src/copy-assets.ts +10 -2
- package/src/index.ts +1 -1
- package/src/metro-config.ts +12 -6
- package/src/parsers.ts +19 -0
- package/src/serve/kit-config.ts +23 -11
- package/src/start.ts +7 -13
- package/test/__mocks__/child_process.js +1 -1
- package/test/bundle/__mocks__/@rnx-kit/config.js +2 -3
- package/test/bundle/__mocks__/@rnx-kit/console.js +1 -0
- package/test/bundle/__mocks__/@rnx-kit/metro-service.js +1 -0
- package/test/bundle/kit-config.test.ts +102 -100
- package/test/bundle/metro.test.ts +58 -98
- package/test/bundle/overrides.test.ts +29 -25
- package/test/copy-assets/assembleAarBundle.test.ts +7 -6
- package/lib/types.d.ts +0 -5
- package/lib/types.d.ts.map +0 -1
- package/lib/types.js +0 -3
- package/lib/types.js.map +0 -1
- package/src/types.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,121 @@
|
|
|
1
1
|
# Change Log - @rnx-kit/cli
|
|
2
2
|
|
|
3
|
+
## 0.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e2535866: # Breaking Changes
|
|
8
|
+
|
|
9
|
+
## Command-Line: align parameter names with @react-native-community/cli
|
|
10
|
+
|
|
11
|
+
Add, rename, and remove command-line parameters in @rnx-kit/cli to fully align
|
|
12
|
+
with the well-known names used in @react-native-community/cli. This change will
|
|
13
|
+
pairs with similar changes in @rnx-kit/config.
|
|
14
|
+
|
|
15
|
+
In doing this, we'll be making it easier for developers to migrate to using our
|
|
16
|
+
config/cli combination, and our cli will become a "drop in" replacement
|
|
17
|
+
@react-native-community/cli. The longer-term goal is to upstream our work into
|
|
18
|
+
the community CLI, but until it is proven and accepted, we will continue to
|
|
19
|
+
maintain our wrapper commands.
|
|
20
|
+
|
|
21
|
+
### `rnx-bundle` parameteters
|
|
22
|
+
|
|
23
|
+
Add:
|
|
24
|
+
|
|
25
|
+
- --bundle-output
|
|
26
|
+
- --sourcemap-use-absolute-path
|
|
27
|
+
- --unstable-transform-profile
|
|
28
|
+
|
|
29
|
+
Remove:
|
|
30
|
+
|
|
31
|
+
- --bundle-prefix
|
|
32
|
+
- --dist-path
|
|
33
|
+
|
|
34
|
+
Rename:
|
|
35
|
+
|
|
36
|
+
- --entry-path -> --entry-file
|
|
37
|
+
- --assets-path -> --assets-dest
|
|
38
|
+
|
|
39
|
+
### `rnx-start` parameters
|
|
40
|
+
|
|
41
|
+
Rename:
|
|
42
|
+
|
|
43
|
+
- --project-root -> --projectRoot
|
|
44
|
+
- --watch-folders -> --watchFolders
|
|
45
|
+
- --asset-plugins -> --assetPlugins
|
|
46
|
+
- --source-exts -> --sourceExts
|
|
47
|
+
|
|
48
|
+
## Zero configuration required
|
|
49
|
+
|
|
50
|
+
The bundler and bundle-server no longer require rnx-kit configuration to run.
|
|
51
|
+
This makes it possible to "upgrade" to @rnx-kit/cli by only changing the command
|
|
52
|
+
name:
|
|
53
|
+
|
|
54
|
+
- `react-native bundle` -> `react-native rnx-bundle`
|
|
55
|
+
- `react-native start` -> `react-native rnx-start`
|
|
56
|
+
|
|
57
|
+
## Default configuration
|
|
58
|
+
|
|
59
|
+
This release moves configuration defaults from @rnx-kit/config to the CLI. The
|
|
60
|
+
CLI expresses our opinionated view of how config should be interpreted.
|
|
61
|
+
|
|
62
|
+
The following defaults now apply when running `rnx-bundle` and `rnx-start`:
|
|
63
|
+
|
|
64
|
+
- --entry-file / entryFile: "index.js"
|
|
65
|
+
- --bundle-output / bundleOutput: "index.<`platform`>.bundle" (Windows,
|
|
66
|
+
Android), or "index.<`platform`>.jsbundle" (iOS, MacOS)
|
|
67
|
+
- detectCyclicDependencies: `true` (config only)
|
|
68
|
+
- detectDuplicateDependencies: `true` (config only)
|
|
69
|
+
- typescriptValidation: `true` (config only)
|
|
70
|
+
- --tree-shake / treeShake: `false`
|
|
71
|
+
- --sourcemap-use-absolute-path / sourcemapUseAbsolutePath: `false` (bundling
|
|
72
|
+
only)
|
|
73
|
+
|
|
74
|
+
**NOTE**: Defaults are only used when the corresponding fields are missing from
|
|
75
|
+
both configuration and the command-line.
|
|
76
|
+
|
|
77
|
+
In addition to these defaults, `rnx-start` will use `bundle` configuration when
|
|
78
|
+
`server` configuration is not present, ensuring that by default, you are serving
|
|
79
|
+
the same way you are bundling. If both both are missing, then the above baseline
|
|
80
|
+
defaults are used.
|
|
81
|
+
|
|
82
|
+
## `rnx-bundle`: source-map changes
|
|
83
|
+
|
|
84
|
+
The bundling code used to force the creation of a source-map file when in dev
|
|
85
|
+
mode (--dev true). This is inconsistent with how @react-native-community/cli
|
|
86
|
+
works, so it has been removed.
|
|
87
|
+
|
|
88
|
+
Further, `rnx-bundle` now supports `--sourcemap-use-absolute-path` with a
|
|
89
|
+
default value of `false`. This aligns with the @react-native-community/cli
|
|
90
|
+
behavior, and is a breaking change because it causes `sourcemapOutput` to be
|
|
91
|
+
stripped of any path info, leaving only the name of the source-map file.
|
|
92
|
+
|
|
93
|
+
## Drop support for deprecated `rnx-bundle` parameter --experimental-tree-shake
|
|
94
|
+
|
|
95
|
+
This parameters was marked deprecated in a previous release, and though it was
|
|
96
|
+
still supported, it emitted a warning when used.
|
|
97
|
+
|
|
98
|
+
All support has now been dropped. The replacement parameter is `--tree-shake`.
|
|
99
|
+
|
|
100
|
+
### Patch Changes
|
|
101
|
+
|
|
102
|
+
- Updated dependencies [e2535866]
|
|
103
|
+
- Updated dependencies [e2535866]
|
|
104
|
+
- @rnx-kit/metro-service@2.0.0
|
|
105
|
+
- @rnx-kit/config@0.5.0
|
|
106
|
+
|
|
107
|
+
## 0.12.7
|
|
108
|
+
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- 569a099: Bump @rnx-kit/tools-node to v1.2.7
|
|
112
|
+
|
|
113
|
+
## 0.12.6
|
|
114
|
+
|
|
115
|
+
### Patch Changes
|
|
116
|
+
|
|
117
|
+
- f5d91ef: rnx-copy-assets: exit if encountering an error
|
|
118
|
+
|
|
3
119
|
## 0.12.5
|
|
4
120
|
|
|
5
121
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -7,24 +7,29 @@
|
|
|
7
7
|
|
|
8
8
|
<!--remove-block end-->
|
|
9
9
|
|
|
10
|
-
Command-line interface for working with
|
|
10
|
+
Command-line interface for working with packages in your repo.
|
|
11
11
|
|
|
12
12
|
<!--remove-block start-->
|
|
13
13
|
|
|
14
|
-
- [Bundle a
|
|
15
|
-
- [Start a bundle server](#
|
|
16
|
-
- [Manage
|
|
17
|
-
- [Generate a 3rd-party notice for a
|
|
18
|
-
- [Clean a React Native
|
|
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
19
|
|
|
20
20
|
<!--remove-block end-->
|
|
21
21
|
|
|
22
|
-
## Bundle a
|
|
22
|
+
## Bundle a Package
|
|
23
23
|
|
|
24
|
-
Bundle
|
|
25
|
-
|
|
24
|
+
Bundle a package using [Metro](https://facebook.github.io/metro). The bundling
|
|
25
|
+
process uses optional
|
|
26
26
|
[configuration](https://github.com/microsoft/rnx-kit/tree/main/packages/config)
|
|
27
|
-
and
|
|
27
|
+
parameters and command-line overrides.
|
|
28
|
+
|
|
29
|
+
The command `react-native rnx-bundle` is meant to be a drop-in replacement for
|
|
30
|
+
`react-native bundle`. If `rnx-bundle` ever becomes widely accepted, we will
|
|
31
|
+
work on upstreaming it to `@react-native-community/cli`, along with supporting
|
|
32
|
+
libraries for package configuration and Metro plugins.
|
|
28
33
|
|
|
29
34
|
### Example Commands
|
|
30
35
|
|
|
@@ -33,33 +38,26 @@ yarn react-native rnx-bundle
|
|
|
33
38
|
```
|
|
34
39
|
|
|
35
40
|
```bash
|
|
36
|
-
yarn react-native rnx-bundle --platform ios --dev false --minify true
|
|
41
|
+
yarn react-native rnx-bundle --entry-file src/index.ts --bundle-output main.jsbundle --platform ios --dev false --minify true
|
|
37
42
|
```
|
|
38
43
|
|
|
39
|
-
|
|
40
|
-
yarn react-native rnx-bundle --bundle-prefix test-app --tree-shake true
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### Example Configuration
|
|
44
|
+
### Example Configuration (Optional)
|
|
44
45
|
|
|
45
46
|
```json
|
|
46
47
|
{
|
|
47
48
|
"rnx-kit": {
|
|
48
49
|
"bundle": {
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"assetsPath": "dist",
|
|
52
|
-
"bundlePrefix": "main",
|
|
50
|
+
"entryFile": "entry.js",
|
|
51
|
+
"assetsDest": "dist",
|
|
53
52
|
"detectCyclicDependencies": true,
|
|
54
53
|
"detectDuplicateDependencies": {
|
|
55
54
|
"ignoredModules": ["react-is"]
|
|
56
55
|
},
|
|
57
56
|
"typescriptValidation": true,
|
|
58
|
-
"treeShake": true,
|
|
59
57
|
"targets": ["ios", "android", "windows", "macos"],
|
|
60
58
|
"platforms": {
|
|
61
59
|
"android": {
|
|
62
|
-
"
|
|
60
|
+
"assetsDest": "dist/res"
|
|
63
61
|
},
|
|
64
62
|
"macos": {
|
|
65
63
|
"typescriptValidation": false
|
|
@@ -70,33 +68,54 @@ yarn react-native rnx-bundle --bundle-prefix test-app --tree-shake true
|
|
|
70
68
|
}
|
|
71
69
|
```
|
|
72
70
|
|
|
71
|
+
### Bundle Defaults
|
|
72
|
+
|
|
73
|
+
When certain parameters aren't specified in configuration or on the
|
|
74
|
+
command-line, they are explicitly set to default values.
|
|
75
|
+
|
|
76
|
+
| Parameter | Default Value |
|
|
77
|
+
| --------------------------- | --------------------------------------------------------------------------------------------- |
|
|
78
|
+
| entryFile | "index.js" |
|
|
79
|
+
| bundleOutput | "index.<`platform`>.bundle" (Windows, Android), or "index.<`platform`>.jsbundle" (iOS, MacOS) |
|
|
80
|
+
| detectCyclicDependencies | `true` |
|
|
81
|
+
| detectDuplicateDependencies | `true` |
|
|
82
|
+
| typescriptValidation | `true` |
|
|
83
|
+
| treeShake | `false` |
|
|
84
|
+
|
|
85
|
+
Other parameters have implicit defaults, buried deep in Metro or its
|
|
86
|
+
dependencies.
|
|
87
|
+
|
|
73
88
|
### Command-Line Overrides
|
|
74
89
|
|
|
75
90
|
| Override | Description |
|
|
76
91
|
| ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
77
|
-
| --id [id] | Target bundle definition. This is only needed when the kit configuration has multiple bundle definitions.
|
|
78
|
-
| --
|
|
79
|
-
| --
|
|
80
|
-
| --dist-path [path] | Path where the bundle is written, either absolute or relative to the kit package. |
|
|
81
|
-
| --assets-path [path] | Path where bundle assets like images are written, either absolute or relative to the kit package. |
|
|
82
|
-
| --bundle-prefix [prefix] | Bundle file prefix. This is followed by the platform and bundle file extension. |
|
|
83
|
-
| --bundle-encoding [`utf8` | `utf16le` | `ascii`] | [Character encoding](https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings) to use when writing the bundle file. |
|
|
92
|
+
| --id [id] | Target bundle definition. This is only needed when the rnx-kit configuration has multiple bundle definitions. |
|
|
93
|
+
| --entry-file [file] | Path to the root JavaScript or TypeScript file, either absolute or relative to the package. |
|
|
94
|
+
| --platform [`ios` | `android` | `windows` | `win32` | `macos`] | Target platform. When not given, all platforms in the rnx-kit configuration are bundled. |
|
|
84
95
|
| --dev [boolean] | If false, warnings are disabled and the bundle is minified (default: true). |
|
|
85
96
|
| --minify [boolean] | Controls whether or not the bundle is minified. Disabling minification is useful for test builds. |
|
|
86
|
-
| --
|
|
97
|
+
| --bundle-output [path] | Path to the output bundle file, either absolute or relative to the package. |
|
|
98
|
+
| --bundle-encoding [`utf8` | `utf16le` | `ascii`] | [Character encoding](https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings) to use when writing the bundle file. |
|
|
87
99
|
| --max-workers [number] | Specifies the maximum number of parallel worker threads to use for transforming files. This defaults to the number of cores available on your machine. |
|
|
88
|
-
| --sourcemap-output [string] | Path where the bundle source map is written, either absolute or relative to the
|
|
100
|
+
| --sourcemap-output [string] | Path where the bundle source map is written, either absolute or relative to the package. |
|
|
89
101
|
| --sourcemap-sources-root [string] | Path to use when relativizing file entries in the bundle source map. |
|
|
102
|
+
| --assets-dest [path] | Path where bundle assets like images are written, either absolute or relative to the package. If not given, assets are ignored. |
|
|
103
|
+
| --tree-shake [boolean] | Enable tree shaking to remove unused code and reduce the bundle size. |
|
|
90
104
|
| --reset-cache | Reset the Metro cache. |
|
|
91
105
|
| --config [string] | Path to the Metro configuration file. |
|
|
92
106
|
| -h, --help | Show usage information. |
|
|
93
107
|
|
|
94
108
|
## Start a Bundle Server
|
|
95
109
|
|
|
96
|
-
Start a bundle server for
|
|
97
|
-
[Metro](https://facebook.github.io/metro). The server
|
|
110
|
+
Start a bundle server for a package using
|
|
111
|
+
[Metro](https://facebook.github.io/metro). The bundle server uses optional
|
|
98
112
|
[configuration](https://github.com/microsoft/rnx-kit/tree/main/packages/config)
|
|
99
|
-
and
|
|
113
|
+
parameters and command-line overrides.
|
|
114
|
+
|
|
115
|
+
The command `react-native rnx-start` is meant to be a drop-in replacement for
|
|
116
|
+
`react-native start`. If `rnx-start` ever becomes widely accepted, we will work
|
|
117
|
+
on upstreaming it to `@react-native-community/cli`, along with supporting
|
|
118
|
+
libraries for package configuration and Metro plugins.
|
|
100
119
|
|
|
101
120
|
### Example Commands
|
|
102
121
|
|
|
@@ -127,28 +146,33 @@ yarn react-native rnx-start --host localhost --port 8812
|
|
|
127
146
|
}
|
|
128
147
|
```
|
|
129
148
|
|
|
149
|
+
### Server Defaults
|
|
150
|
+
|
|
151
|
+
If the server configuration is not defined, it is implicitly created at runtime
|
|
152
|
+
from the bundle configuration (or its [defaults](#bundle-defaults)).
|
|
153
|
+
|
|
130
154
|
### Command-Line Overrides
|
|
131
155
|
|
|
132
|
-
| Override | Description
|
|
133
|
-
| ----------------------------------- |
|
|
134
|
-
| --
|
|
135
|
-
| --
|
|
136
|
-
| --
|
|
137
|
-
| --
|
|
138
|
-
| --
|
|
139
|
-
| --
|
|
140
|
-
| --max-workers [number] | Specifies the maximum number of parallel worker threads to use for transforming files. This defaults to the number of cores available on your machine.
|
|
141
|
-
| --
|
|
142
|
-
| --
|
|
143
|
-
| --
|
|
144
|
-
| --
|
|
145
|
-
| --
|
|
146
|
-
| --config [string] | Path to the Metro configuration file.
|
|
147
|
-
| --no-interactive | Disables interactive mode.
|
|
148
|
-
|
|
149
|
-
## Manage
|
|
150
|
-
|
|
151
|
-
Manage your
|
|
156
|
+
| Override | Description |
|
|
157
|
+
| ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
158
|
+
| --port [number] | Host port to use when listening for incoming server requests. |
|
|
159
|
+
| --host [string] | Host name or address to bind when listening for incoming server requests. When not given, requests from all addresses are accepted. |
|
|
160
|
+
| --projectRoot [path] | Path to the root of your react-native project. The bundle server uses this root path to resolve all web requests. |
|
|
161
|
+
| --watchFolders [paths] | Additional folders which will be added to the file-watch list. Comma-separated. By default, Metro watches all project files. |
|
|
162
|
+
| --assetPlugins [list] | Additional asset plugins to be used by the Metro Babel transformer. Comma-separated list containing plugin module names or absolute paths to plugin packages. |
|
|
163
|
+
| --sourceExts [list] | Additional source-file extensions to include when generating bundles. Comma-separated list, excluding the leading dot. |
|
|
164
|
+
| --max-workers [number] | Specifies the maximum number of parallel worker threads to use for transforming files. This defaults to the number of cores available on your machine. |
|
|
165
|
+
| --reset-cache | Reset the Metro cache. |
|
|
166
|
+
| --custom-log-reporter-path [string] | Path to a JavaScript file which exports a Metro `TerminalReporter` function. This replaces the default reporter, which writes all messages to the Metro console. |
|
|
167
|
+
| --https | Use a secure (https) web server. When not specified, an insecure (http) web server is used. |
|
|
168
|
+
| --key [path] | Path to a custom SSL private key file to use for secure (https) communication. |
|
|
169
|
+
| --cert [path] | Path to a custom SSL certificate file to use for secure (https) communication. |
|
|
170
|
+
| --config [string] | Path to the Metro configuration file. |
|
|
171
|
+
| --no-interactive | Disables interactive mode. |
|
|
172
|
+
|
|
173
|
+
## Manage Dependencies
|
|
174
|
+
|
|
175
|
+
Manage your package's dependencies.
|
|
152
176
|
|
|
153
177
|
```
|
|
154
178
|
$ yarn react-native rnx-dep-check [options] [/path/to/package.json]
|
|
@@ -158,10 +182,10 @@ Refer to
|
|
|
158
182
|
[@rnx-kit/dep-check](https://github.com/microsoft/rnx-kit/tree/main/packages/dep-check)
|
|
159
183
|
for details.
|
|
160
184
|
|
|
161
|
-
## Generate a Third-Party Notice for a
|
|
185
|
+
## Generate a Third-Party Notice for a Package
|
|
162
186
|
|
|
163
187
|
Generate a 3rd-party notice, which is an aggregation of all the LICENSE files
|
|
164
|
-
from your
|
|
188
|
+
from your package's dependencies.
|
|
165
189
|
|
|
166
190
|
> NOTE: A 3rd-party notice is a **legal document**. You are solely responsble
|
|
167
191
|
> for its content, even if you use `@rnx-kit` to assist you in generating it.
|
|
@@ -172,15 +196,16 @@ from your `kit` package's dependencies.
|
|
|
172
196
|
$ yarn react-native rnx-write-third-party-notices [options]
|
|
173
197
|
```
|
|
174
198
|
|
|
175
|
-
| Option | Description
|
|
176
|
-
| ------------------------- |
|
|
177
|
-
| --
|
|
178
|
-
| --
|
|
179
|
-
| --
|
|
180
|
-
| --
|
|
181
|
-
| --ignore-
|
|
182
|
-
| --
|
|
183
|
-
| --
|
|
199
|
+
| Option | Description |
|
|
200
|
+
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
201
|
+
| --root-path [path] | The root of the repo. This is the starting point for finding each module in the source map dependency graph. |
|
|
202
|
+
| --source-map-file [file] | The source map file associated with the package's entry file. This source map eventually leads to all package dependencies and their licenses. |
|
|
203
|
+
| --json | Format the 3rd-party notice file as JSON instead of text. |
|
|
204
|
+
| --output-file [file] | The path to use when writing the 3rd-party notice file. |
|
|
205
|
+
| --ignore-scopes [string] | Comma-separated list of `npm` scopes to ignore when traversing the source map dependency graph. |
|
|
206
|
+
| --ignore-modules [string] | Comma-separated list of modules to ignore when traversing the source map dependency graph. |
|
|
207
|
+
| --preamble-text [string] | A string to prepend to the start of the 3rd-party notice. |
|
|
208
|
+
| --additional-text [path] | A string to append to the end of the 3rd-party notice. |
|
|
184
209
|
|
|
185
210
|
## Clean a React Native Project
|
|
186
211
|
|