diff --git a/modules/eslint-plugin/project.json b/modules/eslint-plugin/project.json index e7c7de17ab..b0722fd26e 100644 --- a/modules/eslint-plugin/project.json +++ b/modules/eslint-plugin/project.json @@ -1,29 +1,9 @@ { "name": "eslint-plugin", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "modules/eslint-plugin/src", "projectType": "library", - "generators": {}, + "sourceRoot": "modules/eslint-plugin/src", "targets": { - "lint": { - "executor": "@nx/eslint:lint", - "options": { - "lintFilePatterns": [ - "modules/eslint-plugin/*/**/*.ts", - "modules/eslint-plugin/*/**/*.html" - ] - }, - "outputs": ["{options.outputFile}"] - }, - "test": { - "executor": "@nx/jest:jest", - "options": { - "jestConfig": "modules/eslint-plugin/jest.config.ts", - "runInBand": true, - "passWithNoTests": false - }, - "outputs": ["{workspaceRoot}/coverage/modules/eslint-plugin"] - }, "build-package": { "executor": "@nx/js:tsc", "options": { @@ -31,6 +11,8 @@ "tsConfig": "modules/eslint-plugin/tsconfig.build.json", "packageJson": "modules/eslint-plugin/package.json", "main": "modules/eslint-plugin/src/index.ts", + "additionalEntryPoints": ["modules/eslint-plugin/v9/index.ts"], + "generateExportsField": true, "updateBuildableProjectDepsInPackageJson": false, "sourceMap": false, "assets": [ @@ -73,6 +55,25 @@ ] }, "outputs": ["{workspaceRoot}/dist/modules/eslint-plugin"] + }, + "test": { + "executor": "@nx/jest:jest", + "options": { + "jestConfig": "modules/eslint-plugin/jest.config.ts", + "runInBand": true, + "passWithNoTests": false + }, + "outputs": ["{workspaceRoot}/coverage/modules/eslint-plugin"] + }, + "lint": { + "executor": "@nx/eslint:lint", + "options": { + "lintFilePatterns": [ + "modules/eslint-plugin/*/**/*.ts", + "modules/eslint-plugin/*/**/*.html" + ] + }, + "outputs": ["{options.outputFile}"] } }, "tags": [] diff --git a/modules/eslint-plugin/v9/ng-package.json b/modules/eslint-plugin/v9/ng-package.json deleted file mode 100644 index 0967ef424b..0000000000 --- a/modules/eslint-plugin/v9/ng-package.json +++ /dev/null @@ -1 +0,0 @@ -{}