@nx/vitest 23.0.0-beta.24 → 23.0.0-beta.25

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/migrations.json CHANGED
@@ -1,11 +1,5 @@
1
1
  {
2
2
  "generators": {
3
- "update-20-3-0": {
4
- "version": "20.3.0-beta.2",
5
- "description": "Add gitignore entry for temporary vitest config files.",
6
- "implementation": "./dist/src/migrations/update-20-3-0/add-vitest-temp-files-to-git-ignore",
7
- "documentation": "./dist/src/migrations/update-20-3-0/add-vitest-temp-files-to-git-ignore.md"
8
- },
9
3
  "update-22-1-0": {
10
4
  "version": "22.1.0-beta.8",
11
5
  "requires": {
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@nx/vitest",
3
3
  "description": "The Nx Plugin for Vitest to enable fast unit testing with Vitest.",
4
- "version": "23.0.0-beta.24",
4
+ "version": "23.0.0-beta.25",
5
5
  "type": "commonjs",
6
6
  "files": [
7
7
  "dist",
8
8
  "!dist/tsconfig.tsbuildinfo",
9
- "!dist/spec",
10
9
  "migrations.json",
11
10
  "executors.json",
12
11
  "generators.json"
@@ -65,7 +64,8 @@
65
64
  }
66
65
  },
67
66
  "nx-migrations": {
68
- "migrations": "./migrations.json"
67
+ "migrations": "./migrations.json",
68
+ "supportsOptionalUpdates": true
69
69
  },
70
70
  "executors": "./executors.json",
71
71
  "generators": "./generators.json",
@@ -73,13 +73,13 @@
73
73
  "tslib": "^2.3.0",
74
74
  "semver": "^7.6.3",
75
75
  "@phenomnomnominal/tsquery": "~6.2.0",
76
- "@nx/devkit": "23.0.0-beta.24",
77
- "@nx/js": "23.0.0-beta.24"
76
+ "@nx/devkit": "23.0.0-beta.25",
77
+ "@nx/js": "23.0.0-beta.25"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "vitest": "^3.0.0 || ^4.0.0",
81
81
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0",
82
- "@nx/eslint": "23.0.0-beta.24"
82
+ "@nx/eslint": "23.0.0-beta.25"
83
83
  },
84
84
  "peerDependenciesMeta": {
85
85
  "@nx/eslint": {
@@ -93,6 +93,6 @@
93
93
  }
94
94
  },
95
95
  "devDependencies": {
96
- "nx": "23.0.0-beta.24"
96
+ "nx": "23.0.0-beta.25"
97
97
  }
98
98
  }
@@ -1,2 +0,0 @@
1
- import { Tree } from '@nx/devkit';
2
- export default function addVitestTempFilesToGitIgnore(tree: Tree): void;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = addVitestTempFilesToGitIgnore;
4
- const ignore_vitest_temp_files_1 = require("../../utils/ignore-vitest-temp-files");
5
- function addVitestTempFilesToGitIgnore(tree) {
6
- // need to check if .gitignore exists before adding to it
7
- // then need to check if it contains the following pattern
8
- // **/vite.config.{js,ts,mjs,mts,cjs,cts}.timestamp*
9
- // if it does, remove just this pattern
10
- if (tree.exists('.gitignore')) {
11
- const gitIgnoreContents = tree.read('.gitignore', 'utf-8');
12
- if (gitIgnoreContents.includes('**/vitest.config.{js,ts,mjs,mts,cjs,cts}.timestamp*')) {
13
- tree.write('.gitignore', gitIgnoreContents.replace('**/vitest.config.{js,ts,mjs,mts,cjs,cts}.timestamp*', ''));
14
- }
15
- }
16
- (0, ignore_vitest_temp_files_1.addVitestTempFilesToGitIgnore)(tree);
17
- }
@@ -1,12 +0,0 @@
1
- #### Add Vitest Temp Files to Git Ignore
2
-
3
- Add gitignore entry for temporary vitest config files.
4
-
5
- #### Sample Code Changes
6
-
7
- Adds the following entries to the `.gitignore` file.
8
-
9
- ```text title=".gitignore"
10
- vite.config.*.timestamp*
11
- vitest.config.*.timestamp*
12
- ```