Skip to content

Commit

Permalink
[MIGRATION] - Changing the building executor for eslint-rules
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoAlbano committed Dec 10, 2024
1 parent cd9192e commit a3ab615
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions lib/eslint-angular/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,23 @@
"prefix": "adf",
"targets": {
"build": {
"executor": "@nx/webpack:webpack",
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"projectRoot": "lib/eslint-angular",
"outputPath": "dist/libs/eslint-plugin-eslint-angular",
"main": "lib/eslint-angular/index.ts",
"tsConfig": "lib/eslint-angular/tsconfig.lib.prod.json",
"webpackConfig": "lib/eslint-angular/webpack.config.js",
"stylePreprocessorOptions": {
"includePaths": ["lib", "lib/core/src/lib"]
},
"target": "node",
"compiler": "tsc"
"tsConfig": "lib/eslint-angular/tsconfig.lib.prod.json"
},
"configurations": {
"production": {
"projectRoot": "lib/eslint-angular",
"outputPath": "dist/libs/eslint-plugin-eslint-angular",
"main": "lib/eslint-angular/index.ts",
"tsConfig": "lib/eslint-angular/tsconfig.lib.prod.json"
"optimization": true,
"sourceMap": false,
"extractLicenses": true
}
},
"defaultConfiguration": "production"
}
},
"lint": {
"executor": "@nx/eslint:lint:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["lib/eslint-angular/**/*.ts"]
}
Expand All @@ -49,8 +41,15 @@
"executor": "nx:run-commands",
"dependsOn": ["build"],
"options": {
"command": "npm publish --tag {args.tag}"
"cwd": "dist/libs/eslint-plugin-eslint-angular",
"commands": [
{
"command": "npm publish --tag {args.tag}",
"forwardAllArgs": true
}
]
}
}
}
},
"tags": []
}

0 comments on commit a3ab615

Please sign in to comment.