Files
alfresco-ng2-components/lib/cli/project.json
Vito Albano fd3802f2dc AAE-46684 fix release workflow eslint publish fix (#11962)
* [AAE-46514] - Fix release workflow

* [AAE-46514] - Fix release workflow - devDependencies

* [AAE-46514] - Command parameters are wrong when setting now the options

* [AAE-46514] - It should call the script not the standard command

* [AAE-46514] - fixed path for eslint plugin publish
2026-06-04 23:33:17 +01:00

75 lines
1.8 KiB
JSON

{
"name": "cli",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "lib/cli",
"projectType": "library",
"prefix": "adf",
"targets": {
"build": {
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/dist/libs/cli"],
"options": {
"command": "cd lib/cli && npm run dist"
},
"configurations": {
"production": {
"tsConfig": "lib/cli/tsconfig.json"
}
},
"defaultConfiguration": "production"
},
"bundle": {
"executor": "nx:run-commands",
"options": {
"commands": [
{
"command": "echo cli bundle created"
}
]
},
"dependsOn": ["copyToNodeModules"]
},
"copyToNodeModules": {
"executor": "nx:run-commands",
"cache": false,
"options": {
"commands": [
{
"command": "rm -rf ./node_modules/@alfresco/adf-cli/ && mkdir -p ./node_modules/@alfresco/adf-cli/ && cp -R ./dist/libs/cli/* ./node_modules/@alfresco/adf-cli/"
}
]
},
"dependsOn": ["installDeps", "build"]
},
"installDeps": {
"executor": "nx:run-commands",
"options": {
"commands": [
{
"command": "cd lib/cli && npm i"
}
]
}
},
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["lib/cli/**/*.ts", "lib/cli/**/*.html"]
}
},
"npm-publish": {
"executor": "nx:run-commands",
"dependsOn": ["build"],
"options": {
"cwd": "dist/libs/cli",
"commands": [
{
"command": "pnpm publish --no-git-checks --tag {args.tag}",
"forwardAllArgs": true
}
]
}
}
}
}