aboutsummaryrefslogtreecommitdiffhomepage
path: root/pkgs/shared
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/shared')
-rw-r--r--pkgs/shared/package.json9
-rw-r--r--pkgs/shared/src/schemas/index.ts2
2 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/shared/package.json b/pkgs/shared/package.json
index d208456..8c50a8b 100644
--- a/pkgs/shared/package.json
+++ b/pkgs/shared/package.json
@@ -2,7 +2,14 @@
"name": "@kioku/shared",
"version": "0.1.0",
"private": true,
- "main": "index.js",
+ "main": "./src/index.ts",
+ "types": "./src/index.ts",
+ "exports": {
+ ".": {
+ "types": "./src/index.ts",
+ "import": "./src/index.ts"
+ }
+ },
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
diff --git a/pkgs/shared/src/schemas/index.ts b/pkgs/shared/src/schemas/index.ts
index c211381..28b5f55 100644
--- a/pkgs/shared/src/schemas/index.ts
+++ b/pkgs/shared/src/schemas/index.ts
@@ -28,7 +28,7 @@ export const userSchema = z.object({
// User creation input schema
export const createUserSchema = z.object({
username: z.string().min(1).max(255),
- password: z.string().min(8).max(255),
+ password: z.string().min(15).max(255),
});
// Login input schema