-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Support vite out of the box"
This reverts commit 8b95bf9.
- Loading branch information
Showing
36 changed files
with
227 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,26 +62,31 @@ jobs: | |
validate(z.string(), 'hello').then(console.log); | ||
" > src/main.ts | ||
echo " | ||
import {defineConfig} from 'vite'; | ||
import {typeschemaPlugin} from '@decs/typeschema/vite'; | ||
export default defineConfig({ | ||
plugins: [typeschemaPlugin()], | ||
}); | ||
" > vite.config.ts | ||
- name: Bundle project | ||
working-directory: ./sample | ||
run: yarn build | ||
|
||
check_for_version_upgrade: | ||
name: Check for version upgrade | ||
if: | | ||
github.event_name == 'push' || | ||
github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login | ||
runs-on: ubuntu-latest | ||
needs: | ||
- bundle_with_vite | ||
outputs: | ||
from_version: ${{steps.check.outputs.from_version}} | ||
to_version: ${{steps.check.outputs.to_version}} | ||
is_upgraded_version: ${{steps.check.outputs.is_upgraded_version}} | ||
is_pre_release: ${{steps.check.outputs.is_pre_release}} | ||
from_version: ${{steps.step1.outputs.from_version}} | ||
to_version: ${{steps.step1.outputs.to_version}} | ||
is_upgraded_version: ${{steps.step1.outputs.is_upgraded_version}} | ||
is_pre_release: ${{steps.step1.outputs.is_pre_release}} | ||
steps: | ||
- uses: garronej/[email protected] | ||
id: check | ||
id: step1 | ||
with: | ||
action_name: is_package_json_version_upgraded | ||
branch: ${{github.head_ref || github.ref}} | ||
|
@@ -92,11 +97,7 @@ jobs: | |
needs: | ||
- check_for_version_upgrade | ||
if: | | ||
needs.check_for_version_upgrade.outputs.is_upgraded_version == 'true' && | ||
( | ||
github.event_name == 'push' || | ||
needs.check_for_version_upgrade.outputs.is_pre_release == 'true' | ||
) | ||
needs.check_for_version_upgrade.outputs.is_upgraded_version == 'true' | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
@@ -145,11 +146,7 @@ jobs: | |
needs: | ||
- check_for_version_upgrade | ||
if: | | ||
needs.check_for_version_upgrade.outputs.is_upgraded_version == 'true' && | ||
( | ||
github.event_name == 'push' || | ||
needs.check_for_version_upgrade.outputs.is_pre_release == 'true' | ||
) | ||
needs.check_for_version_upgrade.outputs.is_upgraded_version == 'true' | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ node_modules | |
.next | ||
|
||
dist/ | ||
vite/ | ||
deno_dist/ | ||
|
||
yarn-debug.log* | ||
|
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,6 +1,6 @@ | ||
{ | ||
"name": "@decs/typeschema", | ||
"version": "0.11.5", | ||
"version": "0.11.2", | ||
"description": "Universal adapter for schema validation", | ||
"keywords": [ | ||
"typescript", | ||
|
@@ -32,7 +32,8 @@ | |
"email": "[email protected]" | ||
}, | ||
"files": [ | ||
"/dist" | ||
"/dist", | ||
"/vite" | ||
], | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
|
@@ -47,6 +48,10 @@ | |
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.js" | ||
} | ||
}, | ||
"./vite": { | ||
"types": "./vite/index.d.ts", | ||
"default": "./vite/index.js" | ||
} | ||
}, | ||
"sideEffects": false, | ||
|
@@ -111,6 +116,7 @@ | |
"typescript": "^5.2.2", | ||
"typia": "^5.0.5", | ||
"valibot": "^0.17.0", | ||
"vite": "^4.4.9", | ||
"webpack": "^5.88.2", | ||
"yup": "^1.2.0", | ||
"zod": "^3.22.2" | ||
|
@@ -129,6 +135,7 @@ | |
"runtypes": "^6.7.0", | ||
"superstruct": "^1.0.3", | ||
"valibot": "^0.17.0", | ||
"vite": "^4.4.9", | ||
"yup": "^1.2.0", | ||
"zod": "^3.22.2" | ||
}, | ||
|
@@ -172,6 +179,9 @@ | |
"valibot": { | ||
"optional": true | ||
}, | ||
"vite": { | ||
"optional": true | ||
}, | ||
"yup": { | ||
"optional": true | ||
}, | ||
|
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
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
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Ajv from 'npm:[email protected]'; | ||
|
||
export const ajv = new Ajv.default(); |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Ajv from 'ajv'; | ||
|
||
export const ajv = new Ajv(); |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export {validate} from '@deepkit/type'; |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export {isRight} from '@effect/data/Either'; | ||
export {isSchema, parseEither} from '@effect/schema/Schema'; | ||
export {formatErrors} from '@effect/schema/TreeFormatter'; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export {isRight} from 'fp-ts/Either'; |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import type {Ow} from 'npm:[email protected]'; | ||
|
||
import owImport from 'npm:[email protected]'; | ||
|
||
export {ArgumentError} from 'npm:[email protected]'; | ||
export const ow: Ow = owImport.default; |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import type {Ow} from 'ow'; | ||
|
||
import owImport from 'ow'; | ||
|
||
export {ArgumentError} from 'ow'; | ||
export const ow: Ow = owImport; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export {TypeCompiler} from '@sinclair/typebox/compiler'; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export {safeParseAsync} from 'valibot'; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export {ValidationError} from 'yup'; |
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
Oops, something went wrong.