@lwrjs/config 0.10.0-alpha.16 → 0.10.0-alpha.18
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/build/es/utils/assets.d.ts +1 -1
- package/build/es/utils/global-data.d.ts +1 -1
- package/build/es/utils/routes.d.ts +2 -2
- package/build/es/validation/app-config-context.d.ts +6 -6
- package/build/es/validation/app-config.d.ts +1 -1
- package/build/es/validation/helpers.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AssetConfig } from '@lwrjs/types';
|
|
1
|
+
import type { AssetConfig } from '@lwrjs/types';
|
|
2
2
|
export declare function normalizeAssets(assets: string | AssetConfig[]): AssetConfig[];
|
|
3
3
|
export declare function normalizeAssetPaths(assets: AssetConfig[], rootDir: string): AssetConfig[];
|
|
4
4
|
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LwrErrorRoute, LwrRoute, NormalizedLwrErrorRoute, NormalizedLwrRoute, NormalizedRouteHandlersConfig, ResourcePaths, RouteHandlersConfig } from '@lwrjs/types';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type ViewOrErrorRoute = LwrRoute | LwrErrorRoute;
|
|
3
|
+
type NormalizedRoute<T extends ViewOrErrorRoute> = T extends LwrRoute ? NormalizedLwrRoute : NormalizedLwrErrorRoute;
|
|
4
4
|
export declare function normalizeRoutes<T extends ViewOrErrorRoute>(routes: T[], routeHandlers: RouteHandlersConfig): NormalizedRoute<T>[];
|
|
5
5
|
export declare function normalizeRoutePaths<T extends ViewOrErrorRoute>(routes: T[] | undefined, resourcePaths: ResourcePaths): NormalizedRoute<T>[];
|
|
6
6
|
export declare function normalizeRouteHandlers(routeHandlers: RouteHandlersConfig): NormalizedRouteHandlersConfig;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AssetDirConfig, AssetFileConfig, LwrErrorRoute, LwrRoute, NormalizedLwrGlobalConfig, NormalizedLwrAppBootstrapConfig, LwrLockerConfig, RouteHandlersConfig } from '@lwrjs/types';
|
|
1
|
+
import type { AssetDirConfig, AssetFileConfig, LwrErrorRoute, LwrRoute, NormalizedLwrGlobalConfig, NormalizedLwrAppBootstrapConfig, LwrLockerConfig, RouteHandlersConfig } from '@lwrjs/types';
|
|
2
2
|
import { Node } from 'jsonc-parser';
|
|
3
3
|
import { Diagnostic } from '@lwrjs/diagnostics';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
type RequiredAssetDirConfig = Required<AssetDirConfig>;
|
|
5
|
+
type RequiredAssetFileConfig = Required<AssetFileConfig>;
|
|
6
|
+
type RequiredLwrRoute = Required<LwrRoute>;
|
|
7
|
+
type RequiredLwrErrorRoute = Required<LwrErrorRoute>;
|
|
8
|
+
type RequiredLwrLockerConfig = Required<LwrLockerConfig>;
|
|
9
9
|
interface ConfigMap {
|
|
10
10
|
root: NormalizedLwrGlobalConfig;
|
|
11
11
|
assetDir: RequiredAssetDirConfig;
|
|
@@ -4,7 +4,7 @@ export declare const SOURCE_BY_PHASE: {
|
|
|
4
4
|
pre: string;
|
|
5
5
|
post: string;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type ConfigPhase = 'file' | 'pre' | 'post';
|
|
8
8
|
export declare function validateLwrAppConfig(config: string | LwrGlobalConfig, phase: ConfigPhase): void | never;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=app-config.d.ts.map
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.10.0-alpha.
|
|
7
|
+
"version": "0.10.0-alpha.18",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"package.cjs"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@lwrjs/diagnostics": "0.10.0-alpha.
|
|
40
|
-
"@lwrjs/shared-utils": "0.10.0-alpha.
|
|
39
|
+
"@lwrjs/diagnostics": "0.10.0-alpha.18",
|
|
40
|
+
"@lwrjs/shared-utils": "0.10.0-alpha.18",
|
|
41
41
|
"fs-extra": "^11.1.1",
|
|
42
42
|
"jsonc-parser": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@lwrjs/types": "0.10.0-alpha.
|
|
45
|
+
"@lwrjs/types": "0.10.0-alpha.18"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"lwc": "2.x"
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=16.0.0 <20"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "15d09e9a17b6b070e162336234434d6800b2f32d"
|
|
54
54
|
}
|