@nx/react 16.8.0-beta.3 → 16.8.0-beta.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/react",
3
- "version": "16.8.0-beta.3",
3
+ "version": "16.8.0-beta.4",
4
4
  "private": false,
5
5
  "description": "The React plugin for Nx 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.",
6
6
  "repository": {
@@ -31,11 +31,11 @@
31
31
  "migrations": "./migrations.json"
32
32
  },
33
33
  "dependencies": {
34
- "@nrwl/react": "16.8.0-beta.3",
35
- "@nx/devkit": "16.8.0-beta.3",
36
- "@nx/js": "16.8.0-beta.3",
37
- "@nx/linter": "16.8.0-beta.3",
38
- "@nx/web": "16.8.0-beta.3",
34
+ "@nrwl/react": "16.8.0-beta.4",
35
+ "@nx/devkit": "16.8.0-beta.4",
36
+ "@nx/js": "16.8.0-beta.4",
37
+ "@nx/linter": "16.8.0-beta.4",
38
+ "@nx/web": "16.8.0-beta.4",
39
39
  "@phenomnomnominal/tsquery": "~5.0.1",
40
40
  "@svgr/webpack": "^8.0.1",
41
41
  "chalk": "^4.1.0",
@@ -47,5 +47,5 @@
47
47
  "access": "public"
48
48
  },
49
49
  "type": "commonjs",
50
- "gitHead": "dcd48165a485bc8db57a1fb02b96a0772de3b7e9"
50
+ "gitHead": "c9aad2dc8c2b34531cf61549bff872e68c481e4e"
51
51
  }
@@ -53,7 +53,7 @@ function default_1(tree) {
53
53
  // Note: This was added by an Nx migration.
54
54
  // You should consider inlining the logic into this file.
55
55
  // For more information on webpack config and Nx see:
56
- // https://nx.dev/packages/webpack/documents/webpack-config-setup
56
+ // https://nx.dev/recipes/webpack/webpack-config-setup
57
57
  return require('./${justTheFileName}')(config, context);
58
58
  });
59
59
  `);
@@ -66,7 +66,7 @@ function default_1(tree) {
66
66
  You should consider inlining the logic from ${oldName} into ${options['webpackConfig']}.
67
67
  You can read our guide on how to do this here:
68
68
 
69
- https://nx.dev/packages/webpack/documents/webpack-config-setup
69
+ https://nx.dev/recipes/webpack/webpack-config-setup
70
70
  `);
71
71
  }
72
72
  else {
@@ -85,7 +85,7 @@ function default_1(tree) {
85
85
  // Update the webpack config as needed here.
86
86
  // e.g. config.plugins.push(new MyPlugin())
87
87
  // For more information on webpack config and Nx see:
88
- // https://nx.dev/packages/webpack/documents/webpack-config-setup
88
+ // https://nx.dev/recipes/webpack/webpack-config-setup
89
89
  return config;
90
90
  });
91
91
  `);
@@ -14,6 +14,7 @@ function createApp(tree, appName) {
14
14
  style: 'css',
15
15
  unitTestRunner: 'none',
16
16
  name: appName,
17
+ projectNameAndRootFormat: 'as-provided',
17
18
  });
18
19
  });
19
20
  }
@@ -21,12 +22,12 @@ exports.createApp = createApp;
21
22
  function createLib(tree, libName) {
22
23
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
24
  const { fileName } = (0, devkit_1.names)(libName);
24
- tree.write(`/libs/${fileName}/src/index.ts`, `import React from 'react';\n`);
25
+ tree.write(`/${fileName}/src/index.ts`, `import React from 'react';\n`);
25
26
  (0, devkit_1.addProjectConfiguration)(tree, fileName, {
26
27
  tags: [],
27
- root: `libs/${fileName}`,
28
+ root: `${fileName}`,
28
29
  projectType: 'library',
29
- sourceRoot: `libs/${fileName}/src`,
30
+ sourceRoot: `${fileName}/src`,
30
31
  targets: {},
31
32
  });
32
33
  });