Skip to content

Commit

Permalink
fix: move openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
njlie committed Nov 8, 2022
1 parent 185dad2 commit 00f7a8b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/auth/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/openapi/schemas.yaml
/openapi/auth-server.yaml
/src/openapi/schemas.yaml
/src/openapi/auth-server.yaml
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"fetch-schemas": "./scripts/get-op-schema.sh",
"test": "jest --passWithNoTests --maxWorkers=50%",
"prepack": "pnpm build",
"copy-files": "pnpm fetch-schemas && cp -r ./openapi ./dist"
"copy-files": "cp -r ./src/openapi ./dist"
},
"dependencies": {
"@adonisjs/fold": "^8.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/scripts/get-op-schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ while [ -L "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symli
SOURCE=$(readlink "$SOURCE")
[[ $SOURCE != /* ]] && SOURCE=$DIR/$SOURCE # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
OUTDIR=$( cd -P "$( dirname "$SOURCE" )/../openapi" >/dev/null 2>&1 && pwd )
OUTDIR=$( cd -P "$( dirname "$SOURCE" )/../src/openapi" >/dev/null 2>&1 && pwd )

# TODO: revert to using main once https://github.com/interledger/rafiki/issues/630 is resolved
curl -o "$OUTDIR/schemas.yaml" https://raw.githubusercontent.com/interledger/open-payments/62c4b4a9875e3adaa21f89f597e88db43016fe0b/openapi/schemas.yaml
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 00f7a8b

Please sign in to comment.