Skip to content

Commit 193ae99

Browse files
committed
feat(command-flow): move rxjs operators to core/rxjs
1 parent 926fbb5 commit 193ae99

9 files changed

Lines changed: 14 additions & 9 deletions

File tree

packages/command-flow/process-flow/src/facade.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {
55
CommandBus,
66
CommandEventBus,
77
CommandFlowScheduler,
8-
pickType,
98
} from '@angularity/command-flow';
9+
import { pickType } from '@angularity/core/rxjs';
1010
import {
1111
filter,
1212
firstValueFrom,

packages/command-flow/query-flow/src/handler.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { inject, Type } from '@angular/core';
2-
import {
3-
CommandBus,
4-
pickType,
5-
registerCommandHandler,
6-
} from '@angularity/command-flow';
2+
import { CommandBus, registerCommandHandler } from '@angularity/command-flow';
3+
import { pickType } from '@angularity/core/rxjs';
74
import { filter, mergeMap, Observable, takeUntil } from 'rxjs';
85

96
import { DisposeQuery } from './commands';

packages/command-flow/src/handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { inject, Type } from '@angular/core';
22
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
3+
import { pickType } from '@angularity/core/rxjs';
34
import { Observable, tap } from 'rxjs';
45

56
import { CommandBus, CommandEventBus } from './buses';
67
import { Command, CommandEvent } from './core';
7-
import { pickType } from './operators';
88
import { CommandFlowScheduler } from './scheduler';
99

1010
export interface CommandHandler<C extends Command> {

packages/command-flow/src/public-api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ export * from './buses';
22
export * from './core';
33
export * from './facade';
44
export * from './handlers';
5-
export * from './operators';
65
export * from './scheduler';

packages/core/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "@angularity/core",
33
"version": "0.2.1",
44
"peerDependencies": {
5-
"@angular/core": "17.x.x"
5+
"@angular/core": "17.x.x",
6+
"rxjs": "7.x.x"
67
},
78
"dependencies": {
89
"tslib": "2.x.x"

packages/core/rxjs/ng-package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
3+
"lib": {
4+
"entryFile": "src/public-api.ts"
5+
}
6+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './operators';

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@angularity/command-flow/*": ["./dist/command-flow/*"],
2727
"@angularity/config-files": ["./dist/config-files"],
2828
"@angularity/core": ["./dist/core"],
29+
"@angularity/core/*": ["./dist/core/*"],
2930
"@angularity/endpoints": ["./dist/endpoints"],
3031
"@angularity/fire": ["./dist/fire"],
3132
"@angularity/forms": ["./dist/forms"],

0 commit comments

Comments
 (0)