Skip to content

Commit

Permalink
build: publish esm,cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaishankar committed Oct 5, 2024
1 parent 1404ef9 commit 21e92b0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pukka",
"version": "1.1.0",
"version": "1.2.0",
"description": "Typescript schema-first zod compatible hyper validation",
"repository": {
"type": "git",
Expand All @@ -9,16 +9,23 @@
"license": "MIT",
"author": "Ajai Shankar",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"require": "./dist/index.cjs"
}
},
"files": ["dist/index.js", "dist/index.d.ts"],
"files": ["dist"],
"scripts": {
"prebuild": "npm run clean",
"build": "tsup src/index.ts --dts --format esm",
"build": "tsup src/index.ts --dts --format esm,cjs",
"clean": "rimraf dist",
"format": "biome format . --write",
"lint": "biome lint . --write",
Expand Down

0 comments on commit 21e92b0

Please sign in to comment.