@modern-js/module-tools 0.0.0-windows-202110385642 → 0.0.0-windows-20211056953

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,25 +1,25 @@
1
1
  # @modern-js/module-tools
2
2
 
3
- ## 0.0.0-windows-202110385642
3
+ ## 0.0.0-windows-20211056953
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - windows
8
- - Updated dependencies [6b802b2]
7
+ - test windows
9
8
  - Updated dependencies [undefined]
10
- - @modern-js/babel-preset-module@0.0.0-windows-202110385642
11
- - @modern-js/core@0.0.0-windows-202110385642
12
- - @modern-js/css-config@0.0.0-windows-202110385642
13
- - @modern-js/plugin-analyze@0.0.0-windows-202110385642
14
- - @modern-js/plugin-changeset@0.0.0-windows-202110385642
15
- - @modern-js/plugin-fast-refresh@0.0.0-windows-202110385642
16
- - @modern-js/new-action@0.0.0-windows-202110385642
17
- - @modern-js/style-compiler@0.0.0-windows-202110385642
18
- - @modern-js/utils@0.0.0-windows-202110385642
19
- - @modern-js/i18n-cli-language-detector@0.0.0-windows-202110385642
20
- - @modern-js/plugin-i18n@0.0.0-windows-202110385642
21
- - @modern-js/babel-compiler@0.0.0-windows-202110385642
22
- - @modern-js/module-tools-hooks@0.0.0-windows-202110385642
9
+ - Updated dependencies [6b802b2]
10
+ - @modern-js/babel-preset-module@0.0.0-windows-20211056953
11
+ - @modern-js/core@0.0.0-windows-20211056953
12
+ - @modern-js/css-config@0.0.0-windows-20211056953
13
+ - @modern-js/i18n-cli-language-detector@0.0.0-windows-20211056953
14
+ - @modern-js/plugin-analyze@0.0.0-windows-20211056953
15
+ - @modern-js/plugin-changeset@0.0.0-windows-20211056953
16
+ - @modern-js/plugin-fast-refresh@0.0.0-windows-20211056953
17
+ - @modern-js/plugin-i18n@0.0.0-windows-20211056953
18
+ - @modern-js/new-action@0.0.0-windows-20211056953
19
+ - @modern-js/babel-compiler@0.0.0-windows-20211056953
20
+ - @modern-js/style-compiler@0.0.0-windows-20211056953
21
+ - @modern-js/module-tools-hooks@0.0.0-windows-20211056953
22
+ - @modern-js/utils@0.0.0-windows-20211056953
23
23
 
24
24
  ## 1.0.1
25
25
 
@@ -1,4 +1,5 @@
1
- import { Import, fs, path } from '@modern-js/utils';
1
+ import path from 'path';
2
+ import { Import, fs } from '@modern-js/utils';
2
3
  const buildFeature = Import.lazy('./build', require);
3
4
  const buildWatchFeature = Import.lazy('./build-watch', require); // const bp: typeof import('./build-platform') = Import.lazy(
4
5
  // './build-platform',
@@ -1,4 +1,3 @@
1
- /* eslint-disable max-classes-per-file */
2
1
  import * as path from 'path';
3
2
  import * as os from 'os';
4
3
  import { Import, chalk } from '@modern-js/utils';
@@ -189,6 +188,4 @@ export class TimeCounter {
189
188
  }
190
189
 
191
190
  }
192
- /* eslint-enable max-classes-per-file */
193
-
194
191
  TimeCounter._now = void 0;
@@ -1,4 +1,3 @@
1
- /* eslint-disable max-classes-per-file */
2
1
  import EventEmitter from 'events';
3
2
  import { Import } from '@modern-js/utils';
4
3
  const chalk = Import.lazy('chalk', require);
@@ -106,5 +105,4 @@ export class LoggerManager extends EventEmitter {
106
105
  console.info(loggerText.value);
107
106
  }
108
107
 
109
- }
110
- /* eslint-enable max-classes-per-file */
108
+ }
@@ -5,8 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.build = void 0;
7
7
 
8
+ var _path = _interopRequireDefault(require("path"));
9
+
8
10
  var _utils = require("@modern-js/utils");
9
11
 
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
10
14
  const buildFeature = _utils.Import.lazy('./build', require);
11
15
 
12
16
  const buildWatchFeature = _utils.Import.lazy('./build-watch', require); // const bp: typeof import('./build-platform') = Import.lazy(
@@ -39,7 +43,7 @@ const build = async (config, modernConfig) => {
39
43
  }
40
44
 
41
45
  if (clear) {
42
- _utils.fs.removeSync(_utils.path.join(appDirectory, outputPath));
46
+ _utils.fs.removeSync(_path.default.join(appDirectory, outputPath));
43
47
  }
44
48
 
45
49
  if (enableWatchMode) {
@@ -15,7 +15,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
 
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
 
18
- /* eslint-disable max-classes-per-file */
19
18
  const constants = _utils.Import.lazy('./constants', require);
20
19
 
21
20
  const core = _utils.Import.lazy('@modern-js/core', require); // 硬解字符串返回相应格式的对象
@@ -220,8 +219,6 @@ class TimeCounter {
220
219
  }
221
220
 
222
221
  }
223
- /* eslint-enable max-classes-per-file */
224
-
225
222
 
226
223
  exports.TimeCounter = TimeCounter;
227
224
  TimeCounter._now = void 0;
@@ -11,7 +11,6 @@ var _utils = require("@modern-js/utils");
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
 
14
- /* eslint-disable max-classes-per-file */
15
14
  const chalk = _utils.Import.lazy('chalk', require);
16
15
 
17
16
  const clearFlag = '\x1Bc';
@@ -127,7 +126,5 @@ class LoggerManager extends _events.default {
127
126
  }
128
127
 
129
128
  }
130
- /* eslint-enable max-classes-per-file */
131
-
132
129
 
133
130
  exports.LoggerManager = LoggerManager;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-windows-202110385642",
14
+ "version": "0.0.0-windows-20211056953",
15
15
  "bin": {
16
16
  "modern": "./bin/modern.js"
17
17
  },
@@ -44,19 +44,19 @@
44
44
  "@babel/runtime": "^7",
45
45
  "@babel/traverse": "^7.15.0",
46
46
  "@babel/types": "^7.15.0",
47
- "@modern-js/babel-compiler": "^0.0.0-windows-202110385642",
48
- "@modern-js/babel-preset-module": "^0.0.0-windows-202110385642",
49
- "@modern-js/core": "^0.0.0-windows-202110385642",
50
- "@modern-js/css-config": "^0.0.0-windows-202110385642",
51
- "@modern-js/i18n-cli-language-detector": "^0.0.0-windows-202110385642",
52
- "@modern-js/module-tools-hooks": "^0.0.0-windows-202110385642",
53
- "@modern-js/new-action": "^0.0.0-windows-202110385642",
54
- "@modern-js/plugin-analyze": "^0.0.0-windows-202110385642",
55
- "@modern-js/plugin-changeset": "^0.0.0-windows-202110385642",
56
- "@modern-js/plugin-fast-refresh": "^0.0.0-windows-202110385642",
57
- "@modern-js/plugin-i18n": "^0.0.0-windows-202110385642",
58
- "@modern-js/style-compiler": "^0.0.0-windows-202110385642",
59
- "@modern-js/utils": "^0.0.0-windows-202110385642",
47
+ "@modern-js/babel-compiler": "^0.0.0-windows-20211056953",
48
+ "@modern-js/babel-preset-module": "^0.0.0-windows-20211056953",
49
+ "@modern-js/core": "^0.0.0-windows-20211056953",
50
+ "@modern-js/css-config": "^0.0.0-windows-20211056953",
51
+ "@modern-js/i18n-cli-language-detector": "^0.0.0-windows-20211056953",
52
+ "@modern-js/module-tools-hooks": "^0.0.0-windows-20211056953",
53
+ "@modern-js/new-action": "^0.0.0-windows-20211056953",
54
+ "@modern-js/plugin-analyze": "^0.0.0-windows-20211056953",
55
+ "@modern-js/plugin-changeset": "^0.0.0-windows-20211056953",
56
+ "@modern-js/plugin-fast-refresh": "^0.0.0-windows-20211056953",
57
+ "@modern-js/plugin-i18n": "^0.0.0-windows-20211056953",
58
+ "@modern-js/style-compiler": "^0.0.0-windows-20211056953",
59
+ "@modern-js/utils": "^0.0.0-windows-20211056953",
60
60
  "chalk": "^4.1.2",
61
61
  "chokidar": "^3.5.2",
62
62
  "dotenv": "^10.0.0",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "devDependencies": {
77
77
  "@babel/preset-typescript": "^7.15.0",
78
- "@modern-js/babel-chain": "^0.0.0-windows-202110385642",
78
+ "@modern-js/babel-chain": "^0.0.0-windows-20211056953",
79
79
  "@types/babel__core": "^7.1.15",
80
80
  "@types/babel__generator": "^7.6.3",
81
81
  "@types/babel__traverse": "^7.14.2",
@@ -88,8 +88,8 @@
88
88
  "@types/signale": "^1.4.2",
89
89
  "commander": "^8.1.0",
90
90
  "typescript": "^4",
91
- "@modern-js/plugin-testing": "^0.0.0-windows-202110385642",
92
- "@modern-js/module-tools": "^0.0.0-windows-202110385642"
91
+ "@modern-js/plugin-testing": "^0.0.0-windows-20211056953",
92
+ "@modern-js/module-tools": "^0.0.0-windows-20211056953"
93
93
  },
94
94
  "sideEffects": false,
95
95
  "modernConfig": {
@@ -1,4 +1,5 @@
1
- import { Import, fs, path } from '@modern-js/utils';
1
+ import path from 'path';
2
+ import { Import, fs } from '@modern-js/utils';
2
3
  import type { NormalizedConfig } from '@modern-js/core';
3
4
  import type { IBuildConfig } from '../../types';
4
5
 
@@ -1,4 +1,3 @@
1
- /* eslint-disable max-classes-per-file */
2
1
  import * as path from 'path';
3
2
  import * as os from 'os';
4
3
  import { Import, chalk } from '@modern-js/utils';
@@ -234,5 +233,3 @@ export class TimeCounter {
234
233
  return span < 1000 ? `${span}ms` : `${(span / 1000).toFixed(2)}s`;
235
234
  }
236
235
  }
237
-
238
- /* eslint-enable max-classes-per-file */
@@ -1,4 +1,3 @@
1
- /* eslint-disable max-classes-per-file */
2
1
  import type { ChildProcess } from 'child_process';
3
2
  import EventEmitter from 'events';
4
3
  import { Import } from '@modern-js/utils';
@@ -140,5 +139,3 @@ export class LoggerManager extends EventEmitter {
140
139
  console.info(loggerText.value);
141
140
  }
142
141
  }
143
-
144
- /* eslint-enable max-classes-per-file */