@modern-js/core 2.26.0 → 2.27.0

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.
Files changed (66) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/bin.d.ts +1 -1
  3. package/dist/bin.js +5 -3
  4. package/dist/config/createDefaultConfig.d.ts +1 -1
  5. package/dist/config/createDefaultConfig.js +12 -6
  6. package/dist/config/createLoadedConfig.d.ts +1 -1
  7. package/dist/config/createLoadedConfig.js +80 -73
  8. package/dist/config/createResolvedConfig.d.ts +1 -1
  9. package/dist/config/createResolvedConfig.js +59 -72
  10. package/dist/config/index.d.ts +1 -1
  11. package/dist/config/index.js +7 -18
  12. package/dist/config/loadConfig.d.ts +5 -5
  13. package/dist/config/loadConfig.js +115 -112
  14. package/dist/context.d.ts +21 -14
  15. package/dist/context.js +74 -60
  16. package/dist/createCli.d.ts +13 -13
  17. package/dist/createCli.js +134 -113
  18. package/dist/index.d.ts +16 -16
  19. package/dist/index.js +59 -35
  20. package/dist/loadEnv.d.ts +1 -1
  21. package/dist/loadEnv.js +23 -17
  22. package/dist/loadPlugins.d.ts +4 -4
  23. package/dist/loadPlugins.js +54 -54
  24. package/dist/manager.d.ts +62 -62
  25. package/dist/manager.js +40 -23
  26. package/dist/nodeApi.d.ts +1 -1
  27. package/dist/nodeApi.js +25 -9
  28. package/dist/runBin.d.ts +2 -2
  29. package/dist/runBin.js +56 -53
  30. package/dist/schema/patchSchema.d.ts +15 -15
  31. package/dist/schema/patchSchema.js +56 -53
  32. package/dist/schema/testing.d.ts +11 -11
  33. package/dist/schema/testing.js +26 -8
  34. package/dist/schema/traverseSchema.d.ts +1 -1
  35. package/dist/schema/traverseSchema.js +25 -17
  36. package/dist/types/config/index.d.ts +37 -37
  37. package/dist/types/config/index.js +3 -1
  38. package/dist/types/config/testing.d.ts +11 -11
  39. package/dist/types/config/testing.js +3 -1
  40. package/dist/types/context.d.ts +27 -27
  41. package/dist/types/context.js +3 -1
  42. package/dist/types/coreOptions.d.ts +22 -22
  43. package/dist/types/coreOptions.js +3 -1
  44. package/dist/types/hooks.d.ts +41 -41
  45. package/dist/types/hooks.js +3 -1
  46. package/dist/types/index.d.ts +3 -3
  47. package/dist/types/index.js +10 -21
  48. package/dist/types/plugin.d.ts +10 -10
  49. package/dist/types/plugin.js +3 -1
  50. package/dist/types/pluginAPI.d.ts +10 -10
  51. package/dist/types/pluginAPI.js +3 -1
  52. package/dist/utils/checkIsDuplicationPlugin.d.ts +1 -1
  53. package/dist/utils/checkIsDuplicationPlugin.js +24 -21
  54. package/dist/utils/commander.d.ts +1 -1
  55. package/dist/utils/commander.js +31 -17
  56. package/dist/utils/createFileWatcher.d.ts +1 -1
  57. package/dist/utils/createFileWatcher.js +85 -106
  58. package/dist/utils/index.d.ts +1 -1
  59. package/dist/utils/index.js +10 -21
  60. package/dist/utils/initAppDir.d.ts +1 -1
  61. package/dist/utils/initAppDir.js +22 -17
  62. package/dist/utils/mergeConfig.d.ts +1 -1
  63. package/dist/utils/mergeConfig.js +37 -27
  64. package/dist/utils/repeatKeyWarning.d.ts +1 -1
  65. package/dist/utils/repeatKeyWarning.js +29 -16
  66. package/package.json +11 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @modern-js/core
2
2
 
3
+ ## 2.27.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 8322a51: chore: migrate packages from tsc to module-lib build
8
+
9
+ chore: 将使用 tsc 的包迁移到 module-lib 构建
10
+
11
+ - Updated dependencies [91d14b8]
12
+ - Updated dependencies [6d7104d]
13
+ - @modern-js/utils@2.27.0
14
+ - @modern-js/node-bundle-require@2.27.0
15
+ - @modern-js/plugin@2.27.0
16
+
3
17
  ## 2.26.0
4
18
 
5
19
  ### Patch Changes
package/dist/bin.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export {};
2
+ export {};
package/dist/bin.js CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const runBin_1 = require("./runBin");
5
- (0, runBin_1.run)();
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ const _runBin = require("./runBin");
7
+ (0, _runBin.run)();
@@ -1,2 +1,2 @@
1
1
  import { UserConfig } from '../types';
2
- export declare function createDefaultConfig(): UserConfig;
2
+ export declare function createDefaultConfig(): UserConfig;
@@ -1,9 +1,15 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createDefaultConfig = void 0;
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "createDefaultConfig", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return createDefaultConfig;
9
+ }
10
+ });
4
11
  function createDefaultConfig() {
5
- return {
6
- autoLoadPlugins: false,
7
- };
12
+ return {
13
+ autoLoadPlugins: false
14
+ };
8
15
  }
9
- exports.createDefaultConfig = createDefaultConfig;
@@ -3,4 +3,4 @@ import { LoadedConfig, UserConfig } from '../types';
3
3
  * Assign the pkg config into the user config.
4
4
  */
5
5
  export declare const assignPkgConfig: (userConfig?: UserConfig, pkgConfig?: UserConfig) => UserConfig;
6
- export declare function createLoadedConfig(appDirectory: string, filePath?: string, packageJsonConfig?: string, loadedConfig?: UserConfig): Promise<LoadedConfig<{}>>;
6
+ export declare function createLoadedConfig(appDirectory: string, filePath?: string, packageJsonConfig?: string, loadedConfig?: UserConfig): Promise<LoadedConfig<{}>>;
@@ -1,84 +1,91 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createLoadedConfig = exports.assignPkgConfig = void 0;
7
- const path_1 = __importDefault(require("path"));
8
- const lodash_1 = require("@modern-js/utils/lodash");
9
- const utils_1 = require("@modern-js/utils");
10
- const utils_2 = require("../utils");
11
- const loadConfig_1 = require("./loadConfig");
12
- /**
13
- * Assign the pkg config into the user config.
14
- */
15
- const assignPkgConfig = (userConfig = {}, pkgConfig = {}) => (0, lodash_1.mergeWith)({}, userConfig, pkgConfig, (objValue, srcValue) => {
16
- // mergeWith can not merge object with symbol, but plugins object contains symbol,
17
- // so we need to handle it manually.
18
- if (objValue === undefined && (0, utils_1.isPlainObject)(srcValue)) {
19
- return { ...srcValue };
20
- }
21
- // return undefined to use the default behavior of mergeWith
22
- return undefined;
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for (var name in all)
7
+ Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: all[name]
10
+ });
11
+ }
12
+ _export(exports, {
13
+ assignPkgConfig: function() {
14
+ return assignPkgConfig;
15
+ },
16
+ createLoadedConfig: function() {
17
+ return createLoadedConfig;
18
+ }
19
+ });
20
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
21
+ const _path = /* @__PURE__ */ _interop_require_default._(require("path"));
22
+ const _lodash = require("@modern-js/utils/lodash");
23
+ const _utils = require("@modern-js/utils");
24
+ const _utils1 = require("../utils");
25
+ const _loadConfig = require("./loadConfig");
26
+ const assignPkgConfig = (userConfig = {}, pkgConfig = {}) => (0, _lodash.mergeWith)({}, userConfig, pkgConfig, (objValue, srcValue) => {
27
+ if (objValue === void 0 && (0, _utils.isPlainObject)(srcValue)) {
28
+ return {
29
+ ...srcValue
30
+ };
31
+ }
32
+ return void 0;
23
33
  });
24
- exports.assignPkgConfig = assignPkgConfig;
25
- /**
26
- * A modern config can export a function or an object
27
- * If it's a function, it will be called and return a config object
28
- */
29
34
  async function getConfigObject(config) {
30
- if (typeof config === 'function') {
31
- return (await config({ env: (0, utils_1.getNodeEnv)(), command: (0, utils_1.getCommand)() })) || {};
32
- }
33
- return config || {};
35
+ if (typeof config === "function") {
36
+ return await config({
37
+ env: (0, _utils.getNodeEnv)(),
38
+ command: (0, _utils.getCommand)()
39
+ }) || {};
40
+ }
41
+ return config || {};
34
42
  }
35
43
  async function loadLocalConfig(appDirectory, configFile) {
36
- let localConfigFile = false;
37
- if (typeof configFile === 'string') {
38
- for (const ext of utils_1.CONFIG_FILE_EXTENSIONS) {
39
- if (configFile.endsWith(ext)) {
40
- const replacedPath = configFile.replace(ext, `.local${ext}`);
41
- if (utils_1.fs.existsSync(replacedPath)) {
42
- localConfigFile = replacedPath;
43
- }
44
- }
44
+ let localConfigFile = false;
45
+ if (typeof configFile === "string") {
46
+ for (const ext of _utils.CONFIG_FILE_EXTENSIONS) {
47
+ if (configFile.endsWith(ext)) {
48
+ const replacedPath = configFile.replace(ext, `.local${ext}`);
49
+ if (_utils.fs.existsSync(replacedPath)) {
50
+ localConfigFile = replacedPath;
45
51
  }
52
+ }
46
53
  }
47
- else {
48
- localConfigFile = (0, utils_1.findExists)(utils_1.CONFIG_FILE_EXTENSIONS.map(extension => path_1.default.resolve(appDirectory, `${loadConfig_1.LOCAL_CONFIG_FILE_NAME}${extension}`)));
49
- }
50
- if (localConfigFile) {
51
- const loaded = await (0, loadConfig_1.loadConfig)(appDirectory, localConfigFile);
52
- return getConfigObject(loaded.config);
53
- }
54
- return null;
54
+ } else {
55
+ localConfigFile = (0, _utils.findExists)(_utils.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${_loadConfig.LOCAL_CONFIG_FILE_NAME}${extension}`)));
56
+ }
57
+ if (localConfigFile) {
58
+ const loaded = await (0, _loadConfig.loadConfig)(appDirectory, localConfigFile);
59
+ return getConfigObject(loaded.config);
60
+ }
61
+ return null;
55
62
  }
56
63
  async function createLoadedConfig(appDirectory, filePath, packageJsonConfig, loadedConfig) {
57
- const configFile = (0, loadConfig_1.getConfigFilePath)(appDirectory, filePath);
58
- const loaded = await (0, loadConfig_1.loadConfig)(appDirectory, configFile, packageJsonConfig, loadedConfig);
59
- if (!loaded.config && !loaded.pkgConfig) {
60
- utils_1.logger.warn(`Can not find any config file in the current project, please check if you have a correct config file.`);
61
- utils_1.logger.warn(`Current project path: ${utils_1.chalk.yellow(appDirectory)}`);
64
+ const configFile = (0, _loadConfig.getConfigFilePath)(appDirectory, filePath);
65
+ const loaded = await (0, _loadConfig.loadConfig)(appDirectory, configFile, packageJsonConfig, loadedConfig);
66
+ if (!loaded.config && !loaded.pkgConfig) {
67
+ _utils.logger.warn(`Can not find any config file in the current project, please check if you have a correct config file.`);
68
+ _utils.logger.warn(`Current project path: ${_utils.chalk.yellow(appDirectory)}`);
69
+ }
70
+ const config = await getConfigObject(loaded.config);
71
+ let mergedConfig = config;
72
+ if (loaded.pkgConfig) {
73
+ mergedConfig = assignPkgConfig(config, loaded === null || loaded === void 0 ? void 0 : loaded.pkgConfig);
74
+ }
75
+ if ((0, _utils.isDevCommand)()) {
76
+ const localConfig = await loadLocalConfig(appDirectory, configFile);
77
+ if (localConfig) {
78
+ mergedConfig = (0, _utils1.mergeConfig)([
79
+ mergedConfig,
80
+ localConfig
81
+ ]);
62
82
  }
63
- const config = await getConfigObject(loaded.config);
64
- let mergedConfig = config;
65
- if (loaded.pkgConfig) {
66
- mergedConfig = (0, exports.assignPkgConfig)(config, loaded === null || loaded === void 0 ? void 0 : loaded.pkgConfig);
67
- }
68
- // Only load local config when running dev command
69
- if ((0, utils_1.isDevCommand)()) {
70
- const localConfig = await loadLocalConfig(appDirectory, configFile);
71
- // The priority of local config is higher than the user config and pkg config
72
- if (localConfig) {
73
- mergedConfig = (0, utils_2.mergeConfig)([mergedConfig, localConfig]);
74
- }
75
- }
76
- return {
77
- config: mergedConfig,
78
- filePath: loaded.path,
79
- dependencies: loaded.dependencies || [],
80
- pkgConfig: loaded.pkgConfig || {},
81
- jsConfig: config || {},
82
- };
83
+ }
84
+ return {
85
+ config: mergedConfig,
86
+ filePath: loaded.path,
87
+ dependencies: loaded.dependencies || [],
88
+ pkgConfig: loaded.pkgConfig || {},
89
+ jsConfig: config || {}
90
+ };
83
91
  }
84
- exports.createLoadedConfig = createLoadedConfig;
@@ -1,3 +1,3 @@
1
1
  import type { ErrorObject } from '@modern-js/utils/ajv';
2
2
  import type { UserConfig, NormalizedConfig, LoadedConfig, PluginValidateSchema } from '../types';
3
- export declare const createResolveConfig: (loaded: LoadedConfig<{}>, configs: UserConfig[], schemas: PluginValidateSchema[], onSchemaError?: ((error: ErrorObject) => void | Promise<void>) | undefined) => Promise<NormalizedConfig>;
3
+ export declare const createResolveConfig: (loaded: LoadedConfig<{}>, configs: UserConfig[], schemas: PluginValidateSchema[], onSchemaError?: ((error: ErrorObject) => void | Promise<void>) | undefined) => Promise<NormalizedConfig>;
@@ -1,77 +1,64 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
17
4
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.createResolveConfig = void 0;
27
- const utils_1 = require("@modern-js/utils");
28
- const patchSchema_1 = require("../schema/patchSchema");
29
- const repeatKeyWarning_1 = require("../utils/repeatKeyWarning");
30
- const mergeConfig_1 = require("../utils/mergeConfig");
31
- const createDefaultConfig_1 = require("./createDefaultConfig");
32
- const debug = (0, utils_1.createDebugger)('resolve-config');
33
- const createResolveConfig = async (
34
- // eslint-disable-next-line @typescript-eslint/ban-types
35
- loaded, configs, schemas, onSchemaError) => {
36
- var _a;
37
- const { default: Ajv } = await Promise.resolve().then(() => __importStar(require('@modern-js/utils/ajv')));
38
- const { default: ajvKeywords } = await Promise.resolve().then(() => __importStar(require('@modern-js/utils/ajv-keywords')));
39
- const { default: betterAjvErrors } = await Promise.resolve().then(() => __importStar(require('@modern-js/utils/better-ajv-errors')));
40
- const { config: userConfig, jsConfig, pkgConfig } = loaded;
41
- const ajv = new Ajv({ $data: true, strict: false });
42
- ajvKeywords(ajv);
43
- const validateSchema = (0, patchSchema_1.patchSchema)(schemas);
44
- const validate = ajv.compile(validateSchema);
45
- (0, repeatKeyWarning_1.repeatKeyWarning)(validateSchema, jsConfig, pkgConfig);
46
- // validate user config.
47
- const valid = validate(userConfig);
48
- const formatValidateError = (config) => {
49
- var _a;
50
- return betterAjvErrors(validateSchema, config, (_a = validate.errors) === null || _a === void 0 ? void 0 : _a.map(e => ({
51
- ...e,
52
- dataPath: e.instancePath,
53
- })), {
54
- indent: 2,
55
- });
56
- };
57
- if (!valid && ((_a = validate.errors) === null || _a === void 0 ? void 0 : _a.length)) {
58
- if (onSchemaError) {
59
- await onSchemaError(validate === null || validate === void 0 ? void 0 : validate.errors[0]);
60
- }
61
- const errors = formatValidateError(userConfig);
62
- utils_1.logger.log(errors);
63
- throw new Error(`Validate configuration error`);
5
+ Object.defineProperty(exports, "createResolveConfig", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return createResolveConfig;
9
+ }
10
+ });
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _utils = require("@modern-js/utils");
13
+ const _patchSchema = require("../schema/patchSchema");
14
+ const _repeatKeyWarning = require("../utils/repeatKeyWarning");
15
+ const _mergeConfig = require("../utils/mergeConfig");
16
+ const _createDefaultConfig = require("./createDefaultConfig");
17
+ const debug = (0, _utils.createDebugger)("resolve-config");
18
+ const createResolveConfig = async (loaded, configs, schemas, onSchemaError) => {
19
+ var _validate_errors;
20
+ const { default: Ajv } = await Promise.resolve().then(() => /* @__PURE__ */ _interop_require_wildcard._(require("@modern-js/utils/ajv")));
21
+ const { default: ajvKeywords } = await Promise.resolve().then(() => /* @__PURE__ */ _interop_require_wildcard._(require("@modern-js/utils/ajv-keywords")));
22
+ const { default: betterAjvErrors } = await Promise.resolve().then(() => /* @__PURE__ */ _interop_require_wildcard._(require("@modern-js/utils/better-ajv-errors")));
23
+ const { config: userConfig, jsConfig, pkgConfig } = loaded;
24
+ const ajv = new Ajv({
25
+ $data: true,
26
+ strict: false
27
+ });
28
+ ajvKeywords(ajv);
29
+ const validateSchema = (0, _patchSchema.patchSchema)(schemas);
30
+ const validate = ajv.compile(validateSchema);
31
+ (0, _repeatKeyWarning.repeatKeyWarning)(validateSchema, jsConfig, pkgConfig);
32
+ const valid = validate(userConfig);
33
+ const formatValidateError = (config) => {
34
+ var _validate_errors2;
35
+ return betterAjvErrors(validateSchema, config, (_validate_errors2 = validate.errors) === null || _validate_errors2 === void 0 ? void 0 : _validate_errors2.map((e) => ({
36
+ ...e,
37
+ dataPath: e.instancePath
38
+ })), {
39
+ indent: 2
40
+ });
41
+ };
42
+ if (!valid && ((_validate_errors = validate.errors) === null || _validate_errors === void 0 ? void 0 : _validate_errors.length)) {
43
+ if (onSchemaError) {
44
+ await onSchemaError(validate === null || validate === void 0 ? void 0 : validate.errors[0]);
64
45
  }
65
- // validate config from plugins.
66
- for (const config of configs) {
67
- if (!validate(config)) {
68
- const errors = formatValidateError(config);
69
- utils_1.logger.error(errors);
70
- throw new Error(`Validate configuration error.`);
71
- }
46
+ const errors = formatValidateError(userConfig);
47
+ _utils.logger.log(errors);
48
+ throw new Error(`Validate configuration error`);
49
+ }
50
+ for (const config of configs) {
51
+ if (!validate(config)) {
52
+ const errors = formatValidateError(config);
53
+ _utils.logger.error(errors);
54
+ throw new Error(`Validate configuration error.`);
72
55
  }
73
- const resolved = (0, mergeConfig_1.mergeConfig)([(0, createDefaultConfig_1.createDefaultConfig)(), ...configs, userConfig]);
74
- debug('resolved %o', resolved);
75
- return resolved;
56
+ }
57
+ const resolved = (0, _mergeConfig.mergeConfig)([
58
+ (0, _createDefaultConfig.createDefaultConfig)(),
59
+ ...configs,
60
+ userConfig
61
+ ]);
62
+ debug("resolved %o", resolved);
63
+ return resolved;
76
64
  };
77
- exports.createResolveConfig = createResolveConfig;
@@ -1,3 +1,3 @@
1
1
  export * from './createLoadedConfig';
2
2
  export * from './createResolvedConfig';
3
- export * from './createDefaultConfig';
3
+ export * from './createDefaultConfig';
@@ -1,19 +1,8 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./createLoadedConfig"), exports);
18
- __exportStar(require("./createResolvedConfig"), exports);
19
- __exportStar(require("./createDefaultConfig"), exports);
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./createLoadedConfig"), exports);
7
+ _export_star._(require("./createResolvedConfig"), exports);
8
+ _export_star._(require("./createDefaultConfig"), exports);
@@ -28,8 +28,8 @@ export declare const getConfigFilePath: (appDirectory: string, filePath?: string
28
28
  * @returns Object contain config file path, user config object and dependency files used by config file.
29
29
  */
30
30
  export declare const loadConfig: <T>(appDirectory: string, configFile: string | false, packageJsonConfig?: string, loadedConfig?: T | undefined) => Promise<{
31
- path: string | false;
32
- config?: T | undefined;
33
- dependencies?: string[] | undefined;
34
- pkgConfig?: T | undefined;
35
- }>;
31
+ path: string | false;
32
+ config?: T | undefined;
33
+ dependencies?: string[] | undefined;
34
+ pkgConfig?: T | undefined;
35
+ }>;