Skip to content

Commit

Permalink
fix: node import/require in exports
Browse files Browse the repository at this point in the history
  • Loading branch information
alii committed Oct 3, 2022
1 parent fe85c73 commit fac0509
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
"module": "./dist/index.js",
"exports": {
".": {
"node": "./dist/node/index.js",
"node": {
"import": "./dist/node/index.js",
"require": "./dist/node/index.cjs"
},
"browser": "./dist/index.js",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
Expand Down
7 changes: 7 additions & 0 deletions prettier/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.next
dist
build
out
node_modules
.yarn
.git
11 changes: 11 additions & 0 deletions prettier/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "http://json.schemastore.org/prettierrc",
"singleQuote": true,
"semi": true,
"printWidth": 120,
"trailingComma": "all",
"arrowParens": "avoid",
"bracketSpacing": false,
"useTabs": true,
"quoteProps": "consistent"
}
8 changes: 4 additions & 4 deletions utils/zod/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"main": "../../dist/utils/zod/index.js",
"module": "../../dist/utils/zod/index.mjs",
"types": "../../dist/utils/zod/index.d.ts"
}
"main": "../../dist/utils/zod/index.js",
"module": "../../dist/utils/zod/index.mjs",
"types": "../../dist/utils/zod/index.d.ts"
}

0 comments on commit fac0509

Please sign in to comment.