From 106dc32a3d2a5eee6d4f0540d3fb888436c91334 Mon Sep 17 00:00:00 2001 From: Sli Date: Sun, 9 Mar 2025 16:30:21 +0100 Subject: [PATCH] Fix schema.json being auto deleted and remove formating and linting of generated openapi client --- openapi-ts.config.ts | 4 +--- package-lock.json | 3 ++- package.json | 2 +- tsconfig.json | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/openapi-ts.config.ts b/openapi-ts.config.ts index 32403271..f69aaeb1 100644 --- a/openapi-ts.config.ts +++ b/openapi-ts.config.ts @@ -6,9 +6,7 @@ import { defineConfig } from "@hey-api/openapi-ts"; export default defineConfig({ input: resolve(__dirname, "./staticfiles/generated/openapi/schema.json"), output: { - lint: "biome", - format: "biome", - path: resolve(__dirname, "./staticfiles/generated/openapi"), + path: resolve(__dirname, "./staticfiles/generated/openapi/client"), }, plugins: [ { diff --git a/package-lock.json b/package-lock.json index 4e2852b9..d6d496e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3383,7 +3383,8 @@ "node_modules/country-flag-emoji-polyfill": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/country-flag-emoji-polyfill/-/country-flag-emoji-polyfill-0.1.8.tgz", - "integrity": "sha512-Mbah52sADS3gshUYhK5142gtUuJpHYOXlXtLFI3Ly4RqgkmPMvhX9kMZSTqDM8P7UqtSW99eHKFphhQSGXA3Cg==" + "integrity": "sha512-Mbah52sADS3gshUYhK5142gtUuJpHYOXlXtLFI3Ly4RqgkmPMvhX9kMZSTqDM8P7UqtSW99eHKFphhQSGXA3Cg==", + "license": "MIT" }, "node_modules/cross-spawn": { "version": "7.0.6", diff --git a/package.json b/package.json index dcd79746..83b65145 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "license": "GPL-3.0-only", "sideEffects": [".css"], "imports": { - "#openapi": "./staticfiles/generated/openapi/index.ts", + "#openapi": "./staticfiles/generated/openapi/client/index.ts", "#core:*": "./core/static/bundled/*", "#pedagogy:*": "./pedagogy/static/bundled/*", "#counter:*": "./counter/static/bundled/*", diff --git a/tsconfig.json b/tsconfig.json index a93da92a..e632cc80 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,7 +14,7 @@ "types": ["jquery", "alpinejs"], "lib": ["es7"], "paths": { - "#openapi": ["./staticfiles/generated/openapi/index.ts"], + "#openapi": ["./staticfiles/generated/openapi/client/index.ts"], "#core:*": ["./core/static/bundled/*"], "#pedagogy:*": ["./pedagogy/static/bundled/*"], "#counter:*": ["./counter/static/bundled/*"],