Skip to content

Commit

Permalink
fix(tool): only lint when generation is done
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Nov 16, 2021
1 parent 8a2caf5 commit 67d67f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion openapitools.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"generatorName": "typescript-node",
"templateDir": "#{cwd}/algolia-typescript-template/",
"config": "#{cwd}/openapitools.json",
"enablePostProcessFile": true,
"httpUserAgent": "Algolia for JavaScript ({packageVersion});",
"apiPackage": "client-search",
"output": "#{cwd}/output/",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"output"
],
"scripts": {
"generate": "PACKAGE_VERSION='4.11.0' TS_POST_PROCESS_FILE='yarn prettier --write .' yarn openapi-generator-cli generate --generator-key client && yarn install",
"lint": "yarn prettier --write .",
"generate": "PACKAGE_VERSION='4.11.0' yarn openapi-generator-cli generate --generator-key client && yarn install && yarn lint",
"build:spec": "yarn swagger-cli bundle openapi_spec/spec.yml --outfile dist/openapi.yml --type yaml",
"client:build": "cd output/ && yarn install && yarn build && cd ..",
"client:test": "yarn install && tsc && node dist/app.js",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,11 @@ __metadata:

"algoliasearch-client-javascript@file:output/::locator=%40algolia%2Fautomation-javascript-client%40workspace%3A.":
version: 5.0.0
resolution: "algoliasearch-client-javascript@file:output/#output/::hash=342434&locator=%40algolia%2Fautomation-javascript-client%40workspace%3A."
resolution: "algoliasearch-client-javascript@file:output/#output/::hash=860dfb&locator=%40algolia%2Fautomation-javascript-client%40workspace%3A."
dependencies:
"@types/request": ^2.48.7
request: ^2.81.0
checksum: 79ae2881a4d93698d4600f7710ea07512df105e9faf61982acc2cc8327d1666fe39f7e83c4a4d471b1876c321b932850a49923a49d22d474bacdf16dfaa81e71
checksum: b037f9adb50d7f67768e3252e36df48381811346d4dc5c18b8c919ee275ace0d5713f887fe836e52c4a3e95a6b744e4a84a83bc751781fed00cf5b954a3152ef
languageName: node
linkType: hard

Expand Down

0 comments on commit 67d67f5

Please sign in to comment.