File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ const outputConfigs = {
98
98
const defaultFormats = [ 'esm-bundler' , 'cjs' ]
99
99
/** @type {ReadonlyArray<PackageFormat> } */
100
100
const inlineFormats = /** @type {any } */ (
101
- process . env . FORMATS && process . env . FORMATS . split ( ', ' )
101
+ process . env . FORMATS && process . env . FORMATS . split ( '+ ' )
102
102
)
103
103
/** @type {ReadonlyArray<PackageFormat> } */
104
104
const packageFormats = inlineFormats || packageOptions . formats || defaultFormats
Original file line number Diff line number Diff line change @@ -5,14 +5,17 @@ Produces production builds and stitches together d.ts files.
5
5
6
6
To specify the package to build, simply pass its name and the desired build
7
7
formats to output (defaults to `buildOptions.formats` specified in that package,
8
- or "esm, cjs"):
8
+ or [ "esm-bundler", " cjs"] ):
9
9
10
10
```
11
11
# name supports fuzzy match. will build all packages with name containing "dom":
12
12
nr build dom
13
13
14
14
# specify the format to output
15
- nr build core --formats cjs
15
+ nr build vue -f cjs
16
+
17
+ # to specify multiple formats, separate with "+":
18
+ nr build vue -f esm-bundler+esm-browser
16
19
```
17
20
*/
18
21
You can’t perform that action at this time.
0 commit comments