@plone/volto 16.0.0-alpha.51 → 16.0.0-alpha.52
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 +6 -1
- package/package.json +2 -1
- package/razzle.config.js +4 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 16.0.0-alpha.52 (2022-11-18)
|
|
4
|
+
|
|
5
|
+
### Bugfix
|
|
6
|
+
|
|
7
|
+
- Revert "Configure Jest's moduleNameMapper with AddonConfigurationRegistry" (#3913) due to a regression in projects @sneridagh
|
|
8
|
+
|
|
3
9
|
## 16.0.0-alpha.51 (2022-11-18)
|
|
4
10
|
|
|
5
11
|
### Breaking
|
|
@@ -22,7 +28,6 @@
|
|
|
22
28
|
|
|
23
29
|
### Internal
|
|
24
30
|
|
|
25
|
-
- Configure Jest's `moduleNameMapper` with `AddonConfigurationRegistry`. Fix https://github.com/plone/volto/issues/3870 @wesleybl
|
|
26
31
|
- Ignore `.tool-versions` file
|
|
27
32
|
- Minor updates to dependencies
|
|
28
33
|
- Update Cypress 11 @sneridagh
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "16.0.0-alpha.
|
|
12
|
+
"version": "16.0.0-alpha.52",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git@github.com:plone/volto.git"
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"moduleNameMapper": {
|
|
86
86
|
"@plone/volto/package.json": "<rootDir>/package.json",
|
|
87
87
|
"@plone/volto/(.*)$": "<rootDir>/src/$1",
|
|
88
|
+
"@plone/volto-slate": "<rootDir>/packages/volto-slate/src",
|
|
88
89
|
"~/config": "<rootDir>/src/config",
|
|
89
90
|
"~/../locales/${lang}.json": "<rootDir>/locales/en.json",
|
|
90
91
|
"(.*)/locales/(.*)": "<rootDir>/locales/$2",
|
package/razzle.config.js
CHANGED
|
@@ -21,12 +21,6 @@ const packageJson = require(path.join(projectRootPath, 'package.json'));
|
|
|
21
21
|
|
|
22
22
|
const registry = new AddonConfigurationRegistry(projectRootPath);
|
|
23
23
|
|
|
24
|
-
const addonCustomizationPaths = registry.getAddonCustomizationPaths();
|
|
25
|
-
const addonsFromEnvVarCustomizationPaths = registry.getAddonsFromEnvVarCustomizationPaths();
|
|
26
|
-
const projectCustomizationPaths = registry.getProjectCustomizationPaths();
|
|
27
|
-
const resolveAliases = registry.getResolveAliases();
|
|
28
|
-
|
|
29
|
-
|
|
30
24
|
const defaultModify = ({
|
|
31
25
|
env: { target, dev },
|
|
32
26
|
webpackConfig: config,
|
|
@@ -209,14 +203,14 @@ const defaultModify = ({
|
|
|
209
203
|
];
|
|
210
204
|
|
|
211
205
|
config.resolve.alias = {
|
|
212
|
-
...
|
|
213
|
-
...
|
|
214
|
-
...
|
|
206
|
+
...registry.getAddonCustomizationPaths(),
|
|
207
|
+
...registry.getAddonsFromEnvVarCustomizationPaths(),
|
|
208
|
+
...registry.getProjectCustomizationPaths(),
|
|
215
209
|
...config.resolve.alias,
|
|
216
210
|
'../../theme.config$': `${projectRootPath}/theme/theme.config`,
|
|
217
211
|
'volto-themes': `${registry.voltoPath}/theme/themes`,
|
|
218
212
|
'load-volto-addons': addonsLoaderPath,
|
|
219
|
-
...
|
|
213
|
+
...registry.getResolveAliases(),
|
|
220
214
|
'@plone/volto': `${registry.voltoPath}/src`,
|
|
221
215
|
// to be able to reference path uncustomized by webpack
|
|
222
216
|
'@plone/volto-original': `${registry.voltoPath}/src`,
|
|
@@ -322,13 +316,6 @@ module.exports = {
|
|
|
322
316
|
plugins,
|
|
323
317
|
modifyJestConfig: ({ jestConfig }) => {
|
|
324
318
|
jestConfig.testEnvironment = 'jsdom';
|
|
325
|
-
jestConfig.moduleNameMapper = {
|
|
326
|
-
...addonCustomizationPaths,
|
|
327
|
-
...addonsFromEnvVarCustomizationPaths,
|
|
328
|
-
...projectCustomizationPaths,
|
|
329
|
-
...resolveAliases,
|
|
330
|
-
...jestConfig.moduleNameMapper,
|
|
331
|
-
};
|
|
332
319
|
return jestConfig;
|
|
333
320
|
},
|
|
334
321
|
modifyWebpackConfig: ({
|