Skip to content

Commit

Permalink
try different approach to static files
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed May 1, 2024
1 parent e793eff commit 757d008
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/openapi-gen-ts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/openapi-gen-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oxide/openapi-gen-ts",
"version": "0.1.7",
"version": "0.1.8",
"description": "OpenAPI client generator used to generate Oxide TypeScript SDK",
"keywords": [
"oxide",
Expand Down Expand Up @@ -31,7 +31,7 @@
"shims": true
},
"scripts": {
"build": "tsup-node",
"build": "tsup-node && mkdir -p dist/static/ && cp src/client/static/util.ts dist/static/ && cp src/client/static/http-client.ts dist/static/",
"lint": "eslint .",
"pretest": "../../tools/gen.sh",
"test": "vitest",
Expand Down
4 changes: 2 additions & 2 deletions packages/openapi-gen-ts/src/client/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ function copyFile(sourceRelPath: string, destDirAbs: string) {
}

export function copyStaticFiles(destDir: string) {
copyFile("../../static/util.ts", destDir);
copyFile("../../static/http-client.ts", destDir);
copyFile("./static/util.ts", destDir);
copyFile("./static/http-client.ts", destDir);
}

export function generateApi(spec: OpenAPIV3.Document, destDir: string) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 757d008

Please sign in to comment.