@modern-js/core 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/core
2
2
 
3
+ ## 2.18.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @modern-js/node-bundle-require@2.18.1
8
+ - @modern-js/plugin@2.18.1
9
+ - @modern-js/utils@2.18.1
10
+
11
+ ## 2.18.0
12
+
13
+ ### Patch Changes
14
+
15
+ - @modern-js/node-bundle-require@2.18.0
16
+ - @modern-js/plugin@2.18.0
17
+ - @modern-js/utils@2.18.0
18
+
3
19
  ## 2.17.1
4
20
 
5
21
  ### Patch Changes
@@ -25,7 +25,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.createResolveConfig = void 0;
27
27
  const utils_1 = require("@modern-js/utils");
28
- const constants_1 = require("@modern-js/utils/constants");
29
28
  const patchSchema_1 = require("../schema/patchSchema");
30
29
  const repeatKeyWarning_1 = require("../utils/repeatKeyWarning");
31
30
  const mergeConfig_1 = require("../utils/mergeConfig");
@@ -40,7 +39,7 @@ const showAdditionalPropertiesError = async (error) => {
40
39
  ]
41
40
  .filter(Boolean)
42
41
  .join('.');
43
- const name = Object.keys(constants_1.PLUGIN_SCHEMAS).find(key => constants_1.PLUGIN_SCHEMAS[key].some((schemaItem) => schemaItem.target === target));
42
+ const name = Object.keys(utils_1.PLUGIN_SCHEMAS).find(key => utils_1.PLUGIN_SCHEMAS[key].some((schemaItem) => schemaItem.target === target));
44
43
  if (name) {
45
44
  const packageManager = await (0, utils_1.getPackageManager)();
46
45
  utils_1.logger.warn(`The configuration of ${utils_1.chalk.bold(target)} is provided by plugin ${utils_1.chalk.bold(name)}. Please use ${utils_1.chalk.bold(`${packageManager} run new`)} to enable the corresponding capability.\n`);
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "modern",
15
15
  "modern.js"
16
16
  ],
17
- "version": "2.17.1",
17
+ "version": "2.18.1",
18
18
  "jsnext:source": "./src/index.ts",
19
19
  "types": "./dist/index.d.ts",
20
20
  "main": "./dist/index.js",
@@ -69,9 +69,9 @@
69
69
  }
70
70
  },
71
71
  "dependencies": {
72
- "@modern-js/node-bundle-require": "2.17.1",
73
- "@modern-js/plugin": "2.17.1",
74
- "@modern-js/utils": "2.17.1"
72
+ "@modern-js/plugin": "2.18.1",
73
+ "@modern-js/node-bundle-require": "2.18.1",
74
+ "@modern-js/utils": "2.18.1"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@types/babel__code-frame": "^7.0.3",
@@ -88,11 +88,11 @@
88
88
  "terser-webpack-plugin": "^5.1.4",
89
89
  "typescript": "^4",
90
90
  "webpack": "^5.76.2",
91
- "@modern-js/builder-shared": "2.17.1",
92
- "@modern-js/babel-preset-app": "2.17.1",
93
- "@modern-js/types": "2.17.1",
94
- "@scripts/build": "2.17.1",
95
- "@scripts/jest-config": "2.17.1"
91
+ "@modern-js/builder-shared": "2.18.1",
92
+ "@modern-js/babel-preset-app": "2.18.1",
93
+ "@modern-js/types": "2.18.1",
94
+ "@scripts/build": "2.18.1",
95
+ "@scripts/jest-config": "2.18.1"
96
96
  },
97
97
  "sideEffects": false,
98
98
  "publishConfig": {