Refactor code structure for improved readability and maintainability; removed redundant code blocks and optimized function calls.
This commit is contained in:
12
package.json
12
package.json
@@ -6,10 +6,16 @@
|
||||
"scripts": {
|
||||
"docs:attestor:validate": "node scripts/validate-attestation-schemas.mjs",
|
||||
"docs:attestor:generate": "dotnet run --project src/Attestor/StellaOps.Attestor.Types/Tools/StellaOps.Attestor.Types.Generator --configuration Release",
|
||||
"api:lint": "sh -c 'set -e; files=$(find src/Api/StellaOps.Api.OpenApi -type f -name \"*.yaml\" 2>/dev/null | wc -l); if [ \"$files\" -eq 0 ]; then echo \"[api:lint] no OpenAPI files found; skipping\"; exit 0; fi; npx --yes @stoplight/spectral-cli lint src/Api/StellaOps.Api.OpenApi/**/*.yaml'"
|
||||
"api:lint": "sh -c 'set -e; files=$(find src/Api/StellaOps.Api.OpenApi -type f -name \"*.yaml\" 2>/dev/null | wc -l); if [ \"$files\" -eq 0 ]; then echo \"[api:lint] no OpenAPI files found; skipping\"; exit 0; fi; npx --yes @stoplight/spectral-cli lint src/Api/StellaOps.Api.OpenApi/**/*.yaml'",
|
||||
"api:examples": "node scripts/api-example-coverage.mjs",
|
||||
"api:compose": "node src/Api/StellaOps.Api.OpenApi/compose.mjs",
|
||||
"api:compat": "node scripts/api-compat-diff.mjs",
|
||||
"api:compat:test": "node scripts/api-compat-diff.test.mjs",
|
||||
"api:changelog": "node scripts/api-changelog.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"ajv": "^8.17.1",
|
||||
"ajv-formats": "^2.1.1"
|
||||
"ajv-formats": "^2.1.1",
|
||||
"yaml": "^2.4.5"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user