Skip to content

Commit

Permalink
Switch to tshy
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Jul 18, 2024
1 parent d6c8f39 commit 6aeeb6d
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 19 deletions.
9 changes: 8 additions & 1 deletion .configs/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,26 @@
"jsx": "react",

"strict": true,
"alwaysStrict": true,
"strictPropertyInitialization": false,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,

"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,

"removeComments": true,
"esModuleInterop": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"downlevelIteration": true,
"isolatedModules": true
"isolatedModules": true,

"pretty": true
}
}
2 changes: 1 addition & 1 deletion benchmarks/benchUtil.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as zNew from "../packages/zod/dist/esm";
import * as zOld from "./node_modules/zod/lib/index";
import * as zOld from "./node_modules/zod/dist/commonjs/index";

export function makeSchema<T>(factory: (z: typeof zNew) => T) {
return {
Expand Down
6 changes: 0 additions & 6 deletions benchmarks/tsconfig.json

This file was deleted.

17 changes: 14 additions & 3 deletions packages/effect-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,19 @@
"type": "module",
"version": "0.1.0",
"author": "Colin McDonnell <zod@colinhacks.com>",
"files": ["src", "dist"],
"files": [
"src",
"dist"
],
"funding": "https://github.com/sponsors/colinhacks",
"homepage": "https://zod.dev",
"keywords": ["typescript", "schema", "validation", "type", "inference"],
"keywords": [
"typescript",
"schema",
"validation",
"type",
"inference"
],
"license": "MIT",
"sideEffects": false,
"main": "./dist/commonjs/index.js",
Expand All @@ -31,7 +40,9 @@
"./package.json": "./package.json",
".": "./src/index.ts"
},
"sourceDialects": ["@zod/source"]
"sourceDialects": [
"@zod/source"
]
},
"repository": {
"type": "git",
Expand Down
6 changes: 0 additions & 6 deletions packages/effect-plugin/tests/tsconfig.json

This file was deleted.

20 changes: 18 additions & 2 deletions packages/zod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,36 @@
"./package.json": "./package.json",
".": {
"import": {
"@zod/source": "./src/index.ts",
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
},
"./locales/*": {
"import": {
"@zod/source": "./src/locales/*",
"types": "./dist/esm/locales/*",
"default": "./dist/esm/locales/*"
},
"require": {
"types": "./dist/commonjs/locales/*",
"default": "./dist/commonjs/locales/*"
}
}
},
"tshy": {
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
}
".": "./src/index.ts",
"./locales/*": "./src/locales/*"
},
"sourceDialects": [
"@zod/source"
]
},
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions packages/zod/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig, mergeConfig } from "vitest/config";
// @ts-ignore
import rootConfig from "../../vitest.root.js";

export default mergeConfig(rootConfig, defineConfig({})) as object;

0 comments on commit 6aeeb6d

Please sign in to comment.