-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge /schemas and /raw into /api (#55)
* first pass, cant build yet * Update paths in validate_toml.yml * try switching entries to an object * try to configure vite correctly * this should work now * redo some changes that got lost in transit * wtf is going wrong * fixed schema directives moved raw/ into the api/ dir data is now fetched directly from the raw json files instead of from github, for the current api version * specify working dir for pnpm setup * fix schema path in validation workflow * install ajv with pnpm * just use npm fuck it * try using a different relative path in prod * copy raw data into dist when building * another path attempt * try using cloudflare static asset serving * maybe use env directly? * clone the request * try using vite glob import * remove extra copying step which is done by vite now * fix: Ignore new dev artifact --------- Co-authored-by: Gregory Danielson <[email protected]>
- Loading branch information
1 parent
e43fcf0
commit bc7036e
Showing
600 changed files
with
1,184 additions
and
3,392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
node_modules | ||
dist | ||
dist | ||
|
||
vite.config.ts.timestamp-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,75 @@ | ||
{ | ||
"name": "sona-api", | ||
"version": "0.1.0", | ||
"private": true, | ||
"name": "@kulupu-linku/sona", | ||
"version": "0.1.8", | ||
"description": "A library providing TypeScript types and Zod schemas for the sona API", | ||
"homepage": "https://linku.la/", | ||
"bugs": { | ||
"url": "https://github.com/lipu-linku/sona/issues/" | ||
}, | ||
"license": "GPL-3.0-or-later", | ||
"contributors": [ | ||
{ | ||
"name": "TheOnlyTails", | ||
"url": "https://theonlytails.com/", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "gregdan3 (jan Kekan San)", | ||
"url": "https://gregdan3.dev/", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"repository": { | ||
"url": "https://github.com/lipu-linku/sona.git", | ||
"directory": "api", | ||
"type": "git" | ||
}, | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build" | ||
"build": "vite build", | ||
"build:lib": "vite build --mode lib", | ||
"generate": "tsx ./generateSchemas.ts", | ||
"generate:watch": "tsx ./generateSchemas.ts --watch-path=./**/*.ts" | ||
}, | ||
"dependencies": { | ||
"@hono/vite-cloudflare-pages": "^0.2.5", | ||
"@hono/vite-dev-server": "^0.7.0", | ||
"@hono/vite-dev-server": "^0.7.1", | ||
"@hono/zod-validator": "^0.1.11", | ||
"@kulupu-linku/sona": "workspace:^", | ||
"hono": "^4.0.4", | ||
"hono": "^3.12.12", | ||
"p-lazy": "^4.0.0", | ||
"vite": "^5.1.3", | ||
"zod": "^3.22.4", | ||
"zod-fetch": "^0.1.1", | ||
"zod-validation-error": "^3.0.2" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.11.19", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5.3.3" | ||
"tsx": "^4.7.1", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.1.4", | ||
"vite-plugin-dts": "^3.7.3", | ||
"zod-to-json-schema": "^3.22.4" | ||
}, | ||
"engines": { | ||
"pnpm": ">=8" | ||
}, | ||
"files": [ | ||
"/dist", | ||
"/generated" | ||
], | ||
"main": "./dist/index.js", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"types": "./dist/index.d.ts" | ||
}, | ||
"./utils": { | ||
"import": "./dist/utils.js", | ||
"types": "./dist/utils.d.ts" | ||
}, | ||
"./client": { | ||
"import": "./dist/client.js", | ||
"types": "./dist/client.d.ts" | ||
} | ||
}, | ||
"type": "module" | ||
} |
Oops, something went wrong.