@nx/vitest 0.0.0-pr-33228-85dcafe → 0.0.0-pr-33435-8aff8f5

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/README.md ADDED
@@ -0,0 +1,68 @@
1
+ <p style="text-align: center;">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
+ <img alt="Nx - Smart Repos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
+ </picture>
6
+ </p>
7
+
8
+ <div style="text-align: center;">
9
+
10
+ [![CircleCI](https://circleci.com/gh/nrwl/nx.svg?style=svg)](https://circleci.com/gh/nrwl/nx)
11
+ [![License](https://img.shields.io/npm/l/@nx/workspace.svg?style=flat-square)]()
12
+ [![NPM Version](https://badge.fury.io/js/nx.svg)](https://www.npmjs.com/package/nx)
13
+ [![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)]()
14
+ [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
15
+ [![Join the chat at https://gitter.im/nrwl-nx/community](https://badges.gitter.im/nrwl-nx/community.svg)](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
16
+ [![Join us on the Official Nx Discord Server](https://img.shields.io/discord/1143497901675401286?label=discord)](https://go.nx.dev/community)
17
+
18
+ </div>
19
+
20
+
21
+ <hr>
22
+
23
+ # Nx: Smart Repos · Fast Builds
24
+
25
+ Get to green PRs in half the time. Nx optimizes your builds, scales your CI, and fixes failed PRs. Built for developers and AI agents.
26
+
27
+ This package is a [Vitest plugin for Nx](https://nx.dev/nx-api/vitest).
28
+
29
+ ## Getting Started
30
+
31
+ ### Creating an Nx Workspace
32
+
33
+ **Using `npx`**
34
+
35
+ ```bash
36
+ npx create-nx-workspace
37
+ ```
38
+
39
+ **Using `npm init`**
40
+
41
+ ```bash
42
+ npm init nx-workspace
43
+ ```
44
+
45
+ **Using `yarn create`**
46
+
47
+ ```bash
48
+ yarn create nx-workspace
49
+ ```
50
+
51
+ ### Adding Nx to an Existing Repository
52
+
53
+ Run:
54
+
55
+ ```bash
56
+ npx nx@latest init
57
+ ```
58
+
59
+ ## Documentation & Resources
60
+
61
+ - [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
62
+ - [Intro to Nx](https://nx.dev/getting-started/intro)
63
+ - [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
64
+ - [Blog Posts About Nx](https://nx.dev/blog)
65
+
66
+ <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
67
+ width="100%" alt="Nx - Smart Repos · Fast Builds"></a></p>
68
+
package/executors.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export { VitestExecutorOptions } from './src/executors/test/schema';
2
+ export { vitestExecutor } from './src/executors/test/vitest.impl';
3
+ //# sourceMappingURL=executors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executors.d.ts","sourceRoot":"","sources":["../../../packages/vitest/executors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC"}
package/executors.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.vitestExecutor = void 0;
4
+ var vitest_impl_1 = require("./src/executors/test/vitest.impl");
5
+ Object.defineProperty(exports, "vitestExecutor", { enumerable: true, get: function () { return vitest_impl_1.vitestExecutor; } });
package/index.d.ts CHANGED
@@ -1,5 +1,2 @@
1
1
  export { createNodesV2, VitestPluginOptions } from './src/plugins/plugin';
2
- export { VitestExecutorOptions } from './src/executors/test/schema';
3
- export { vitestExecutor } from './src/executors/test/vitest.impl';
4
- export { configurationGenerator } from './src/generators/configuration/configuration';
5
2
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/vitest/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/vitest/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC"}
package/index.js CHANGED
@@ -1,9 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.configurationGenerator = exports.vitestExecutor = exports.createNodesV2 = void 0;
3
+ exports.createNodesV2 = void 0;
4
4
  var plugin_1 = require("./src/plugins/plugin");
5
5
  Object.defineProperty(exports, "createNodesV2", { enumerable: true, get: function () { return plugin_1.createNodesV2; } });
6
- var vitest_impl_1 = require("./src/executors/test/vitest.impl");
7
- Object.defineProperty(exports, "vitestExecutor", { enumerable: true, get: function () { return vitest_impl_1.vitestExecutor; } });
8
- var configuration_1 = require("./src/generators/configuration/configuration");
9
- Object.defineProperty(exports, "configurationGenerator", { enumerable: true, get: function () { return configuration_1.configurationGenerator; } });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nx/vitest",
3
3
  "description": "The Nx Plugin for Vitest to enable fast unit testing with Vitest.",
4
- "version": "0.0.0-pr-33228-85dcafe",
4
+ "version": "0.0.0-pr-33435-8aff8f5",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -33,6 +33,10 @@
33
33
  "types": "./generators.d.ts",
34
34
  "default": "./generators.js"
35
35
  },
36
+ "./executors": {
37
+ "types": "./executors.d.ts",
38
+ "default": "./executors.js"
39
+ },
36
40
  "./package.json": "./package.json",
37
41
  "./generators.json": "./generators.json",
38
42
  "./executors.json": "./executors.json",
@@ -44,8 +48,8 @@
44
48
  "executors": "./executors.json",
45
49
  "generators": "./generators.json",
46
50
  "dependencies": {
47
- "@nx/devkit": "0.0.0-pr-33228-85dcafe",
48
- "@nx/js": "0.0.0-pr-33228-85dcafe",
51
+ "@nx/devkit": "0.0.0-pr-33435-8aff8f5",
52
+ "@nx/js": "0.0.0-pr-33435-8aff8f5",
49
53
  "tslib": "^2.3.0",
50
54
  "semver": "^7.6.3",
51
55
  "@phenomnomnominal/tsquery": "~5.0.1"
@@ -63,7 +67,7 @@
63
67
  }
64
68
  },
65
69
  "devDependencies": {
66
- "nx": "0.0.0-pr-33228-85dcafe"
70
+ "nx": "0.0.0-pr-33435-8aff8f5"
67
71
  },
68
72
  "types": "./src/index.d.ts"
69
73
  }
package/project.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "targets": {
7
7
  "build": {
8
8
  "command": "node ./scripts/copy-readme.js vitest",
9
- "outputs": ["{workspaceRoot}/build/packages/vitest/README.md"]
9
+ "outputs": ["{workspaceRoot}/dist/packages/vitest/README.md"]
10
10
  },
11
11
  "legacy-post-build": {
12
12
  "executor": "@nx/workspace-plugin:legacy-post-build",