@nrwl/react 14.5.0-beta.3 → 14.5.0-rc.0
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 +1 -1
- package/migrations.json +9 -0
- package/package.json +10 -11
- package/plugins/storybook/index.js +6 -8
- package/plugins/storybook/index.js.map +1 -1
- package/src/utils/versions.d.ts +1 -1
- package/src/utils/versions.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
# [14.5.0-
|
|
6
|
+
# [14.5.0-rc.0](https://github.com/nrwl/nx/compare/14.4.2...14.5.0-rc.0) (2022-07-28)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/react
|
package/migrations.json
CHANGED
|
@@ -555,6 +555,15 @@
|
|
|
555
555
|
"alwaysAddToPackageJson": false
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
+
},
|
|
559
|
+
"14.5.0": {
|
|
560
|
+
"version": "14.5.0-beta.0",
|
|
561
|
+
"packages": {
|
|
562
|
+
"eslint-plugin-jsx-a11y": {
|
|
563
|
+
"version": "6.6.1",
|
|
564
|
+
"alwaysAddToPackageJson": false
|
|
565
|
+
}
|
|
566
|
+
}
|
|
558
567
|
}
|
|
559
568
|
}
|
|
560
569
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/react",
|
|
3
|
-
"version": "14.5.0-
|
|
3
|
+
"version": "14.5.0-rc.0",
|
|
4
4
|
"description": "The React plugin contains executors and generators for managing React applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Cypress, and Storybook.\n\n- Generators for applications, libraries, components, hooks, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,16 +32,15 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/core": "^7.15.0",
|
|
34
34
|
"@babel/preset-react": "^7.14.5",
|
|
35
|
-
"@nrwl/cypress": "14.5.0-
|
|
36
|
-
"@nrwl/devkit": "14.5.0-
|
|
37
|
-
"@nrwl/jest": "14.5.0-
|
|
38
|
-
"@nrwl/js": "14.5.0-
|
|
39
|
-
"@nrwl/linter": "14.5.0-
|
|
40
|
-
"@nrwl/storybook": "14.5.0-
|
|
41
|
-
"@nrwl/web": "14.5.0-
|
|
42
|
-
"@nrwl/workspace": "14.5.0-
|
|
35
|
+
"@nrwl/cypress": "14.5.0-rc.0",
|
|
36
|
+
"@nrwl/devkit": "14.5.0-rc.0",
|
|
37
|
+
"@nrwl/jest": "14.5.0-rc.0",
|
|
38
|
+
"@nrwl/js": "14.5.0-rc.0",
|
|
39
|
+
"@nrwl/linter": "14.5.0-rc.0",
|
|
40
|
+
"@nrwl/storybook": "14.5.0-rc.0",
|
|
41
|
+
"@nrwl/web": "14.5.0-rc.0",
|
|
42
|
+
"@nrwl/workspace": "14.5.0-rc.0",
|
|
43
43
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
|
|
44
|
-
"@storybook/node-logger": "6.1.20",
|
|
45
44
|
"@svgr/webpack": "^6.1.2",
|
|
46
45
|
"chalk": "4.1.0",
|
|
47
46
|
"eslint-plugin-import": "^2.25.2",
|
|
@@ -54,5 +53,5 @@
|
|
|
54
53
|
"webpack": "^5.58.1",
|
|
55
54
|
"webpack-merge": "^5.8.0"
|
|
56
55
|
},
|
|
57
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "635825ed2b08bcd001a36eeb26ef992336f466ed"
|
|
58
57
|
}
|
|
@@ -3,11 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.webpack = exports.core = exports.babelDefault = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const devkit_1 = require("@nrwl/devkit");
|
|
6
|
-
const devkit_2 = require("@nrwl/devkit");
|
|
7
6
|
const config_1 = require("@nrwl/web/src/utils/config");
|
|
8
7
|
const web_config_1 = require("@nrwl/web/src/utils/web.config");
|
|
9
8
|
const version_utils_1 = require("@nrwl/workspace/src/utilities/version-utils");
|
|
10
|
-
const node_logger_1 = require("@storybook/node-logger");
|
|
11
9
|
const path_1 = require("path");
|
|
12
10
|
const semver_1 = require("semver");
|
|
13
11
|
const webpack_1 = require("webpack");
|
|
@@ -52,7 +50,7 @@ const babelDefault = () => {
|
|
|
52
50
|
// Add babel plugin for styled-components or emotion.
|
|
53
51
|
// We don't have a good way to know when a project uses one or the other, so
|
|
54
52
|
// add the plugin only if the other style package isn't used.
|
|
55
|
-
const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(
|
|
53
|
+
const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(devkit_1.workspaceRoot, 'package.json'));
|
|
56
54
|
const deps = Object.assign(Object.assign({}, packageJson.dependencies), packageJson.devDependencies);
|
|
57
55
|
const hasStyledComponents = !!deps['styled-components'];
|
|
58
56
|
const plugins = [];
|
|
@@ -69,7 +67,7 @@ const core = (prev, options) => (Object.assign(Object.assign({}, prev), { disabl
|
|
|
69
67
|
exports.core = core;
|
|
70
68
|
const webpack = (storybookWebpackConfig = {}, options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
71
69
|
var _a, _b, _c, _d, _e;
|
|
72
|
-
|
|
70
|
+
devkit_1.logger.info('=> Loading Nrwl React Storybook preset from "@nrwl/react/plugins/storybook"');
|
|
73
71
|
const tsconfigPath = (0, path_1.join)(options.configDir, 'tsconfig.json');
|
|
74
72
|
const builderOptions = Object.assign(Object.assign({}, options), { root: options.configDir, sourceRoot: '', fileReplacements: [], sourceMap: {
|
|
75
73
|
hidden: false,
|
|
@@ -96,7 +94,7 @@ const webpack = (storybookWebpackConfig = {}, options) => tslib_1.__awaiter(void
|
|
|
96
94
|
// doesn't work with `@emotion/*` >= v11
|
|
97
95
|
// this is a workaround to fix that
|
|
98
96
|
let resolvedEmotionAliases = {};
|
|
99
|
-
const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(
|
|
97
|
+
const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(devkit_1.workspaceRoot, 'package.json'));
|
|
100
98
|
const deps = Object.assign(Object.assign({}, packageJson.dependencies), packageJson.devDependencies);
|
|
101
99
|
const emotionReactVersion = deps['@emotion/react'];
|
|
102
100
|
if (emotionReactVersion &&
|
|
@@ -108,9 +106,9 @@ const webpack = (storybookWebpackConfig = {}, options) => tslib_1.__awaiter(void
|
|
|
108
106
|
resolvedEmotionAliases = {
|
|
109
107
|
resolve: {
|
|
110
108
|
alias: {
|
|
111
|
-
'@emotion/core': (0, devkit_1.joinPathFragments)(
|
|
112
|
-
'@emotion/styled': (0, devkit_1.joinPathFragments)(
|
|
113
|
-
'emotion-theming': (0, devkit_1.joinPathFragments)(
|
|
109
|
+
'@emotion/core': (0, devkit_1.joinPathFragments)(devkit_1.workspaceRoot, 'node_modules', '@emotion/react'),
|
|
110
|
+
'@emotion/styled': (0, devkit_1.joinPathFragments)(devkit_1.workspaceRoot, 'node_modules', '@emotion/styled'),
|
|
111
|
+
'emotion-theming': (0, devkit_1.joinPathFragments)(devkit_1.workspaceRoot, 'node_modules', '@emotion/react'),
|
|
114
112
|
},
|
|
115
113
|
},
|
|
116
114
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/react/plugins/storybook/index.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/react/plugins/storybook/index.ts"],"names":[],"mappings":";;;;AAAA,yCAKsB;AACtB,uDAAmE;AACnE,+DAAkE;AAClE,+EAAsF;AACtF,+BAA4B;AAC5B,mCAA6B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O,mCAAI,EAAE,CAAC,EACzC,GAAG,CAAC,MAAA,WAAW,CAAC,OAAO,mCAAI,EAAE,CAAC,CAC/B,KAEH,sBAAsB,CACvB,CAAC;AACJ,CAAC,CAAA,CAAC;AA7HW,QAAA,OAAO,WA6HlB"}
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const reduxjsToolkitVersion = "1.8.3";
|
|
|
19
19
|
export declare const reactReduxVersion = "8.0.2";
|
|
20
20
|
export declare const reactTestRendererVersion = "18.2.0";
|
|
21
21
|
export declare const eslintPluginImportVersion = "2.26.0";
|
|
22
|
-
export declare const eslintPluginJsxA11yVersion = "6.6.
|
|
22
|
+
export declare const eslintPluginJsxA11yVersion = "6.6.1";
|
|
23
23
|
export declare const eslintPluginReactVersion = "7.30.1";
|
|
24
24
|
export declare const eslintPluginReactHooksVersion = "4.6.0";
|
|
25
25
|
export declare const babelPluginStyledComponentsVersion = "1.10.7";
|
package/src/utils/versions.js
CHANGED
|
@@ -23,7 +23,7 @@ exports.reduxjsToolkitVersion = '1.8.3';
|
|
|
23
23
|
exports.reactReduxVersion = '8.0.2';
|
|
24
24
|
exports.reactTestRendererVersion = '18.2.0';
|
|
25
25
|
exports.eslintPluginImportVersion = '2.26.0';
|
|
26
|
-
exports.eslintPluginJsxA11yVersion = '6.6.
|
|
26
|
+
exports.eslintPluginJsxA11yVersion = '6.6.1';
|
|
27
27
|
exports.eslintPluginReactVersion = '7.30.1';
|
|
28
28
|
exports.eslintPluginReactHooksVersion = '4.6.0';
|
|
29
29
|
exports.babelPluginStyledComponentsVersion = '1.10.7';
|