@modern-js/utils 2.65.4 → 2.66.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.
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const newAction: (config: Record<string, any>, solution:
|
1
|
+
export declare const newAction: (config: Record<string, any>, solution: "module" | "mwa" | "monorepo") => Promise<void>;
|
2
2
|
export declare const upgradeAction: () => Promise<void>;
|
@@ -11,8 +11,8 @@ interface IAliasConfig {
|
|
11
11
|
isTsPath?: boolean;
|
12
12
|
isTsProject?: boolean;
|
13
13
|
}
|
14
|
-
export declare const mergeAlias: (alias: NormalizedConfig[
|
15
|
-
export declare const getAliasConfig: (aliasOption: NormalizedConfig[
|
14
|
+
export declare const mergeAlias: (alias: NormalizedConfig["source"]["alias"]) => Alias;
|
15
|
+
export declare const getAliasConfig: (aliasOption: NormalizedConfig["source"]["alias"], option: {
|
16
16
|
appDirectory: string;
|
17
17
|
tsconfigPath: string;
|
18
18
|
}) => IAliasConfig;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const getEntryOptions: <T>(name: string, isMainEntry: boolean, baseOptions?: T
|
1
|
+
export declare const getEntryOptions: <T>(name: string, isMainEntry: boolean, baseOptions?: T, optionsByEntries?: Record<string, T>, packageName?: string) => T | undefined;
|
package/dist/types/cli/port.d.ts
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
* @returns Available port number.
|
7
7
|
*/
|
8
8
|
export declare const getPort: (expectPort: string | number, { tryLimits, strictPort, slient, }?: {
|
9
|
-
tryLimits?: number
|
10
|
-
strictPort?: boolean
|
11
|
-
slient?: boolean
|
9
|
+
tryLimits?: number;
|
10
|
+
strictPort?: boolean;
|
11
|
+
slient?: boolean;
|
12
12
|
}) => Promise<number>;
|
@@ -4,5 +4,5 @@ type RunTaskType = (option: {
|
|
4
4
|
changedFilePath: string;
|
5
5
|
changeType: WatchChangeTypeValueT;
|
6
6
|
}) => void | Promise<void>;
|
7
|
-
export declare const watch: (watchDir: string | string[], runTask: RunTaskType, ignored?: (string | RegExp)[]) => import("
|
7
|
+
export declare const watch: (watchDir: string | string[], runTask: RunTaskType, ignored?: (string | RegExp)[]) => import("compiled/chokidar/types").FSWatcher;
|
8
8
|
export {};
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.66.0",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/types/index.d.ts",
|
21
21
|
"main": "./dist/cjs/index.js",
|
@@ -103,8 +103,7 @@
|
|
103
103
|
},
|
104
104
|
"publishConfig": {
|
105
105
|
"registry": "https://registry.npmjs.org/",
|
106
|
-
"access": "public"
|
107
|
-
"provenance": true
|
106
|
+
"access": "public"
|
108
107
|
},
|
109
108
|
"typesVersions": {
|
110
109
|
"*": {
|
@@ -191,9 +190,9 @@
|
|
191
190
|
"jest": "^29",
|
192
191
|
"typescript": "^5",
|
193
192
|
"webpack": "^5.98.0",
|
194
|
-
"@modern-js/types": "2.
|
195
|
-
"@scripts/build": "2.
|
196
|
-
"@scripts/jest-config": "2.
|
193
|
+
"@modern-js/types": "2.66.0",
|
194
|
+
"@scripts/build": "2.66.0",
|
195
|
+
"@scripts/jest-config": "2.66.0"
|
197
196
|
},
|
198
197
|
"sideEffects": false,
|
199
198
|
"scripts": {
|