@modern-js/module-tools 0.0.0-nightly-20231204170637 → 0.0.0-nightly-20231206170639

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 (93) hide show
  1. package/dist/build.d.ts +1 -1
  2. package/dist/builder/build.d.ts +7 -7
  3. package/dist/builder/clear.d.ts +1 -1
  4. package/dist/builder/copy.d.ts +9 -9
  5. package/dist/builder/dts/index.d.ts +1 -1
  6. package/dist/builder/dts/rollup.d.ts +1 -13
  7. package/dist/builder/dts/tsc.d.ts +1 -1
  8. package/dist/builder/dts/tsc.js +2 -6
  9. package/dist/builder/esbuild/adapter.d.ts +1 -1
  10. package/dist/builder/esbuild/hook.d.ts +1 -1
  11. package/dist/builder/esbuild/index.d.ts +28 -28
  12. package/dist/builder/esbuild/resolve.d.ts +9 -9
  13. package/dist/builder/esbuild/sourcemap.d.ts +14 -14
  14. package/dist/builder/esbuild/transform.d.ts +4 -4
  15. package/dist/builder/esbuild/watch.d.ts +1 -1
  16. package/dist/builder/esbuild/write-file.d.ts +1 -1
  17. package/dist/builder/feature/asset.d.ts +5 -5
  18. package/dist/builder/feature/format-cjs.d.ts +3 -3
  19. package/dist/builder/feature/index.d.ts +1 -1
  20. package/dist/builder/feature/json.d.ts +3 -3
  21. package/dist/builder/feature/redirect.d.ts +3 -3
  22. package/dist/builder/feature/style/index.d.ts +3 -3
  23. package/dist/builder/feature/style/lessAliasPlugin.d.ts +7 -7
  24. package/dist/builder/feature/style/lessRender.d.ts +1 -1
  25. package/dist/builder/feature/style/postcssTransformer.d.ts +3 -3
  26. package/dist/builder/feature/style/postcssUrlPlugin.d.ts +3 -3
  27. package/dist/builder/feature/style/sassRender.d.ts +1 -1
  28. package/dist/builder/feature/style/transformStyle.d.ts +7 -7
  29. package/dist/builder/feature/style/utils.d.ts +3 -3
  30. package/dist/builder/feature/swc.d.ts +5 -5
  31. package/dist/builder/feature/terser.d.ts +3 -3
  32. package/dist/builder/index.d.ts +4 -4
  33. package/dist/builder/platform.d.ts +1 -1
  34. package/dist/cli.d.ts +1 -1
  35. package/dist/command.d.ts +1 -1
  36. package/dist/config/defineConfig.d.ts +1 -1
  37. package/dist/config/merge.d.ts +4 -4
  38. package/dist/config/normalize.d.ts +3 -3
  39. package/dist/config/transformLegacyConfig.d.ts +1 -1
  40. package/dist/config/valid.d.ts +1 -1
  41. package/dist/constants/build.d.ts +1 -1
  42. package/dist/constants/color.d.ts +1 -1
  43. package/dist/constants/dts.d.ts +1 -1
  44. package/dist/constants/file.d.ts +1 -1
  45. package/dist/constants/legacy-preset.d.ts +11 -11
  46. package/dist/constants/loader.d.ts +1 -1
  47. package/dist/constants/log.d.ts +1 -1
  48. package/dist/constants/preset.d.ts +5 -5
  49. package/dist/debug.d.ts +1 -1
  50. package/dist/dev.d.ts +1 -1
  51. package/dist/error.d.ts +19 -19
  52. package/dist/hooks/build.d.ts +16 -16
  53. package/dist/hooks/dev.d.ts +11 -11
  54. package/dist/hooks/index.d.ts +29 -29
  55. package/dist/hooks/misc.d.ts +11 -11
  56. package/dist/index.d.ts +1 -1
  57. package/dist/locale/en.d.ts +40 -40
  58. package/dist/locale/index.d.ts +79 -79
  59. package/dist/locale/zh.d.ts +40 -40
  60. package/dist/plugins.d.ts +1 -1
  61. package/dist/types/color.d.ts +1 -1
  62. package/dist/types/command.d.ts +9 -9
  63. package/dist/types/config/copy.d.ts +10 -10
  64. package/dist/types/config/dev.d.ts +4 -4
  65. package/dist/types/config/index.d.ts +106 -106
  66. package/dist/types/config/style.d.ts +37 -37
  67. package/dist/types/context.d.ts +4 -4
  68. package/dist/types/dts.d.ts +39 -39
  69. package/dist/types/esbuild.d.ts +77 -77
  70. package/dist/types/hooks.d.ts +14 -14
  71. package/dist/types/index.d.ts +7 -7
  72. package/dist/types/legacyConfig/index.d.ts +8 -8
  73. package/dist/types/legacyConfig/output.d.ts +44 -44
  74. package/dist/types/legacyConfig/source.d.ts +10 -10
  75. package/dist/types/legacyConfig/tools.d.ts +39 -39
  76. package/dist/utils/assert.d.ts +1 -1
  77. package/dist/utils/builder.d.ts +9 -9
  78. package/dist/utils/common.d.ts +1 -1
  79. package/dist/utils/dts.d.ts +4 -18
  80. package/dist/utils/dts.js +69 -44
  81. package/dist/utils/hash.d.ts +1 -1
  82. package/dist/utils/index.d.ts +1 -2
  83. package/dist/utils/index.js +0 -2
  84. package/dist/utils/input.d.ts +5 -8
  85. package/dist/utils/log.d.ts +1 -1
  86. package/dist/utils/map.d.ts +5 -5
  87. package/dist/utils/onExit.d.ts +1 -1
  88. package/dist/utils/outExtension.d.ts +6 -6
  89. package/dist/utils/print.d.ts +3 -3
  90. package/dist/utils/style.d.ts +7 -7
  91. package/package.json +14 -20
  92. package/dist/utils/tspath.d.ts +0 -15
  93. package/dist/utils/tspath.js +0 -114
@@ -5,22 +5,22 @@ export declare const npmLibraryWithUmdPresetConfig: PartialBaseBuildConfig[];
5
5
  export declare const npmComponentPresetConfig: PartialBaseBuildConfig[];
6
6
  export declare const npmComponentWithUmdPresetConfig: PartialBaseBuildConfig[];
7
7
  export declare const libraryPreset: {
8
- 'npm-library': PartialBaseBuildConfig[];
8
+ 'npm-library': PartialBaseBuildConfig[];
9
9
  };
10
10
  export declare const libraryPresetWithTarget: Record<"npm-library-es6" | "npm-library-esnext" | "npm-library-es5" | "npm-library-es2015" | "npm-library-es2016" | "npm-library-es2017" | "npm-library-es2018" | "npm-library-es2019" | "npm-library-es2020" | "npm-library-es2021" | "npm-library-es2022", PartialBaseBuildConfig[]>;
11
11
  export declare const libraryUmdPreset: {
12
- 'npm-library-with-umd': PartialBaseBuildConfig[];
12
+ 'npm-library-with-umd': PartialBaseBuildConfig[];
13
13
  };
14
14
  export declare const libraryUmdPresetWithTarget: Record<"npm-library-with-umd-es6" | "npm-library-with-umd-esnext" | "npm-library-with-umd-es5" | "npm-library-with-umd-es2015" | "npm-library-with-umd-es2016" | "npm-library-with-umd-es2017" | "npm-library-with-umd-es2018" | "npm-library-with-umd-es2019" | "npm-library-with-umd-es2020" | "npm-library-with-umd-es2021" | "npm-library-with-umd-es2022", PartialBaseBuildConfig[]>;
15
15
  export declare const componentPreset: {
16
- 'npm-component': PartialBaseBuildConfig[];
16
+ 'npm-component': PartialBaseBuildConfig[];
17
17
  };
18
18
  export declare const componentPresetWithTarget: Record<"npm-component-es6" | "npm-component-esnext" | "npm-component-es5" | "npm-component-es2015" | "npm-component-es2016" | "npm-component-es2017" | "npm-component-es2018" | "npm-component-es2019" | "npm-component-es2020" | "npm-component-es2021" | "npm-component-es2022", PartialBaseBuildConfig[]>;
19
19
  export declare const componentUmdPreset: {
20
- 'npm-component-with-umd': PartialBaseBuildConfig[];
20
+ 'npm-component-with-umd': PartialBaseBuildConfig[];
21
21
  };
22
22
  export declare const componentUmdPresetWithTarget: Record<"npm-component-with-umd-es6" | "npm-component-with-umd-esnext" | "npm-component-with-umd-es5" | "npm-component-with-umd-es2015" | "npm-component-with-umd-es2016" | "npm-component-with-umd-es2017" | "npm-component-with-umd-es2018" | "npm-component-with-umd-es2019" | "npm-component-with-umd-es2020" | "npm-component-with-umd-es2021" | "npm-component-with-umd-es2022", PartialBaseBuildConfig[]>;
23
23
  export declare const nodeBuildConfig: PartialBaseBuildConfig[];
24
24
  export declare const universalBuildConfig: PartialBaseBuildConfig[];
25
25
  export declare const presetList: Record<string, PartialBaseBuildConfig[]>;
26
- export declare const internalPreset: Record<string, PartialBaseBuildConfig[]>;
26
+ export declare const internalPreset: Record<string, PartialBaseBuildConfig[]>;
package/dist/debug.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { debug as Debugger } from '@modern-js/utils';
2
2
  export declare const debug: Debugger.Debugger;
3
3
  export declare const label: (info: string) => string;
4
- export declare const debugResolve: Debugger.Debugger;
4
+ export declare const debugResolve: Debugger.Debugger;
package/dist/dev.d.ts CHANGED
@@ -3,4 +3,4 @@ import type { DevCommandOptions } from './types/command';
3
3
  import type { ModuleContext } from './types/context';
4
4
  import type { DevToolData, ModuleTools } from './types';
5
5
  export declare const showMenu: (metas: DevToolData[], devCmdOptions: DevCommandOptions, api: PluginAPI<ModuleTools>, context: ModuleContext) => Promise<void>;
6
- export declare const dev: (options: DevCommandOptions, metas: DevToolData[], api: PluginAPI<ModuleTools>, context: ModuleContext) => Promise<void>;
6
+ export declare const dev: (options: DevCommandOptions, metas: DevToolData[], api: PluginAPI<ModuleTools>, context: ModuleContext) => Promise<void>;
package/dist/error.d.ts CHANGED
@@ -1,33 +1,33 @@
1
1
  import type { ExecaError } from '@modern-js/utils';
2
2
  import type { BuildType, Format, Target } from './types';
3
3
  export declare const padSpaceWith: (str: string, targetL: number, opts?: {
4
- endStr?: string | undefined;
5
- style?: ((s: string) => string) | undefined;
4
+ endStr?: string | undefined;
5
+ style?: ((s: string) => string) | undefined;
6
6
  }) => string;
7
7
  export declare class InternalBuildError extends Error {
8
- buildType: BuildType;
9
- target: Target;
10
- format: Format;
11
- private e;
12
- constructor(e: Error, opts: {
13
8
  buildType: BuildType;
14
- format: Format;
15
9
  target: Target;
16
- });
17
- toString(): string;
18
- formatError(): string[];
10
+ format: Format;
11
+ private e;
12
+ constructor(e: Error, opts: {
13
+ buildType: BuildType;
14
+ format: Format;
15
+ target: Target;
16
+ });
17
+ toString(): string;
18
+ formatError(): string[];
19
19
  }
20
20
  export declare class InternalDTSError extends Error {
21
- buildType: BuildType;
22
- private e;
23
- constructor(e: Error | ExecaError, opts: {
24
21
  buildType: BuildType;
25
- });
26
- toString(): string;
27
- formatError(): string[];
22
+ private e;
23
+ constructor(e: Error | ExecaError, opts: {
24
+ buildType: BuildType;
25
+ });
26
+ toString(): string;
27
+ formatError(): string[];
28
28
  }
29
29
  export declare class ModuleBuildError extends Error {
30
- constructor(e: InternalBuildError | InternalDTSError);
30
+ constructor(e: InternalBuildError | InternalDTSError);
31
31
  }
32
32
  export declare const isInternalError: (e: unknown) => e is InternalBuildError | InternalDTSError;
33
- export declare const isExecaError: (e: any) => e is ExecaError<string>;
33
+ export declare const isExecaError: (e: any) => e is ExecaError<string>;
@@ -2,21 +2,21 @@ import type { RegisterBuildPlatformResult } from '@modern-js/core';
2
2
  import { BuildCommandOptions } from '../types';
3
3
  import type { BuildTaskResult, BuildResult, BuildPlatformResult, WatchDtsHookContext, WatchJsHookContext, BaseBuildConfig } from '../types';
4
4
  export declare const buildHooks: {
5
- beforeBuild: import("@modern-js/plugin").ParallelWorkflow<{
6
- config: BaseBuildConfig[];
7
- cliOptions: BuildCommandOptions;
8
- }, void>;
9
- beforeBuildTask: import("@modern-js/plugin").AsyncWaterfall<BaseBuildConfig>;
10
- afterBuildTask: import("@modern-js/plugin").ParallelWorkflow<BuildTaskResult, void>;
11
- afterBuild: import("@modern-js/plugin").ParallelWorkflow<BuildResult, void>;
12
- registerBuildPlatform: import("@modern-js/plugin").ParallelWorkflow<void, RegisterBuildPlatformResult>;
13
- beforeBuildPlatform: import("@modern-js/plugin").ParallelWorkflow<RegisterBuildPlatformResult[], void>;
14
- buildPlatform: import("@modern-js/plugin").ParallelWorkflow<{
15
- platform: string;
16
- }, void>;
17
- afterBuildPlatform: import("@modern-js/plugin").ParallelWorkflow<BuildPlatformResult, void>;
5
+ beforeBuild: import("@modern-js/plugin").ParallelWorkflow<{
6
+ config: BaseBuildConfig[];
7
+ cliOptions: BuildCommandOptions;
8
+ }, void>;
9
+ beforeBuildTask: import("@modern-js/plugin").AsyncWaterfall<BaseBuildConfig>;
10
+ afterBuildTask: import("@modern-js/plugin").ParallelWorkflow<BuildTaskResult, void>;
11
+ afterBuild: import("@modern-js/plugin").ParallelWorkflow<BuildResult, void>;
12
+ registerBuildPlatform: import("@modern-js/plugin").ParallelWorkflow<void, RegisterBuildPlatformResult>;
13
+ beforeBuildPlatform: import("@modern-js/plugin").ParallelWorkflow<RegisterBuildPlatformResult[], void>;
14
+ buildPlatform: import("@modern-js/plugin").ParallelWorkflow<{
15
+ platform: string;
16
+ }, void>;
17
+ afterBuildPlatform: import("@modern-js/plugin").ParallelWorkflow<BuildPlatformResult, void>;
18
18
  };
19
19
  export declare const buildWatchHooks: {
20
- buildWatchJs: import("@modern-js/plugin").ParallelWorkflow<WatchJsHookContext, void>;
21
- buildWatchDts: import("@modern-js/plugin").ParallelWorkflow<WatchDtsHookContext, void>;
22
- };
20
+ buildWatchJs: import("@modern-js/plugin").ParallelWorkflow<WatchJsHookContext, void>;
21
+ buildWatchDts: import("@modern-js/plugin").ParallelWorkflow<WatchDtsHookContext, void>;
22
+ };
@@ -1,13 +1,13 @@
1
1
  import type { DevToolData, PromptResult } from '../types/hooks';
2
2
  export declare const devHooks: {
3
- registerDev: import("@modern-js/plugin").ParallelWorkflow<void, DevToolData>;
4
- beforeDev: import("@modern-js/plugin").ParallelWorkflow<DevToolData[], void>;
5
- beforeDevMenu: import("@modern-js/plugin").AsyncWaterfall<any>;
6
- afterDevMenu: import("@modern-js/plugin").ParallelWorkflow<{
7
- result: PromptResult;
8
- devTools: DevToolData[];
9
- }, void>;
10
- beforeDevTask: import("@modern-js/plugin").ParallelWorkflow<DevToolData, void>;
11
- afterDev: import("@modern-js/plugin").ParallelWorkflow<void, void>;
12
- noDevTools: import("@modern-js/plugin").AsyncWaterfall<string>;
13
- };
3
+ registerDev: import("@modern-js/plugin").ParallelWorkflow<void, DevToolData>;
4
+ beforeDev: import("@modern-js/plugin").ParallelWorkflow<DevToolData[], void>;
5
+ beforeDevMenu: import("@modern-js/plugin").AsyncWaterfall<any>;
6
+ afterDevMenu: import("@modern-js/plugin").ParallelWorkflow<{
7
+ result: PromptResult;
8
+ devTools: DevToolData[];
9
+ }, void>;
10
+ beforeDevTask: import("@modern-js/plugin").ParallelWorkflow<DevToolData, void>;
11
+ afterDev: import("@modern-js/plugin").ParallelWorkflow<void, void>;
12
+ noDevTools: import("@modern-js/plugin").AsyncWaterfall<string>;
13
+ };
@@ -1,30 +1,30 @@
1
1
  export declare const registerHook: {
2
- buildWatchJs: import("@modern-js/plugin").ParallelWorkflow<import("..").WatchJsHookContext, void>;
3
- buildWatchDts: import("@modern-js/plugin").ParallelWorkflow<import("..").WatchDtsHookContext, void>;
4
- addRuntimeExports: import("@modern-js/plugin").AsyncWaterfall<void>;
5
- resolveModuleUserConfig: import("@modern-js/plugin").AsyncWaterfall<import("..").ModuleUserConfig>;
6
- modifyLibuild: import("@modern-js/plugin").AsyncPipeline<unknown, unknown>;
7
- registerDev: import("@modern-js/plugin").ParallelWorkflow<void, import("..").DevToolData>;
8
- beforeDev: import("@modern-js/plugin").ParallelWorkflow<import("..").DevToolData[], void>;
9
- beforeDevMenu: import("@modern-js/plugin").AsyncWaterfall<any>;
10
- afterDevMenu: import("@modern-js/plugin").ParallelWorkflow<{
11
- result: import("..").PromptResult;
12
- devTools: import("..").DevToolData[];
13
- }, void>;
14
- beforeDevTask: import("@modern-js/plugin").ParallelWorkflow<import("..").DevToolData, void>;
15
- afterDev: import("@modern-js/plugin").ParallelWorkflow<void, void>;
16
- noDevTools: import("@modern-js/plugin").AsyncWaterfall<string>;
17
- beforeBuild: import("@modern-js/plugin").ParallelWorkflow<{
18
- config: import("..").BaseBuildConfig[];
19
- cliOptions: import("..").BuildCommandOptions;
20
- }, void>;
21
- beforeBuildTask: import("@modern-js/plugin").AsyncWaterfall<import("..").BaseBuildConfig>;
22
- afterBuildTask: import("@modern-js/plugin").ParallelWorkflow<import("..").BuildTaskResult, void>;
23
- afterBuild: import("@modern-js/plugin").ParallelWorkflow<import("..").BuildResult, void>;
24
- registerBuildPlatform: import("@modern-js/plugin").ParallelWorkflow<void, import("@modern-js/core").RegisterBuildPlatformResult>;
25
- beforeBuildPlatform: import("@modern-js/plugin").ParallelWorkflow<import("@modern-js/core").RegisterBuildPlatformResult[], void>;
26
- buildPlatform: import("@modern-js/plugin").ParallelWorkflow<{
27
- platform: string;
28
- }, void>;
29
- afterBuildPlatform: import("@modern-js/plugin").ParallelWorkflow<import("..").BuildPlatformResult, void>;
30
- };
2
+ buildWatchJs: import("@modern-js/plugin").ParallelWorkflow<import("..").WatchJsHookContext, void>;
3
+ buildWatchDts: import("@modern-js/plugin").ParallelWorkflow<import("..").WatchDtsHookContext, void>;
4
+ addRuntimeExports: import("@modern-js/plugin").AsyncWaterfall<void>;
5
+ resolveModuleUserConfig: import("@modern-js/plugin").AsyncWaterfall<import("..").ModuleUserConfig>;
6
+ modifyLibuild: import("@modern-js/plugin").AsyncPipeline<unknown, unknown>;
7
+ registerDev: import("@modern-js/plugin").ParallelWorkflow<void, import("..").DevToolData>;
8
+ beforeDev: import("@modern-js/plugin").ParallelWorkflow<import("..").DevToolData[], void>;
9
+ beforeDevMenu: import("@modern-js/plugin").AsyncWaterfall<any>;
10
+ afterDevMenu: import("@modern-js/plugin").ParallelWorkflow<{
11
+ result: import("..").PromptResult;
12
+ devTools: import("..").DevToolData[];
13
+ }, void>;
14
+ beforeDevTask: import("@modern-js/plugin").ParallelWorkflow<import("..").DevToolData, void>;
15
+ afterDev: import("@modern-js/plugin").ParallelWorkflow<void, void>;
16
+ noDevTools: import("@modern-js/plugin").AsyncWaterfall<string>;
17
+ beforeBuild: import("@modern-js/plugin").ParallelWorkflow<{
18
+ config: import("..").BaseBuildConfig[];
19
+ cliOptions: import("..").BuildCommandOptions;
20
+ }, void>;
21
+ beforeBuildTask: import("@modern-js/plugin").AsyncWaterfall<import("..").BaseBuildConfig>;
22
+ afterBuildTask: import("@modern-js/plugin").ParallelWorkflow<import("..").BuildTaskResult, void>;
23
+ afterBuild: import("@modern-js/plugin").ParallelWorkflow<import("..").BuildResult, void>;
24
+ registerBuildPlatform: import("@modern-js/plugin").ParallelWorkflow<void, import("@modern-js/core").RegisterBuildPlatformResult>;
25
+ beforeBuildPlatform: import("@modern-js/plugin").ParallelWorkflow<import("@modern-js/core").RegisterBuildPlatformResult[], void>;
26
+ buildPlatform: import("@modern-js/plugin").ParallelWorkflow<{
27
+ platform: string;
28
+ }, void>;
29
+ afterBuildPlatform: import("@modern-js/plugin").ParallelWorkflow<import("..").BuildPlatformResult, void>;
30
+ };
@@ -1,13 +1,13 @@
1
1
  import { ModuleUserConfig } from '../types';
2
2
  export declare const miscHooks: {
3
- addRuntimeExports: import("@modern-js/plugin").AsyncWaterfall<void>;
4
- /**
5
- * Change user configuration
6
- */
7
- resolveModuleUserConfig: import("@modern-js/plugin").AsyncWaterfall<ModuleUserConfig>;
8
- /**
9
- * @deprecated
10
- * use buildConfig.hooks and buildConfig.esbuildOptions instead.
11
- */
12
- modifyLibuild: import("@modern-js/plugin").AsyncPipeline<unknown, unknown>;
13
- };
3
+ addRuntimeExports: import("@modern-js/plugin").AsyncWaterfall<void>;
4
+ /**
5
+ * Change user configuration
6
+ */
7
+ resolveModuleUserConfig: import("@modern-js/plugin").AsyncWaterfall<ModuleUserConfig>;
8
+ /**
9
+ * @deprecated
10
+ * use buildConfig.hooks and buildConfig.esbuildOptions instead.
11
+ */
12
+ modifyLibuild: import("@modern-js/plugin").AsyncPipeline<unknown, unknown>;
13
+ };
package/dist/index.d.ts CHANGED
@@ -4,4 +4,4 @@ export { legacyPresets } from './constants/legacy-preset';
4
4
  export * from './types';
5
5
  export { moduleTools };
6
6
  export default moduleTools;
7
- export * from './utils/assert';
7
+ export * from './utils/assert';
@@ -1,45 +1,45 @@
1
1
  export declare const EN_LOCALE: {
2
- command: {
3
- shared: {
4
- config: string;
5
- noNeedInstall: string;
2
+ command: {
3
+ shared: {
4
+ config: string;
5
+ noNeedInstall: string;
6
+ };
7
+ build: {
8
+ describe: string;
9
+ watch: string;
10
+ tsconfig: string;
11
+ styleOnly: string;
12
+ platform: string;
13
+ noTsc: string;
14
+ dts: string;
15
+ noClear: string;
16
+ };
17
+ dev: {
18
+ describe: string;
19
+ tsconfig: string;
20
+ };
21
+ new: {
22
+ describe: string;
23
+ debug: string;
24
+ config: string;
25
+ distTag: string;
26
+ registry: string;
27
+ lang: string;
28
+ };
6
29
  };
7
- build: {
8
- describe: string;
9
- watch: string;
10
- tsconfig: string;
11
- styleOnly: string;
12
- platform: string;
13
- noTsc: string;
14
- dts: string;
15
- noClear: string;
30
+ log: {
31
+ dev: {
32
+ noDevtools: string;
33
+ };
34
+ buildConfigTip: string;
16
35
  };
17
- dev: {
18
- describe: string;
19
- tsconfig: string;
36
+ errors: {
37
+ externalHelpers: string;
20
38
  };
21
- new: {
22
- describe: string;
23
- debug: string;
24
- config: string;
25
- distTag: string;
26
- registry: string;
27
- lang: string;
39
+ warns: {
40
+ dts: {
41
+ abortOnError: string;
42
+ };
43
+ clearRootPath: string;
28
44
  };
29
- };
30
- log: {
31
- dev: {
32
- noDevtools: string;
33
- };
34
- buildConfigTip: string;
35
- };
36
- errors: {
37
- externalHelpers: string;
38
- };
39
- warns: {
40
- dts: {
41
- abortOnError: string;
42
- };
43
- clearRootPath: string;
44
- };
45
- };
45
+ };
@@ -1,92 +1,92 @@
1
1
  import { I18n } from '@modern-js/plugin-i18n';
2
2
  declare const i18n: I18n;
3
3
  declare const localeKeys: {
4
- command: {
5
- shared: {
6
- config: string;
7
- noNeedInstall: string;
4
+ command: {
5
+ shared: {
6
+ config: string;
7
+ noNeedInstall: string;
8
+ };
9
+ build: {
10
+ describe: string;
11
+ watch: string;
12
+ tsconfig: string;
13
+ styleOnly: string;
14
+ platform: string;
15
+ noTsc: string;
16
+ dts: string;
17
+ noClear: string;
18
+ };
19
+ dev: {
20
+ describe: string;
21
+ tsconfig: string;
22
+ };
23
+ new: {
24
+ describe: string;
25
+ debug: string;
26
+ config: string;
27
+ distTag: string;
28
+ registry: string;
29
+ lang: string;
30
+ };
8
31
  };
9
- build: {
10
- describe: string;
11
- watch: string;
12
- tsconfig: string;
13
- styleOnly: string;
14
- platform: string;
15
- noTsc: string;
16
- dts: string;
17
- noClear: string;
32
+ log: {
33
+ dev: {
34
+ noDevtools: string;
35
+ };
36
+ buildConfigTip: string;
18
37
  };
19
- dev: {
20
- describe: string;
21
- tsconfig: string;
38
+ errors: {
39
+ externalHelpers: string;
22
40
  };
23
- new: {
24
- describe: string;
25
- debug: string;
26
- config: string;
27
- distTag: string;
28
- registry: string;
29
- lang: string;
41
+ warns: {
42
+ dts: {
43
+ abortOnError: string;
44
+ };
45
+ clearRootPath: string;
30
46
  };
31
- };
32
- log: {
33
- dev: {
34
- noDevtools: string;
35
- };
36
- buildConfigTip: string;
37
- };
38
- errors: {
39
- externalHelpers: string;
40
- };
41
- warns: {
42
- dts: {
43
- abortOnError: string;
44
- };
45
- clearRootPath: string;
46
- };
47
47
  } | {
48
- command: {
49
- shared: {
50
- config: string;
51
- noNeedInstall: string;
52
- };
53
- build: {
54
- describe: string;
55
- watch: string;
56
- tsconfig: string;
57
- styleOnly: string;
58
- platform: string;
59
- noTsc: string;
60
- dts: string;
61
- noClear: string;
62
- };
63
- dev: {
64
- describe: string;
65
- tsconfig: string;
48
+ command: {
49
+ shared: {
50
+ config: string;
51
+ noNeedInstall: string;
52
+ };
53
+ build: {
54
+ describe: string;
55
+ watch: string;
56
+ tsconfig: string;
57
+ styleOnly: string;
58
+ platform: string;
59
+ noTsc: string;
60
+ dts: string;
61
+ noClear: string;
62
+ };
63
+ dev: {
64
+ describe: string;
65
+ tsconfig: string;
66
+ };
67
+ new: {
68
+ describe: string;
69
+ debug: string;
70
+ config: string;
71
+ distTag: string;
72
+ registry: string;
73
+ lang: string;
74
+ };
66
75
  };
67
- new: {
68
- describe: string;
69
- debug: string;
70
- config: string;
71
- distTag: string;
72
- registry: string;
73
- lang: string;
76
+ log: {
77
+ dev: {
78
+ noDevtools: string;
79
+ };
80
+ buildConfigTip: string;
74
81
  };
75
- };
76
- log: {
77
- dev: {
78
- noDevtools: string;
82
+ errors: {
83
+ externalHelpers: string;
79
84
  };
80
- buildConfigTip: string;
81
- };
82
- errors: {
83
- externalHelpers: string;
84
- };
85
- warns: {
86
- dts: {
87
- abortOnError: string;
85
+ warns: {
86
+ dts: {
87
+ abortOnError: string;
88
+ };
89
+ clearRootPath: string;
88
90
  };
89
- clearRootPath: string;
90
- };
91
91
  };
92
- export { i18n, localeKeys };
92
+ export { i18n, localeKeys };
@@ -1,45 +1,45 @@
1
1
  export declare const ZH_LOCALE: {
2
- command: {
3
- shared: {
4
- config: string;
5
- noNeedInstall: string;
2
+ command: {
3
+ shared: {
4
+ config: string;
5
+ noNeedInstall: string;
6
+ };
7
+ build: {
8
+ describe: string;
9
+ watch: string;
10
+ tsconfig: string;
11
+ styleOnly: string;
12
+ platform: string;
13
+ noTsc: string;
14
+ dts: string;
15
+ noClear: string;
16
+ };
17
+ dev: {
18
+ describe: string;
19
+ tsconfig: string;
20
+ };
21
+ new: {
22
+ describe: string;
23
+ debug: string;
24
+ config: string;
25
+ distTag: string;
26
+ registry: string;
27
+ lang: string;
28
+ };
6
29
  };
7
- build: {
8
- describe: string;
9
- watch: string;
10
- tsconfig: string;
11
- styleOnly: string;
12
- platform: string;
13
- noTsc: string;
14
- dts: string;
15
- noClear: string;
30
+ log: {
31
+ dev: {
32
+ noDevtools: string;
33
+ };
34
+ buildConfigTip: string;
16
35
  };
17
- dev: {
18
- describe: string;
19
- tsconfig: string;
36
+ errors: {
37
+ externalHelpers: string;
20
38
  };
21
- new: {
22
- describe: string;
23
- debug: string;
24
- config: string;
25
- distTag: string;
26
- registry: string;
27
- lang: string;
39
+ warns: {
40
+ dts: {
41
+ abortOnError: string;
42
+ };
43
+ clearRootPath: string;
28
44
  };
29
- };
30
- log: {
31
- dev: {
32
- noDevtools: string;
33
- };
34
- buildConfigTip: string;
35
- };
36
- errors: {
37
- externalHelpers: string;
38
- };
39
- warns: {
40
- dts: {
41
- abortOnError: string;
42
- };
43
- clearRootPath: string;
44
- };
45
- };
45
+ };
package/dist/plugins.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import type { CliPlugin } from '@modern-js/core';
2
- export declare const getPlugins: (runningCmd: string) => CliPlugin[];
2
+ export declare const getPlugins: (runningCmd: string) => CliPlugin[];
@@ -1 +1 @@
1
- export type RGB = [number, number, number];
1
+ export type RGB = [number, number, number];
@@ -1,12 +1,12 @@
1
1
  export interface DevCommandOptions {
2
- port?: string;
3
- tsconfig?: string;
2
+ port?: string;
3
+ tsconfig?: string;
4
4
  }
5
5
  export interface BuildCommandOptions {
6
- clear: boolean;
7
- dts: boolean;
8
- watch: boolean;
9
- config?: string;
10
- platform?: boolean | string[];
11
- tsconfig?: string;
12
- }
6
+ clear: boolean;
7
+ dts: boolean;
8
+ watch: boolean;
9
+ config?: string;
10
+ platform?: boolean | string[];
11
+ tsconfig?: string;
12
+ }
@@ -1,15 +1,15 @@
1
1
  import type { globby } from '@modern-js/utils';
2
2
  export interface CopyPattern {
3
- from: string;
4
- to?: string;
5
- context?: string;
6
- globOptions?: globby.GlobbyOptions;
3
+ from: string;
4
+ to?: string;
5
+ context?: string;
6
+ globOptions?: globby.GlobbyOptions;
7
7
  }
8
8
  export interface CopyOptions {
9
- patterns?: CopyPattern[];
10
- options?: {
11
- concurrency?: number;
12
- enableCopySync?: boolean;
13
- };
9
+ patterns?: CopyPattern[];
10
+ options?: {
11
+ concurrency?: number;
12
+ enableCopySync?: boolean;
13
+ };
14
14
  }
15
- export type CopyConfig = CopyOptions;
15
+ export type CopyConfig = CopyOptions;