@modern-js/server-utils 2.17.1 → 2.18.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,21 @@
1
1
  # @modern-js/server-utils
2
2
 
3
+ ## 2.18.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @modern-js/babel-preset-lib@2.18.1
8
+ - @modern-js/babel-compiler@2.18.1
9
+ - @modern-js/utils@2.18.1
10
+
11
+ ## 2.18.0
12
+
13
+ ### Patch Changes
14
+
15
+ - @modern-js/babel-preset-lib@2.18.0
16
+ - @modern-js/babel-compiler@2.18.0
17
+ - @modern-js/utils@2.18.0
18
+
3
19
  ## 2.17.1
4
20
 
5
21
  ### Patch Changes
@@ -30,7 +30,7 @@ function _async_to_generator(fn) {
30
30
  function _define_property(obj, key, value) {
31
31
  if (key in obj) {
32
32
  Object.defineProperty(obj, key, {
33
- value,
33
+ value: value,
34
34
  enumerable: true,
35
35
  configurable: true,
36
36
  writable: true
@@ -208,10 +208,10 @@ export var getBabelConfig = function(libPresetOption, syntaxOption) {
208
208
  export var resolveBabelConfig = function(appDirectory, config, option) {
209
209
  var alias = config.alias, babelConfig = config.babelConfig;
210
210
  var aliasConfig = getAliasConfig(alias, _object_spread({
211
- appDirectory
211
+ appDirectory: appDirectory
212
212
  }, option));
213
213
  var babelChain = getBabelChain({
214
- appDirectory,
214
+ appDirectory: appDirectory,
215
215
  enableReactPreset: true,
216
216
  enableTypescriptPreset: true,
217
217
  alias: aliasConfig,
@@ -291,8 +291,8 @@ export var compileByBabel = function() {
291
291
  2,
292
292
  compiler({
293
293
  rootDir: appDirectory,
294
- distDir,
295
- sourceDir,
294
+ distDir: distDir,
295
+ sourceDir: sourceDir,
296
296
  extensions: FILE_EXTENSIONS
297
297
  }, babelConfig)
298
298
  ];
@@ -41,7 +41,7 @@ function _async_to_generator(fn) {
41
41
  function _define_property(obj, key, value) {
42
42
  if (key in obj) {
43
43
  Object.defineProperty(obj, key, {
44
- value,
44
+ value: value,
45
45
  enumerable: true,
46
46
  configurable: true,
47
47
  writable: true
@@ -200,9 +200,9 @@ var readTsConfigByFile = function(tsConfigFile) {
200
200
  var parsedCmd = ts.getParsedCommandLineOfConfigFile(tsConfigFile, void 0, ts.sys);
201
201
  var options = parsedCmd.options, fileNames = parsedCmd.fileNames, projectReferences = parsedCmd.projectReferences;
202
202
  return {
203
- options,
204
- fileNames,
205
- projectReferences
203
+ options: options,
204
+ fileNames: fileNames,
205
+ projectReferences: projectReferences
206
206
  };
207
207
  };
208
208
  var copyFiles = function() {
@@ -261,14 +261,14 @@ export var compileByTs = function() {
261
261
  ];
262
262
  }
263
263
  ts2 = new TypescriptLoader({
264
- appDirectory
264
+ appDirectory: appDirectory
265
265
  }).load();
266
266
  createProgram = ts2.createIncrementalProgram || ts2.createProgram;
267
267
  formatHost = getFormatHost(ts2);
268
268
  alias = config.alias;
269
269
  aliasOption = getAliasConfig(alias, {
270
- appDirectory,
271
- tsconfigPath
270
+ appDirectory: appDirectory,
271
+ tsconfigPath: tsconfigPath
272
272
  });
273
273
  _aliasOption_paths = aliasOption.paths, paths = _aliasOption_paths === void 0 ? {} : _aliasOption_paths, _aliasOption_absoluteBaseUrl = aliasOption.absoluteBaseUrl, absoluteBaseUrl = _aliasOption_absoluteBaseUrl === void 0 ? "./" : _aliasOption_absoluteBaseUrl;
274
274
  _readTsConfigByFile = readTsConfigByFile(tsconfigPath), options = _readTsConfigByFile.options, fileNames = _readTsConfigByFile.fileNames, projectReferences = _readTsConfigByFile.projectReferences;
@@ -281,8 +281,8 @@ export var compileByTs = function() {
281
281
  });
282
282
  });
283
283
  program = createProgram.call(ts2, {
284
- rootNames,
285
- projectReferences,
284
+ rootNames: rootNames,
285
+ projectReferences: projectReferences,
286
286
  options: _object_spread({
287
287
  rootDir: appDirectory,
288
288
  outDir: distDir
@@ -23,7 +23,7 @@ function _create_class(Constructor, protoProps, staticProps) {
23
23
  function _define_property(obj, key, value) {
24
24
  if (key in obj) {
25
25
  Object.defineProperty(obj, key, {
26
- value,
26
+ value: value,
27
27
  enumerable: true,
28
28
  configurable: true,
29
29
  writable: true
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.17.1",
18
+ "version": "2.18.1",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -39,9 +39,9 @@
39
39
  "@babel/runtime": "^7.18.0",
40
40
  "babel-plugin-module-resolver": "^4.1.0",
41
41
  "babel-plugin-transform-typescript-metadata": "^0.3.2",
42
- "@modern-js/babel-compiler": "2.17.1",
43
- "@modern-js/babel-preset-lib": "2.17.1",
44
- "@modern-js/utils": "2.17.1"
42
+ "@modern-js/babel-compiler": "2.18.1",
43
+ "@modern-js/babel-preset-lib": "2.18.1",
44
+ "@modern-js/utils": "2.18.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/babel__core": "^7.1.15",
@@ -50,9 +50,9 @@
50
50
  "jest": "^29",
51
51
  "ts-jest": "^29.0.5",
52
52
  "typescript": "^4",
53
- "@modern-js/server-core": "2.17.1",
54
- "@scripts/build": "2.17.1",
55
- "@scripts/jest-config": "2.17.1"
53
+ "@modern-js/server-core": "2.18.1",
54
+ "@scripts/jest-config": "2.18.1",
55
+ "@scripts/build": "2.18.1"
56
56
  },
57
57
  "sideEffects": false,
58
58
  "publishConfig": {