@nx/workspace 20.4.0-rc.0 → 20.4.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/workspace",
3
- "version": "20.4.0-rc.0",
3
+ "version": "20.4.1",
4
4
  "private": false,
5
5
  "description": "The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.",
6
6
  "repository": {
@@ -38,12 +38,12 @@
38
38
  }
39
39
  },
40
40
  "dependencies": {
41
- "@nx/devkit": "20.4.0-rc.0",
41
+ "@nx/devkit": "20.4.1",
42
42
  "chalk": "^4.1.0",
43
43
  "enquirer": "~2.3.6",
44
44
  "tslib": "^2.3.0",
45
45
  "yargs-parser": "21.1.1",
46
- "nx": "20.4.0-rc.0"
46
+ "nx": "20.4.1"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"
@@ -49,15 +49,17 @@ function updateImports(tree, schema, project) {
49
49
  from: mainEntryPointImportPath,
50
50
  to: schema.importPath,
51
51
  },
52
- ...secondaryEntryPointImportPaths.map((p) => ({
53
- from: p,
54
- // if the import path doesn't start with the main entry point import path,
55
- // it's a custom import path we don't know how to update the name, we keep
56
- // it as-is, but we'll update the path it points to
57
- to: schema.importPath && p.startsWith(mainEntryPointImportPath)
58
- ? p.replace(mainEntryPointImportPath, schema.importPath)
59
- : null,
60
- })),
52
+ ...(secondaryEntryPointImportPaths
53
+ ? secondaryEntryPointImportPaths.map((p) => ({
54
+ from: p,
55
+ // if the import path doesn't start with the main entry point import path,
56
+ // it's a custom import path we don't know how to update the name, we keep
57
+ // it as-is, but we'll update the path it points to
58
+ to: schema.importPath && p.startsWith(mainEntryPointImportPath)
59
+ ? p.replace(mainEntryPointImportPath, schema.importPath)
60
+ : null,
61
+ }))
62
+ : []),
61
63
  ];
62
64
  if (serverEntryPointImportPath &&
63
65
  schema.importPath &&