@modern-js/module-tools 1.22.3 → 1.22.4
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 +20 -0
- package/dist/types/types.d.ts +6 -4
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @modern-js/module-tools
|
|
2
2
|
|
|
3
|
+
## 1.22.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f1f3f7e: export type UserConfig and fix type ToolsConfig
|
|
8
|
+
导出 UserConfig 类型并且修复 ToolsConfig 类型
|
|
9
|
+
- Updated dependencies [08e3aab]
|
|
10
|
+
- @modern-js/new-action@1.22.4
|
|
11
|
+
- @modern-js/babel-preset-module@1.22.4
|
|
12
|
+
- @modern-js/core@1.22.4
|
|
13
|
+
- @modern-js/css-config@1.22.4
|
|
14
|
+
- @modern-js/plugin-changeset@1.22.4
|
|
15
|
+
- @modern-js/plugin-i18n@1.22.4
|
|
16
|
+
- @modern-js/plugin-jarvis@1.22.4
|
|
17
|
+
- @modern-js/babel-compiler@1.22.4
|
|
18
|
+
- @modern-js/style-compiler@1.22.4
|
|
19
|
+
- @modern-js/plugin@1.22.4
|
|
20
|
+
- @modern-js/upgrade@1.22.4
|
|
21
|
+
- @modern-js/utils@1.22.4
|
|
22
|
+
|
|
3
23
|
## 1.22.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/types/types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { CLIConfig as SpeedyConfig } from '@speedy-js/speedy-core';
|
|
|
3
3
|
import type { LoggerText } from './features/build/logger/logText';
|
|
4
4
|
import type { Platform } from './features/build/build-platform';
|
|
5
5
|
import type { BuildPreset, BuildConfig, PackageModeType, PackageFields } from './schema/types';
|
|
6
|
+
export type { UserConfig } from '@modern-js/core';
|
|
6
7
|
export type { Platform } from './features/build/build-platform';
|
|
7
8
|
export type { ITsconfig } from './utils/tsconfig';
|
|
8
9
|
export interface ITaskMapper {
|
|
@@ -27,9 +28,7 @@ export interface IPackageModeValue {
|
|
|
27
28
|
outDir: 'node' | 'treeshaking' | 'modern';
|
|
28
29
|
copyDirs?: ('node' | 'treeshaking' | 'modern')[];
|
|
29
30
|
}
|
|
30
|
-
|
|
31
|
-
speedy?: SpeedyConfig | ((config: SpeedyConfig) => SpeedyConfig);
|
|
32
|
-
}
|
|
31
|
+
declare type ToolsSpeedyConfig = SpeedyConfig | ((config: SpeedyConfig) => SpeedyConfig);
|
|
33
32
|
declare module '@modern-js/core' {
|
|
34
33
|
interface OutputConfig {
|
|
35
34
|
/** @deprecated Use the `buildConfig.bundlelessOptions.static.path` instead . */
|
|
@@ -43,8 +42,11 @@ declare module '@modern-js/core' {
|
|
|
43
42
|
packageMode?: PackageModeType;
|
|
44
43
|
packageFields?: PackageFields;
|
|
45
44
|
}
|
|
45
|
+
interface ToolsConfig {
|
|
46
|
+
speedy?: ToolsSpeedyConfig;
|
|
47
|
+
}
|
|
46
48
|
interface NormalizedToolsConfig {
|
|
47
|
-
speedy:
|
|
49
|
+
speedy: ToolsSpeedyConfig | Array<NonNullable<ToolsSpeedyConfig>>;
|
|
48
50
|
}
|
|
49
51
|
interface SourceConfig {
|
|
50
52
|
jsxTransformRuntime?: 'automatic' | 'classic';
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.22.
|
|
14
|
+
"version": "1.22.4",
|
|
15
15
|
"bin": {
|
|
16
16
|
"modern": "./bin/modern.js"
|
|
17
17
|
},
|
|
@@ -65,18 +65,18 @@
|
|
|
65
65
|
"rollup-plugin-dts": "^4.2.1",
|
|
66
66
|
"rollup-plugin-hashbang": "^3.0.0",
|
|
67
67
|
"signal-exit": "^3.0.7",
|
|
68
|
-
"@modern-js/babel-compiler": "1.22.
|
|
69
|
-
"@modern-js/
|
|
70
|
-
"@modern-js/
|
|
71
|
-
"@modern-js/
|
|
72
|
-
"@modern-js/new-action": "1.22.
|
|
73
|
-
"@modern-js/upgrade": "1.22.
|
|
74
|
-
"@modern-js/plugin": "1.22.
|
|
75
|
-
"@modern-js/plugin-changeset": "1.22.
|
|
76
|
-
"@modern-js/plugin-i18n": "1.22.
|
|
77
|
-
"@modern-js/plugin-jarvis": "1.22.
|
|
78
|
-
"@modern-js/style-compiler": "1.22.
|
|
79
|
-
"@modern-js/utils": "1.22.
|
|
68
|
+
"@modern-js/babel-compiler": "1.22.4",
|
|
69
|
+
"@modern-js/babel-preset-module": "1.22.4",
|
|
70
|
+
"@modern-js/core": "1.22.4",
|
|
71
|
+
"@modern-js/css-config": "1.22.4",
|
|
72
|
+
"@modern-js/new-action": "1.22.4",
|
|
73
|
+
"@modern-js/upgrade": "1.22.4",
|
|
74
|
+
"@modern-js/plugin": "1.22.4",
|
|
75
|
+
"@modern-js/plugin-changeset": "1.22.4",
|
|
76
|
+
"@modern-js/plugin-i18n": "1.22.4",
|
|
77
|
+
"@modern-js/plugin-jarvis": "1.22.4",
|
|
78
|
+
"@modern-js/style-compiler": "1.22.4",
|
|
79
|
+
"@modern-js/utils": "1.22.4"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@types/babel__core": "^7.1.15",
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
"typescript": "^4",
|
|
92
92
|
"ajv": "^8",
|
|
93
93
|
"ajv-keywords": "^5",
|
|
94
|
-
"@scripts/build": "1.22.
|
|
95
|
-
"@scripts/jest-config": "1.22.
|
|
94
|
+
"@scripts/build": "1.22.4",
|
|
95
|
+
"@scripts/jest-config": "1.22.4"
|
|
96
96
|
},
|
|
97
97
|
"sideEffects": false,
|
|
98
98
|
"modernConfig": {
|