Skip to content

Commit

Permalink
add tsup, rename openapi-gen to openapi-gen-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed May 1, 2024
1 parent 573f19e commit 75d2002
Show file tree
Hide file tree
Showing 21 changed files with 1,407 additions and 144 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "@oxide/api",
"version": "0.0.1",
"description": "The official JavaScript and TypeScript client SDK for interacting with the Oxide API",
"name": "@oxide/openapi-gen-ts",
"version": "0.1.0",
"description": "OpenAPI client generator used to generate Oxide TypeScript SDK",
"keywords": [
"oxide",
"oxide.ts",
"oxide computer",
"oxide sdk"
"oxide sdk",
"OpenAPI client generator"
],
"engines": {
"node": ">=18"
},
"scripts": {
"build": "tsup index.ts",
"lint": "eslint .",
"pretest": "../../tools/gen.sh",
"test": "vitest",
Expand All @@ -34,6 +35,7 @@
"swagger-parser": "^10.0.3",
"ts-pattern": "^4.0.5",
"tsafe": "^1.1.1",
"tsup": "^8.0.2",
"tsx": "^4.7.1",
"type-fest": "^3.1.0",
"typescript": "^5.2.2",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions packages/openapi-gen-ts/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
*
* Copyright Oxide Computer Company
*/

import { defineConfig } from "tsup";

export default defineConfig({
// make import.meta.url work in CJS
shims: true,
});
File renamed without changes.
File renamed without changes.

0 comments on commit 75d2002

Please sign in to comment.