@nx/rollup 19.2.0-beta.0 → 19.2.0-beta.1
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/README.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
|
|
26
26
|
|
|
27
|
-
This package is a [Rollup plugin for Nx](https://nx.dev/
|
|
27
|
+
This package is a [Rollup plugin for Nx](https://nx.dev/nx-api/rollup).
|
|
28
28
|
|
|
29
29
|
## Getting Started
|
|
30
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/rollup",
|
|
3
|
-
"version": "19.2.0-beta.
|
|
3
|
+
"version": "19.2.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Rollup contains executors and generators that support building applications using Rollup.",
|
|
6
6
|
"repository": {
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"rollup-plugin-postcss": "^4.0.2",
|
|
44
44
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
45
45
|
"tslib": "^2.3.0",
|
|
46
|
-
"@nx/devkit": "19.2.0-beta.
|
|
47
|
-
"@nx/js": "19.2.0-beta.
|
|
48
|
-
"@nrwl/rollup": "19.2.0-beta.
|
|
46
|
+
"@nx/devkit": "19.2.0-beta.1",
|
|
47
|
+
"@nx/js": "19.2.0-beta.1",
|
|
48
|
+
"@nrwl/rollup": "19.2.0-beta.1"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
@@ -4,12 +4,6 @@ import { DependentBuildableProjectNode } from '@nx/js/src/utils/buildable-libs-u
|
|
|
4
4
|
import type { PackageJson } from 'nx/src/utils/package-json';
|
|
5
5
|
import { RollupExecutorOptions } from './schema';
|
|
6
6
|
import { NormalizedRollupExecutorOptions } from './lib/normalize';
|
|
7
|
-
export declare function rollupExecutor(rawOptions: RollupExecutorOptions, context: ExecutorContext): AsyncGenerator<
|
|
8
|
-
success: boolean;
|
|
9
|
-
outfile: string;
|
|
10
|
-
} | {
|
|
11
|
-
success: boolean;
|
|
12
|
-
outfile?: undefined;
|
|
13
|
-
}, unknown>;
|
|
7
|
+
export declare function rollupExecutor(rawOptions: RollupExecutorOptions, context: ExecutorContext): AsyncGenerator<unknown, any, undefined>;
|
|
14
8
|
export declare function createRollupOptions(options: NormalizedRollupExecutorOptions, dependencies: DependentBuildableProjectNode[], context: ExecutorContext, packageJson: PackageJson, sourceRoot: string, npmDeps: string[]): Promise<rollup.RollupOptions | rollup.RollupOptions[]>;
|
|
15
9
|
export default rollupExecutor;
|
|
@@ -38,7 +38,7 @@ async function* rollupExecutor(rawOptions, context) {
|
|
|
38
38
|
const outfile = resolveOutfile(context, options);
|
|
39
39
|
if (options.watch) {
|
|
40
40
|
// region Watch build
|
|
41
|
-
return (0, async_iterable_1.createAsyncIterable)(({ next }) => {
|
|
41
|
+
return yield* (0, async_iterable_1.createAsyncIterable)(({ next }) => {
|
|
42
42
|
const watcher = rollup.watch(rollupOptions);
|
|
43
43
|
watcher.on('event', (data) => {
|
|
44
44
|
if (data.code === 'START') {
|