Skip to content

Commit

Permalink
update to use optic in repo-tools and local binary dynamically
Browse files Browse the repository at this point in the history
Signed-off-by: Aramis <[email protected]>
Signed-off-by: Aramis Sennyey <[email protected]>
  • Loading branch information
sennyeya committed Oct 23, 2023
1 parent 6694b36 commit b7e7d01
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"@techdocs/cli": "workspace:*",
"@types/node": "^18.17.8",
"@types/webpack": "^5.28.0",
"@useoptic/optic": "^0.50.7",
"command-exists": "^1.2.9",
"concurrently": "^8.0.0",
"cross-env": "^7.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/repo-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"@types/is-glob": "^4.0.2",
"@types/mock-fs": "^4.13.0",
"@types/node": "^18.17.8",
"@useoptic/optic": "^0.50.7",
"mock-fs": "^5.2.0"
},
"peerDependencies": {
Expand Down
5 changes: 4 additions & 1 deletion packages/repo-tools/src/commands/openapi/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ async function test(
return;
}

const opticLocation = (
await exec(`yarn bin optic`, [], { cwd: cliPaths.ownDir })
).stdout as string;
try {
await exec(
`yarn run -T optic capture`,
`${opticLocation.trim()} capture`,
[
YAML_SCHEMA_PATH,
'--server-override',
Expand Down
11 changes: 2 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9939,6 +9939,7 @@ __metadata:
"@types/is-glob": ^4.0.2
"@types/mock-fs": ^4.13.0
"@types/node": ^18.17.8
"@useoptic/optic": ^0.50.7
chalk: ^4.0.0
codeowners-utils: ^1.0.2
commander: ^9.1.0
Expand Down Expand Up @@ -31984,20 +31985,13 @@ __metadata:
languageName: node
linkType: hard

"jose@npm:^4.14.6":
"jose@npm:^4.14.6, jose@npm:^4.15.1, jose@npm:^4.6.0":
version: 4.15.3
resolution: "jose@npm:4.15.3"
checksum: b76eeccc1d40d0eaf26dfaadc0f88fc15802c9105ab66a24ee223bd84369f7cb217f4a2cb852f5080ff6996170b3a73db2b2d26878b8905d99c36ca432628134
languageName: node
linkType: hard

"jose@npm:^4.15.1, jose@npm:^4.6.0":
version: 4.15.2
resolution: "jose@npm:4.15.2"
checksum: 8f0cab1eef31243abe14a935b2b330cd95f10f9b69808fd642088ae5000e50e566664934537d2c6413ab2f6b54acd8265a5033da05157aa1260c5f1d7e57fab0
languageName: node
linkType: hard

"joycon@npm:^3.0.1":
version: 3.1.0
resolution: "joycon@npm:3.1.0"
Expand Down Expand Up @@ -40778,7 +40772,6 @@ __metadata:
"@techdocs/cli": "workspace:*"
"@types/node": ^18.17.8
"@types/webpack": ^5.28.0
"@useoptic/optic": ^0.50.7
command-exists: ^1.2.9
concurrently: ^8.0.0
cross-env: ^7.0.0
Expand Down

0 comments on commit b7e7d01

Please sign in to comment.