@modern-js/core 1.7.0 → 1.7.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.
@@ -1,4 +1,4 @@
1
- import { program, Command } from '@modern-js/utils';
1
+ import { program } from '@modern-js/utils';
2
2
  export function initCommandsMap() {
3
3
  if (!program.hasOwnProperty('commandsMap')) {
4
4
  Object.defineProperty(program, 'commandsMap', {
@@ -53,4 +53,9 @@ export declare const cli: {
53
53
  run: (argv: string[], options?: CoreOptions | undefined) => Promise<void>;
54
54
  restart: () => Promise<void>;
55
55
  };
56
- export { initAppDir, initAppContext };
56
+ export { initAppDir, initAppContext };
57
+ declare module '@modern-js/utils/compiled/commander' {
58
+ interface Command {
59
+ commandsMap: Map<string, Command>;
60
+ }
61
+ }
@@ -1,6 +1,6 @@
1
1
  import { ToThreads, ToRunners, AsyncSetup, PluginOptions, AsyncWorkflow, AsyncWaterfall, ParallelWorkflow } from '@modern-js/plugin';
2
- import { Command } from '@modern-js/utils';
3
2
  import type { Hooks } from '@modern-js/types';
3
+ import type { Command } from './utils/commander';
4
4
  import type { NormalizedConfig } from './config/mergeConfig';
5
5
  import { pluginAPI } from './pluginAPI';
6
6
  export declare type HooksRunner = ToRunners<{
@@ -1,8 +1,4 @@
1
- import { program } from '@modern-js/utils';
2
- declare module '@modern-js/utils/compiled/commander' {
3
- interface Command {
4
- commandsMap: Map<string, Command>;
5
- }
6
- }
1
+ import { program, Command } from '@modern-js/utils';
7
2
  export declare function initCommandsMap(): void;
3
+ export type { Command };
8
4
  export { program };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.7.0",
14
+ "version": "1.7.1",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -44,7 +44,7 @@
44
44
  "@babel/runtime": "^7",
45
45
  "@modern-js/load-config": "^1.3.0",
46
46
  "@modern-js/plugin": "^1.3.2",
47
- "@modern-js/utils": "^1.4.0",
47
+ "@modern-js/utils": "^1.4.1",
48
48
  "address": "^1.1.2",
49
49
  "ajv": "^8.6.2",
50
50
  "ajv-keywords": "^5.0.0",