@modern-js/module-tools 2.30.0 → 2.31.1
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
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# @modern-js/module-tools
|
|
2
2
|
|
|
3
|
+
## 2.31.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @modern-js/core@2.31.1
|
|
8
|
+
- @modern-js/plugin-changeset@2.31.1
|
|
9
|
+
- @modern-js/plugin-i18n@2.31.1
|
|
10
|
+
- @modern-js/plugin-lint@2.31.1
|
|
11
|
+
- @modern-js/new-action@2.31.1
|
|
12
|
+
- @modern-js/libuild@2.31.1
|
|
13
|
+
- @modern-js/libuild-plugin-svgr@2.31.1
|
|
14
|
+
- @modern-js/libuild-plugin-swc@2.31.1
|
|
15
|
+
- @modern-js/plugin@2.31.1
|
|
16
|
+
- @modern-js/types@2.31.1
|
|
17
|
+
- @modern-js/upgrade@2.31.1
|
|
18
|
+
- @modern-js/utils@2.31.1
|
|
19
|
+
|
|
20
|
+
## 2.31.0
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 4c03d9a: fix(core): remove testing config type and schema
|
|
25
|
+
|
|
26
|
+
fix(core): 移除 testing 配置类型和 schema
|
|
27
|
+
|
|
28
|
+
- 1882366: chore(deps): bump build dependencies
|
|
29
|
+
|
|
30
|
+
chore(deps): 升级构建相关依赖
|
|
31
|
+
|
|
32
|
+
- Updated dependencies [2361ce8]
|
|
33
|
+
- Updated dependencies [4c03d9a]
|
|
34
|
+
- Updated dependencies [1882366]
|
|
35
|
+
- @modern-js/core@2.31.0
|
|
36
|
+
- @modern-js/libuild@2.31.0
|
|
37
|
+
- @modern-js/utils@2.31.0
|
|
38
|
+
- @modern-js/plugin-changeset@2.31.0
|
|
39
|
+
- @modern-js/plugin-lint@2.31.0
|
|
40
|
+
- @modern-js/libuild-plugin-svgr@2.31.0
|
|
41
|
+
- @modern-js/libuild-plugin-swc@2.31.0
|
|
42
|
+
- @modern-js/plugin-i18n@2.31.0
|
|
43
|
+
- @modern-js/new-action@2.31.0
|
|
44
|
+
- @modern-js/plugin@2.31.0
|
|
45
|
+
- @modern-js/upgrade@2.31.0
|
|
46
|
+
- @modern-js/types@2.31.0
|
|
47
|
+
|
|
3
48
|
## 2.30.0
|
|
4
49
|
|
|
5
50
|
### Patch Changes
|
|
@@ -2,6 +2,7 @@ import type { UserConfig as LibuildUserConfig, Asset as LibuildAsset, Style as L
|
|
|
2
2
|
import type { Options } from '@modern-js/libuild-plugin-svgr';
|
|
3
3
|
import type { ImportItem } from '@modern-js/libuild-plugin-swc';
|
|
4
4
|
import type { ToolsConfig as WebpackBuilderToolsConfig } from '@modern-js/builder-webpack-provider';
|
|
5
|
+
import type { TestConfig } from '@modern-js/types';
|
|
5
6
|
import { BuildInPreset, presetList } from '../../constants/buildPresets';
|
|
6
7
|
import type { CopyConfig } from '../copy';
|
|
7
8
|
import type { LessConfig, SassConfig, PostCSSConfig, TailwindCSSConfig } from './style';
|
|
@@ -117,5 +118,6 @@ export interface ModuleExtraConfig {
|
|
|
117
118
|
buildConfig?: PartialBuildConfig;
|
|
118
119
|
buildPreset?: BuildPreset;
|
|
119
120
|
dev?: Dev;
|
|
121
|
+
testing?: TestConfig;
|
|
120
122
|
runtime?: RuntimeUserConfig;
|
|
121
123
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":null,"mappings":";;;;;uBAkBc;","names":[],"sources":["../../../src/types/config/home/runner/work/modern.js/modern.js/packages/solutions/module-tools/src/types/config/index.ts"],"sourcesContent":["import type {\n UserConfig as LibuildUserConfig,\n Asset as LibuildAsset,\n Style as LibuildStyle,\n} from '@modern-js/libuild';\nimport type { Options } from '@modern-js/libuild-plugin-svgr';\nimport type { ImportItem } from '@modern-js/libuild-plugin-swc';\nimport type { ToolsConfig as WebpackBuilderToolsConfig } from '@modern-js/builder-webpack-provider';\nimport type { TestConfig } from '@modern-js/types';\nimport { BuildInPreset, presetList } from '../../constants/buildPresets';\nimport type { CopyConfig } from '../copy';\nimport type {\n LessConfig,\n SassConfig,\n PostCSSConfig,\n TailwindCSSConfig,\n} from './style';\n\nexport * from './style';\n\nexport type BuildType = 'bundleless' | 'bundle';\n\nexport type Format = 'esm' | 'cjs' | 'umd' | 'iife';\n\nexport type Target =\n | 'es5'\n | 'es6'\n | 'es2015'\n | 'es2016'\n | 'es2017'\n | 'es2018'\n | 'es2019'\n | 'es2020'\n | 'es2021'\n | 'es2022'\n // The default target is esnext which means that by default, assume all of the latest JavaScript and CSS features are supported.\n | 'esnext';\n\nexport type Input = Required<LibuildUserConfig>['input'];\n\nexport type DTSOptions = {\n abortOnError: boolean;\n distPath: string;\n tsconfigPath: string;\n only: boolean;\n /**\n * Only for rollup-plugin-dts, see more in https://github.com/Swatinem/rollup-plugin-dts#what-to-expect.\n * We hope you use external to prevent them(like @types) which come from node_modules from be bundled.\n * However, some types from outside that we don't re-export are also checked by plugin.\n * And a third-party package is uncontrollable, it may cause errors.\n * You can overridden by setting it false to excluded all packages from node_modules.\n * @default true\n */\n respectExternal: boolean;\n};\nexport type DTS = false | Partial<DTSOptions>;\n\nexport interface Asset {\n path?: LibuildAsset['outdir'];\n limit?: LibuildAsset['limit'];\n publicPath?: LibuildAsset['publicPath'];\n svgr?: boolean | Options;\n}\nexport type SourceMap = Required<LibuildUserConfig>['sourceMap'];\nexport type AutoExternal =\n | boolean\n | {\n dependencies?: boolean;\n peerDependencies?: boolean;\n };\nexport type JSX = 'automatic' | 'transform';\nexport type ExternalHelpers = boolean;\n\nexport type AliasOption =\n | Record<string, string>\n | ((aliases: Record<string, string>) => Record<string, string> | void);\n\nexport type BaseBuildConfig = Omit<\n Required<PartialBaseBuildConfig>,\n 'dts' | 'style' | 'alias' | 'sideEffects'\n> & {\n sideEffects: LibuildUserConfig['sideEffects'];\n dts: false | DTSOptions;\n style: Omit<Required<LibuildStyle>, 'cleanCss'> & {\n tailwindcss: TailwindCSSConfig;\n };\n alias: Record<string, string>;\n};\n\nexport type PartialBaseBuildConfig = {\n sourceType?: 'commonjs' | 'module';\n buildType?: 'bundleless' | 'bundle';\n format?: Format;\n target?: Target;\n dts?: DTS;\n sourceMap?: SourceMap;\n sourceDir?: string;\n copy?: CopyConfig;\n asset?: Asset;\n jsx?: JSX;\n outDir?: string;\n alias?: AliasOption;\n input?: Input;\n metafile?: boolean;\n platform?: LibuildUserConfig['platform'];\n splitting?: LibuildUserConfig['splitting'];\n minify?: LibuildUserConfig['minify'];\n externals?: LibuildUserConfig['external'];\n autoExternal?: AutoExternal;\n umdGlobals?: LibuildUserConfig['globals'];\n umdModuleName?: ((chunkName: string) => string) | string | undefined;\n define?: LibuildUserConfig['define'];\n style?: StyleConfig;\n redirect?: LibuildUserConfig['redirect'];\n sideEffects?: LibuildUserConfig['sideEffects'];\n esbuildOptions?: LibuildUserConfig['esbuildOptions'];\n // Related to swc-transform\n externalHelpers?: ExternalHelpers;\n transformImport?: ImportItem[];\n /**\n * internal configuration\n */\n disableSwcTransform?: boolean;\n};\n\nexport type BuildConfig = BaseBuildConfig | BaseBuildConfig[];\nexport type PartialBuildConfig =\n | PartialBaseBuildConfig\n | PartialBaseBuildConfig[];\n\nexport type BuildPreset =\n | keyof typeof presetList\n | ((options: {\n preset: typeof BuildInPreset;\n extendPreset: (\n extendPresetName: keyof typeof BuildInPreset,\n extendBuildConfig: PartialBaseBuildConfig,\n ) => PartialBuildConfig;\n }) => PartialBuildConfig | Promise<PartialBuildConfig>);\n\nexport interface StyleConfig {\n less?: LessConfig;\n sass?: SassConfig;\n postcss?: PostCSSConfig;\n autoModules?: LibuildStyle['autoModules'];\n modules?: LibuildStyle['modules'];\n inject?: LibuildStyle['inject'];\n /**\n * The configuration of `tools.tailwindcss` is provided by `tailwindcss` plugin.\n * Please use `yarn new` or `pnpm new` to enable the corresponding capability.\n * @requires `tailwindcss` plugin\n */\n tailwindcss?: TailwindCSSConfig;\n}\n\nexport interface StorybookBuildConfig {\n webpack?: WebpackBuilderToolsConfig['webpack'];\n webpackChain?: WebpackBuilderToolsConfig['webpackChain'];\n}\nexport interface Dev {\n storybook?: StorybookBuildConfig;\n}\n\nexport interface RuntimeUserConfig {\n [name: string]: any;\n}\n\nexport interface ModuleExtraConfig {\n designSystem?: Record<string, any>;\n\n buildConfig?: PartialBuildConfig;\n\n buildPreset?: BuildPreset;\n\n dev?: Dev;\n\n testing?: TestConfig;\n\n runtime?: RuntimeUserConfig;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"module-tools",
|
|
16
16
|
"lib-tools"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.31.1",
|
|
19
19
|
"bin": {
|
|
20
20
|
"modern": "./bin/modern.js",
|
|
21
21
|
"modern-module": "./bin/modern.js"
|
|
@@ -50,19 +50,20 @@
|
|
|
50
50
|
"@babel/generator": "^7.21.5",
|
|
51
51
|
"@babel/types": "^7.21.5",
|
|
52
52
|
"@babel/traverse": "^7.21.5",
|
|
53
|
-
"postcss": "8.4.
|
|
53
|
+
"postcss": "8.4.27",
|
|
54
54
|
"@swc/helpers": "0.5.1",
|
|
55
|
-
"@modern-js/core": "2.
|
|
56
|
-
"@modern-js/libuild": "2.
|
|
57
|
-
"@modern-js/libuild-plugin-svgr": "2.
|
|
58
|
-
"@modern-js/libuild-plugin-swc": "2.
|
|
59
|
-
"@modern-js/new-action": "2.
|
|
60
|
-
"@modern-js/plugin": "2.
|
|
61
|
-
"@modern-js/plugin-changeset": "2.
|
|
62
|
-
"@modern-js/plugin-i18n": "2.
|
|
63
|
-
"@modern-js/plugin-lint": "2.
|
|
64
|
-
"@modern-js/
|
|
65
|
-
"@modern-js/
|
|
55
|
+
"@modern-js/core": "2.31.1",
|
|
56
|
+
"@modern-js/libuild": "2.31.1",
|
|
57
|
+
"@modern-js/libuild-plugin-svgr": "2.31.1",
|
|
58
|
+
"@modern-js/libuild-plugin-swc": "2.31.1",
|
|
59
|
+
"@modern-js/new-action": "2.31.1",
|
|
60
|
+
"@modern-js/plugin": "2.31.1",
|
|
61
|
+
"@modern-js/plugin-changeset": "2.31.1",
|
|
62
|
+
"@modern-js/plugin-i18n": "2.31.1",
|
|
63
|
+
"@modern-js/plugin-lint": "2.31.1",
|
|
64
|
+
"@modern-js/types": "2.31.1",
|
|
65
|
+
"@modern-js/upgrade": "2.31.1",
|
|
66
|
+
"@modern-js/utils": "2.31.1"
|
|
66
67
|
},
|
|
67
68
|
"devDependencies": {
|
|
68
69
|
"@types/babel__generator": "7.6.4",
|
|
@@ -77,10 +78,10 @@
|
|
|
77
78
|
"postcss-alias": "2.0.0",
|
|
78
79
|
"react": "17",
|
|
79
80
|
"typescript": "^5",
|
|
80
|
-
"@modern-js/builder-webpack-provider": "2.
|
|
81
|
-
"@modern-js/self": "npm:@modern-js/module-tools@2.
|
|
82
|
-
"@scripts/build": "2.
|
|
83
|
-
"@scripts/jest-config": "2.
|
|
81
|
+
"@modern-js/builder-webpack-provider": "2.31.1",
|
|
82
|
+
"@modern-js/self": "npm:@modern-js/module-tools@2.31.1",
|
|
83
|
+
"@scripts/build": "2.31.1",
|
|
84
|
+
"@scripts/jest-config": "2.31.1"
|
|
84
85
|
},
|
|
85
86
|
"publishConfig": {
|
|
86
87
|
"registry": "https://registry.npmjs.org/",
|