@nx/plugin 19.2.0-canary.20240604-0594deb → 19.2.0-rc.0

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/plugin",
3
- "version": "19.2.0-canary.20240604-0594deb",
3
+ "version": "19.2.0-rc.0",
4
4
  "private": false,
5
5
  "description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
6
6
  "repository": {
@@ -29,11 +29,11 @@
29
29
  "dependencies": {
30
30
  "fs-extra": "^11.1.0",
31
31
  "tslib": "^2.3.0",
32
- "@nx/devkit": "19.2.0-canary.20240604-0594deb",
33
- "@nx/jest": "19.2.0-canary.20240604-0594deb",
34
- "@nx/js": "19.2.0-canary.20240604-0594deb",
35
- "@nx/eslint": "19.2.0-canary.20240604-0594deb",
36
- "@nrwl/nx-plugin": "19.2.0-canary.20240604-0594deb"
32
+ "@nx/devkit": "19.2.0-rc.0",
33
+ "@nx/jest": "19.2.0-rc.0",
34
+ "@nx/js": "19.2.0-rc.0",
35
+ "@nx/eslint": "19.2.0-rc.0",
36
+ "@nrwl/nx-plugin": "19.2.0-rc.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
@@ -1,11 +1,18 @@
1
+ import { ExecutorContext } from '@nx/devkit';
2
+
1
3
  import { <%= className %>ExecutorSchema } from './schema';
2
4
  import executor from './executor';
3
5
 
4
6
  const options: <%= className %>ExecutorSchema = {};
7
+ const context: ExecutorContext = {
8
+ root: '',
9
+ cwd: process.cwd(),
10
+ isVerbose: false,
11
+ };
5
12
 
6
13
  describe('<%= className %> Executor', () => {
7
14
  it('can run', async () => {
8
- const output = await executor(options);
15
+ const output = await executor(options, context);
9
16
  expect(output.success).toBe(true);
10
17
  });
11
18
  });
@@ -1,11 +1,11 @@
1
+ import { PromiseExecutor } from "@nx/devkit";
1
2
  import { <%= className %>ExecutorSchema } from './schema';
2
3
 
3
- export default async function runExecutor(
4
- options: <%= className %>ExecutorSchema,
5
- ) {
4
+ const runExecutor: PromiseExecutor<<%= className %>ExecutorSchema> = async (options) => {
6
5
  console.log('Executor ran for <%= className %>', options);
7
6
  return {
8
7
  success: true
9
8
  };
10
9
  }
11
10
 
11
+ export default runExecutor;