Skip to content

Commit 655bb5e

Browse files
committed
chore: simplify package entrypoints
1 parent e7569ed commit 655bb5e

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ import { Schema, ValidateEnv } from '@julr/vite-plugin-validate-env'
4141
export default defineConfig({
4242
plugins: [
4343
ValidateEnv({
44-
VITE_MY_VAR: Schema.string()
44+
validator: 'builtin',
45+
schema: {
46+
VITE_MY_VAR: Schema.string()
47+
}
4548
}),
4649
],
4750
})

package.json

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,10 @@
2323
"zod",
2424
"env"
2525
],
26-
"exports": {
27-
".": {
28-
"types": "./dist/index.d.ts",
29-
"import": "./dist/index.js",
30-
"require": "./dist/index.cjs"
31-
}
32-
},
3326
"publishConfig": {
3427
"access": "public"
3528
},
36-
"main": "./dist/index.cjs",
37-
"module": "./dist/index.js",
38-
"types": "./dist/index.d.ts",
39-
"typesVersions": {
40-
"*": {
41-
"*": [
42-
"./dist/*",
43-
"./dist/index.d.ts"
44-
]
45-
}
46-
},
29+
"main": "./dist/index.js",
4730
"files": [
4831
"dist"
4932
],

0 commit comments

Comments
 (0)