@nx/devkit 20.5.0-beta.3 → 20.5.0-beta.4

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/devkit",
3
- "version": "20.5.0-beta.3",
3
+ "version": "20.5.0-beta.4",
4
4
  "private": false,
5
5
  "description": "The Nx Devkit is used to customize Nx for different technologies and use cases. It contains many utility functions for reading and writing files, updating configuration, working with Abstract Syntax Trees(ASTs), and more. Learn more about [extending Nx by leveraging the Nx Devkit](https://nx.dev/extending-nx/intro/getting-started) on our docs.",
6
6
  "repository": {
@@ -26,9 +26,9 @@ function updateTsConfigsToJs(tree, options) {
26
26
  }
27
27
  if (updateConfigPath) {
28
28
  (0, devkit_exports_1.updateJson)(tree, updateConfigPath, (json) => {
29
- json.include = uniq([...json.include, 'src/**/*.js']);
29
+ json.include = uniq([...(json.include ?? []), 'src/**/*.js']);
30
30
  json.exclude = uniq([
31
- ...json.exclude,
31
+ ...(json.exclude ?? []),
32
32
  'src/**/*.spec.js',
33
33
  'src/**/*.test.js',
34
34
  ]);
@@ -102,6 +102,7 @@ function replaceMentions(tree, oldPackageName, newPackageName) {
102
102
  'package-lock.json',
103
103
  'pnpm-lock.yaml',
104
104
  'bun.lockb',
105
+ 'bun.lock',
105
106
  'CHANGELOG.md',
106
107
  ];
107
108
  if (ignoredFiles.includes((0, path_1.basename)(path))) {