Skip to content

Commit

Permalink
Revert "Implement live types (colinhacks#3656)"
Browse files Browse the repository at this point in the history
This reverts commit 8059ce6.
  • Loading branch information
olehmisar authored Jul 22, 2024
1 parent 5a3b5f3 commit c2c7720
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 26 deletions.
3 changes: 1 addition & 2 deletions .configs/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"downlevelIteration": true,
"isolatedModules": true,

"pretty": true,
"customConditions": ["@zod/source"]
"pretty": true
}
}
2 changes: 1 addition & 1 deletion biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
}
},
"files": {
"ignore": ["lib", "coverage", "dist", ".tshy", ".tshy-build"]
"ignore": ["lib", "coverage", "dist"]
}
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
},
"lint-staged": {
"src/*.ts": ["biome format --write", "biome lint --write"],
"*.json": ["biome format --write", "biome lint --write"],
"*.md": ["prettier --ignore-unknown --write"]
},
"scripts": {
Expand Down
17 changes: 12 additions & 5 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 @@ -16,7 +25,6 @@
"./package.json": "./package.json",
".": {
"import": {
"@zod/source": "./src/index.ts",
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
Expand All @@ -30,8 +38,7 @@
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
},
"sourceDialects": ["@zod/source"]
}
},
"repository": {
"type": "git",
Expand Down
21 changes: 12 additions & 9 deletions packages/zod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@
"version": "3.23.8",
"author": "Colin McDonnell <zod@colinhacks.com>",
"description": "TypeScript-first schema declaration and validation library with static type inference",
"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 @@ -17,7 +26,6 @@
"./package.json": "./package.json",
".": {
"import": {
"@zod/source": "./src/index.ts",
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
Expand All @@ -28,7 +36,6 @@
},
"./locales/*": {
"import": {
"@zod/source": "./src/locales/*",
"types": "./dist/esm/locales/*",
"default": "./dist/esm/locales/*"
},
Expand All @@ -43,8 +50,7 @@
"./package.json": "./package.json",
".": "./src/index.ts",
"./locales/*": "./src/locales/*"
},
"sourceDialects": ["@zod/source"]
}
},
"repository": {
"type": "git",
Expand All @@ -64,8 +70,5 @@
"test:watch": "pnpm vitest",
"test": "pnpm vitest run",
"prepublishOnly": "pnpm test && pnpm run build"
},
"dependencies": {
"effect": "^3.5.6"
}
}
6 changes: 1 addition & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions vitest.root.mts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { type UserConfig, defineConfig } from "vitest/config";

export default defineConfig({
resolve: {
conditions: ["@zod/source"],
},
test: {
watch: false,
isolate: false,
Expand Down

0 comments on commit c2c7720

Please sign in to comment.