fix: build shared package for runtime

This commit is contained in:
Vaka.pro
2026-04-26 21:42:08 +03:00
parent 1c9c21d5a7
commit 7c658706ea
4 changed files with 11 additions and 6 deletions

View File

@@ -3,16 +3,19 @@
"version": "0.1.0",
"private": true,
"type": "module",
"main": "./src/index.ts",
"types": "./src/index.ts",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": "./src/index.ts"
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"scripts": {
"typecheck": "tsc --noEmit",
"build": "echo 'shared is source-only'",
"build": "tsc -p tsconfig.json",
"lint": "echo 'skip'",
"dev": "echo 'shared is source-only'"
"dev": "tsc -p tsconfig.json --watch"
},
"dependencies": {
"zod": "^3.23.8"

View File

@@ -3,7 +3,7 @@
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"noEmit": true
"noEmit": false
},
"include": ["src/**/*"]
}