@modern-js/module-tools 1.6.2 → 1.6.3

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,22 @@
1
1
  # @modern-js/module-tools
2
2
 
3
+ ## 1.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - eeb9273: Add `additionalProperties: false` to the schema of 'output.buildConfig'
8
+
9
+ 为 'output.buildConfig' 的 schema 增加 `additionalProperties: false` 配置
10
+
11
+ - Updated dependencies [dc4676b]
12
+ - Updated dependencies [5b7a5a7]
13
+ - Updated dependencies [4a7f2a2]
14
+ - @modern-js/utils@1.7.12
15
+ - @modern-js/plugin@1.4.2
16
+ - @modern-js/css-config@1.2.8
17
+ - @modern-js/core@1.12.4
18
+ - @modern-js/plugin-analyze@1.4.7
19
+
3
20
  ## 1.6.2
4
21
 
5
22
  ### Patch Changes
@@ -132,7 +132,8 @@ export const runSpeedy = async (api, config) => {
132
132
  };
133
133
 
134
134
  const plugins = target === 'es5' ? [es5InputPlugin()] : [];
135
- plugins.push(watchPlugin());
135
+ plugins.push(watchPlugin()); // TODO: add speedy plugin about react
136
+
136
137
  const internalSpeedyConfig = {
137
138
  command: 'build',
138
139
  mode: 'production',
@@ -144,6 +144,7 @@ export const getFinalTsconfig = (config, buildFeatOption) => {
144
144
  // Since tsconfig configuration has default values,
145
145
  // compare the two to see if the user is configured with cli tsconfig
146
146
  if (buildFeatOption.tsconfigName !== cliTsConfigDefaultValue) {
147
+ // TODO: transform tsconfig to absPath
147
148
  return buildFeatOption.tsconfigName;
148
149
  }
149
150
 
@@ -95,12 +95,14 @@ export const buildSchema = [{
95
95
  then: {
96
96
  items: [{
97
97
  type: 'object',
98
- properties
98
+ properties,
99
+ additionalProperties: false
99
100
  }]
100
101
  },
101
102
  else: {
102
103
  type: 'object',
103
- properties
104
+ properties,
105
+ additionalProperties: false
104
106
  }
105
107
  }
106
108
  }, {
@@ -154,7 +154,8 @@ const runSpeedy = async (api, config) => {
154
154
  };
155
155
 
156
156
  const plugins = target === 'es5' ? [(0, _speedyPluginEs.es5InputPlugin)()] : [];
157
- plugins.push(watchPlugin());
157
+ plugins.push(watchPlugin()); // TODO: add speedy plugin about react
158
+
158
159
  const internalSpeedyConfig = {
159
160
  command: 'build',
160
161
  mode: 'production',
@@ -158,6 +158,7 @@ const getFinalTsconfig = (config, buildFeatOption) => {
158
158
  // Since tsconfig configuration has default values,
159
159
  // compare the two to see if the user is configured with cli tsconfig
160
160
  if (buildFeatOption.tsconfigName !== _constants.cliTsConfigDefaultValue) {
161
+ // TODO: transform tsconfig to absPath
161
162
  return buildFeatOption.tsconfigName;
162
163
  }
163
164
 
@@ -103,12 +103,14 @@ const buildSchema = [{
103
103
  then: {
104
104
  items: [{
105
105
  type: 'object',
106
- properties
106
+ properties,
107
+ additionalProperties: false
107
108
  }]
108
109
  },
109
110
  else: {
110
111
  type: 'object',
111
- properties
112
+ properties,
113
+ additionalProperties: false
112
114
  }
113
115
  }
114
116
  }, {
@@ -94,6 +94,7 @@ export declare const buildSchema: ({
94
94
  type: string;
95
95
  };
96
96
  };
97
+ additionalProperties: boolean;
97
98
  }[];
98
99
  };
99
100
  else: {
@@ -183,6 +184,7 @@ export declare const buildSchema: ({
183
184
  type: string;
184
185
  };
185
186
  };
187
+ additionalProperties: boolean;
186
188
  };
187
189
  enum?: undefined;
188
190
  };
@@ -97,6 +97,7 @@ export declare const addSchema: () => ({
97
97
  type: string;
98
98
  };
99
99
  };
100
+ additionalProperties: boolean;
100
101
  }[];
101
102
  };
102
103
  else: {
@@ -186,6 +187,7 @@ export declare const addSchema: () => ({
186
187
  type: string;
187
188
  };
188
189
  };
190
+ additionalProperties: boolean;
189
191
  };
190
192
  enum?: undefined;
191
193
  };
@@ -92,6 +92,7 @@ export declare const outputSchema: ({
92
92
  type: string;
93
93
  };
94
94
  };
95
+ additionalProperties: boolean;
95
96
  }[];
96
97
  };
97
98
  else: {
@@ -181,6 +182,7 @@ export declare const outputSchema: ({
181
182
  type: string;
182
183
  };
183
184
  };
185
+ additionalProperties: boolean;
184
186
  };
185
187
  enum?: undefined;
186
188
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.6.2",
14
+ "version": "1.6.3",
15
15
  "bin": {
16
16
  "modern": "./bin/modern.js"
17
17
  },
@@ -57,16 +57,16 @@
57
57
  "@modern-js/babel-compiler": "^1.2.6",
58
58
  "@modern-js/babel-preset-module": "^1.3.11",
59
59
  "@modern-js/core": "^1.12.4",
60
- "@modern-js/css-config": "^1.2.7",
60
+ "@modern-js/css-config": "^1.2.8",
61
61
  "@modern-js/i18n-cli-language-detector": "^1.2.4",
62
62
  "@modern-js/new-action": "^1.3.11",
63
- "@modern-js/plugin": "^1.4.0",
63
+ "@modern-js/plugin": "^1.4.2",
64
64
  "@modern-js/plugin-analyze": "^1.4.7",
65
65
  "@modern-js/plugin-changeset": "^1.3.1",
66
66
  "@modern-js/plugin-i18n": "^1.2.7",
67
67
  "@modern-js/plugin-jarvis": "^1.2.14",
68
- "@modern-js/style-compiler": "^1.2.12",
69
- "@modern-js/utils": "^1.7.11",
68
+ "@modern-js/style-compiler": "^1.2.13",
69
+ "@modern-js/utils": "^1.7.12",
70
70
  "@rollup/plugin-json": "~4.1.0",
71
71
  "@speedy-js/speedy-types": "0.13.2-alpha.3",
72
72
  "@speedy-js/speedy-core": "0.13.2-alpha.3",