Skip to content

Commit f7adfdb

Browse files
committed
update for ng16.2
1 parent 7251504 commit f7adfdb

File tree

9 files changed

+172
-127
lines changed

9 files changed

+172
-127
lines changed

libs/mf/src/schematics/mf/schema.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@
2626
}
2727
},
2828
"type": {
29-
"enum": [
30-
"host",
31-
"dynamic-host",
32-
"remote",
33-
"legacy"
34-
],
29+
"enum": ["host", "dynamic-host", "remote", "legacy"],
3530
"type": "string",
3631
"default": "legacy"
3732
},
@@ -40,7 +35,5 @@
4035
"description": "Use builders provided by Nx instead of ngx-build-plus? Defaults to true for Nx workspaces and false for CLI workspaces."
4136
}
4237
},
43-
"required": [
44-
"port"
45-
]
38+
"required": ["port"]
4639
}

libs/native-federation-core/src/lib/core/build-adapter.d.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import { MappedPath } from '../utils/mapped-paths';
22
export type BuildKind = 'shared-package' | 'shared-mapping' | 'exposed';
33
export interface BuildAdapterOptions {
4-
entryPoint: string;
5-
tsConfigPath?: string;
6-
external: Array<string>;
7-
outfile: string;
8-
mappedPaths: MappedPath[];
9-
packageName?: string;
10-
esm?: boolean;
11-
dev?: boolean;
12-
watch?: boolean;
13-
kind: BuildKind;
4+
entryPoint: string;
5+
tsConfigPath?: string;
6+
external: Array<string>;
7+
outfile: string;
8+
mappedPaths: MappedPath[];
9+
packageName?: string;
10+
esm?: boolean;
11+
dev?: boolean;
12+
watch?: boolean;
13+
kind: BuildKind;
1414
}
1515
export type BuildAdapter = (options: BuildAdapterOptions) => Promise<void>;
1616
export declare function setBuildAdapter(buildAdapter: BuildAdapter): void;

libs/native-federation-core/src/lib/core/build-adapter.js

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { LogLevels } from 'npmlog';
22
export declare const logger: {
3-
error: (msg: any) => void;
4-
warn: (msg: any) => void;
5-
notice: (msg: any) => void;
6-
info: (msg: any) => void;
7-
verbose: (msg: any) => void;
8-
debug: (msg: any) => void;
3+
error: (msg: any) => void;
4+
warn: (msg: any) => void;
5+
notice: (msg: any) => void;
6+
info: (msg: any) => void;
7+
verbose: (msg: any) => void;
8+
debug: (msg: any) => void;
99
};
1010
export declare const setLogLevel: (level: LogLevels | 'debug') => void;

libs/native-federation-core/src/lib/utils/logger.js

Lines changed: 48 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
export interface MappedPath {
2-
key: string;
3-
path: string;
2+
key: string;
3+
path: string;
44
}
55
export interface GetMappedPathsOptions {
6-
rootTsConfigPath: string;
7-
sharedMappings?: string[];
8-
rootPath?: string;
6+
rootTsConfigPath: string;
7+
sharedMappings?: string[];
8+
rootPath?: string;
99
}
10-
export declare function getMappedPaths({ rootTsConfigPath, sharedMappings, rootPath, }: GetMappedPathsOptions): Array<MappedPath>;
10+
export declare function getMappedPaths({
11+
rootTsConfigPath,
12+
sharedMappings,
13+
rootPath,
14+
}: GetMappedPathsOptions): Array<MappedPath>;

libs/native-federation-core/src/lib/utils/mapped-paths.js

Lines changed: 44 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/native-federation/src/schematics/init/schema.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@
2222
}
2323
},
2424
"type": {
25-
"enum": [
26-
"host",
27-
"dynamic-host",
28-
"remote"
29-
],
25+
"enum": ["host", "dynamic-host", "remote"],
3026
"type": "string",
3127
"default": "remote"
3228
},

0 commit comments

Comments
 (0)