@modern-js/core 1.12.2 → 1.12.3
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/CHANGELOG.md +8 -0
- package/dist/config/index.d.ts +3 -2
- package/dist/config/index.js +3 -2
- package/dist/pluginAPI.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/config/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ErrorObject } from '../../compiled/ajv';
|
|
2
2
|
import { defaults } from './defaults';
|
|
3
|
-
import {
|
|
3
|
+
import { NormalizedConfig } from './mergeConfig';
|
|
4
4
|
import { PluginValidateSchema } from './schema';
|
|
5
5
|
import type { UserConfig, ConfigParam, LoadedConfig } from './types';
|
|
6
6
|
export { defaults as defaultsConfig };
|
|
7
|
-
export
|
|
7
|
+
export * from './mergeConfig';
|
|
8
8
|
export * from './types';
|
|
9
|
+
export * from './schema';
|
|
9
10
|
export declare const addServerConfigToDeps: (dependencies: string[], appDirectory: string, serverConfigFile: string) => Promise<void>;
|
|
10
11
|
export declare const defineConfig: (config: ConfigParam) => ConfigParam;
|
|
11
12
|
/**
|
package/dist/config/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.resolveConfig = exports.loadUserConfig = exports.assignPkgConfig = exports.defineConfig = exports.addServerConfigToDeps = exports.
|
|
20
|
+
exports.resolveConfig = exports.loadUserConfig = exports.assignPkgConfig = exports.defineConfig = exports.addServerConfigToDeps = exports.defaultsConfig = void 0;
|
|
21
21
|
const load_config_1 = require("@modern-js/load-config");
|
|
22
22
|
const utils_1 = require("@modern-js/utils");
|
|
23
23
|
const lodash_1 = require("@modern-js/utils/lodash");
|
|
@@ -28,10 +28,11 @@ const repeatKeyWarning_1 = require("../utils/repeatKeyWarning");
|
|
|
28
28
|
const defaults_1 = require("./defaults");
|
|
29
29
|
Object.defineProperty(exports, "defaultsConfig", { enumerable: true, get: function () { return defaults_1.defaults; } });
|
|
30
30
|
const mergeConfig_1 = require("./mergeConfig");
|
|
31
|
-
Object.defineProperty(exports, "mergeConfig", { enumerable: true, get: function () { return mergeConfig_1.mergeConfig; } });
|
|
32
31
|
const schema_1 = require("./schema");
|
|
33
32
|
const debug = (0, utils_1.createDebugger)('resolve-config');
|
|
33
|
+
__exportStar(require("./mergeConfig"), exports);
|
|
34
34
|
__exportStar(require("./types"), exports);
|
|
35
|
+
__exportStar(require("./schema"), exports);
|
|
35
36
|
const addServerConfigToDeps = async (dependencies, appDirectory, serverConfigFile) => {
|
|
36
37
|
const serverConfig = await (0, utils_1.getServerConfig)(appDirectory, serverConfigFile);
|
|
37
38
|
if (serverConfig) {
|
package/dist/pluginAPI.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const pluginAPI: {
|
|
|
5
5
|
setAppContext: (value: import("@modern-js/types").IAppContext) => void;
|
|
6
6
|
useAppContext: () => import("@modern-js/types").IAppContext;
|
|
7
7
|
useConfigContext: () => import("./config").UserConfig;
|
|
8
|
-
useResolvedConfigContext: () => import("
|
|
8
|
+
useResolvedConfigContext: () => import("./config").NormalizedConfig;
|
|
9
9
|
};
|
|
10
10
|
export type { IAppContext } from '@modern-js/types';
|
|
11
11
|
/** all apis for cli plugin */
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.12.
|
|
14
|
+
"version": "1.12.3",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/index.d.ts",
|
|
17
17
|
"main": "./dist/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@modern-js/load-config": "^1.3.6",
|
|
43
43
|
"@modern-js/plugin": "^1.4.0",
|
|
44
|
-
"@modern-js/utils": "^1.7.
|
|
44
|
+
"@modern-js/utils": "^1.7.10"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@jest/types": "^27.0.6",
|