Skip to content

Commit

Permalink
add tsup and package.json for @oxide/api, move src into src/
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed May 2, 2024
1 parent 757d008 commit 1fcb6a0
Show file tree
Hide file tree
Showing 10 changed files with 2,105 additions and 2 deletions.
2,052 changes: 2,052 additions & 0 deletions packages/api/package-lock.json

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions packages/api/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "@oxide/api",
"version": "0.1.0-alpha.0",
"description": "TypeScript client for the Oxide API",
"engines": {
"node": ">=18"
},
"type": "module",
"main": "./dist/Api.js",
"exports": {
"import": "./dist/Api.js",
"require": "./dist/Api.cjs"
},
"scripts": {
"build": "tsup --dts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/oxidecomputer/oxide.ts.git"
},
"keywords": [
"oxide",
"oxide.ts",
"oxide sdk"
],
"author": "Oxide Computer Company",
"license": "MPL-2.0",
"bugs": {
"url": "https://github.com/oxidecomputer/oxide.ts/issues"
},
"homepage": "https://github.com/oxidecomputer/oxide.ts#readme",
"devDependencies": {
"tsup": "^8.0.2",
"typescript": "^5.4.5"
},
"tsup": {
"entry": [
"src/Api.ts"
],
"format": [
"cjs",
"esm"
]
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 6 additions & 1 deletion packages/openapi-gen-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@
"test:ui": "vitest --ui",
"tsc": "tsc"
},
"author": "",
"author": "Oxide Computer Company",
"license": "MPL-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/oxidecomputer/oxide.ts.git"
},
"homepage": "https://github.com/oxidecomputer/oxide.ts#readme",
"optionalDependencies": {
"zod": "^3.20"
},
Expand Down
2 changes: 1 addition & 1 deletion tools/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -o pipefail

ROOT_DIR="$(dirname "$0")/.."
OMICRON_SHA=$(cat "$ROOT_DIR/OMICRON_VERSION")
DEST_DIR="$ROOT_DIR/packages/api"
DEST_DIR="$ROOT_DIR/packages/api/src"

SPEC_URL="https://raw.githubusercontent.com/oxidecomputer/omicron/$OMICRON_SHA/openapi/nexus.json"
SPEC_FILE="./spec.json"
Expand Down

0 comments on commit 1fcb6a0

Please sign in to comment.