Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Check types, linting and code style
run: pnpm check
- name: Run tests
Expand Down
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

132 changes: 0 additions & 132 deletions .oxlintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .vite-hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vp staged
115 changes: 115 additions & 0 deletions .zed/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"lsp": {
"oxlint": {
"initialization_options": {
"settings": {
"run": "onType",
"fixKind": "safe_fix",
"typeAware": true,
"unusedDisableDirectives": "deny"
}
}
},
"oxfmt": {
"initialization_options": {
"settings": {
"fmt.configPath": "./vite.config.ts",
"run": "onSave"
}
}
}
},
"languages": {
"CSS": {
"format_on_save": "on",
"prettier": {
"allowed": false
},
"formatter": [
{
"language_server": {
"name": "oxfmt"
}
}
]
},
"HTML": {
"format_on_save": "on",
"prettier": {
"allowed": false
},
"formatter": [
{
"language_server": {
"name": "oxfmt"
}
}
]
},
"JSON": {
"format_on_save": "on",
"prettier": {
"allowed": false
},
"formatter": [
{
"language_server": {
"name": "oxfmt"
}
}
]
},
"Markdown": {
"format_on_save": "on",
"prettier": {
"allowed": false
},
"formatter": [
{
"language_server": {
"name": "oxfmt"
}
}
]
},
"TypeScript": {
"format_on_save": "on",
"prettier": {
"allowed": false
},
"formatter": [
{
"language_server": {
"name": "oxfmt"
}
}
]
},
"TSX": {
"format_on_save": "on",
"prettier": {
"allowed": false
},
"formatter": [
{
"language_server": {
"name": "oxfmt"
}
}
]
},
"YAML": {
"format_on_save": "on",
"prettier": {
"allowed": false
},
"formatter": [
{
"language_server": {
"name": "oxfmt"
}
}
]
}
}
}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ the `@openapi-codegen/cli` supports these generator plugins:
generate all schema types for your specification:

```ts
const { schemasFiles } = await generateSchemaTypes(context, {/* config */});
const { schemasFiles } = await generateSchemaTypes(context, {
/* config */
});
```

output: `{namespace}Schemas.ts`
Expand Down
2 changes: 1 addition & 1 deletion cli/examples/openapi-codegen.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from "../lib/index.js";
import { defineConfig } from "../dist/index.mjs";

export default defineConfig({
withFile: {
Expand Down
51 changes: 22 additions & 29 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,54 @@
"name": "@openapi-codegen/cli",
"version": "3.1.0",
"description": "OpenAPI Codegen cli",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"type": "module",
"bin": {
"openapi-codegen": "lib/cli.js"
},
"repository": {
"url": "https://github.com/fabien0102/openapi-codegen",
"directory": "cli"
},
"publishConfig": {
"access": "public"
},
"author": "Fabien Bernard",
"keywords": [
"openapi",
"codegen",
"openapi",
"plugin",
"typescript"
],
"license": "MIT",
"scripts": {
"watch": "tsup src/index.ts src/cli.ts --outDir lib --format esm --watch",
"prebuild": "pnpm --workspace-root tsc --emitDeclarationOnly --declaration -p cli/tsconfig.package.json",
"build": "tsup src/index.ts src/cli.ts --outDir lib --format esm",
"prepublishOnly": "pnpm build"
"author": "Fabien Bernard",
"repository": {
"url": "git+https://github.com/fabien0102/openapi-codegen.git",
"directory": "cli"
},
"bin": {
"openapi-codegen": "dist/cli.mjs"
},
"files": [
"lib",
"dist",
"README.md"
],
"type": "module",
"main": "dist/index.mjs",
"types": "dist/index.d.mts",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "vp pack",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@clack/prompts": "^1.8.1",
"@octokit/request": "^10.0.16",
"@swc/core": "^1.16.13",
"case": "^1.6.3",
"case-anything": "^3.1.7",
"cli-highlight": "^2.1.11",
"clipanion": "^4.0.0-rc.4",
"fs-extra": "^11.4.1",
"got": "^16.0.0",
"js-yaml": "^5.4.3",
"openapi3-ts": "^4.6.1",
"prettier": "^3.9.9",
"oxfmt": "^0.75.0",
"slash": "^5.1.0",
"swagger2openapi": "^7.0.8",
"tslib": "^2.8.1",
"typanion": "^3.14.0",
"typescript": "~6.0.2"
},
"devDependencies": {
"@swc-node/register": "^1.12.1",
"@types/fs-extra": "^11.0.4",
"@types/js-yaml": "^4.0.9",
"nock": "^15.0.1",
"react": "^19.3.0",
"tsup": "^8.5.1"
"nock": "^15.0.1"
}
}
Loading
Loading