Skip to content

Commit

Permalink
Add worker and deno export conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Sep 22, 2022
1 parent 92d00b0 commit c52a3e3
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
42 changes: 42 additions & 0 deletions packages/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,20 @@
},
"require": "./dist/solid.cjs"
},
"deno": {
"import": {
"types": "./types/index.d.ts",
"default": "./dist/server.js"
},
"require": "./dist/server.cjs"
},
"worker": {
"import": {
"types": "./types/index.d.ts",
"default": "./dist/server.js"
},
"require": "./dist/server.cjs"
},
"node": {
"import": {
"types": "./types/index.d.ts",
Expand Down Expand Up @@ -98,6 +112,20 @@
},
"require": "./store/dist/store.cjs"
},
"deno": {
"import": {
"types": "./store/types/index.d.ts",
"default": "./store/dist/server.js"
},
"require": "./store/dist/server.cjs"
},
"worker": {
"import": {
"types": "./store/types/index.d.ts",
"default": "./store/dist/server.js"
},
"require": "./store/dist/server.cjs"
},
"node": {
"import": {
"types": "./store/types/index.d.ts",
Expand Down Expand Up @@ -134,6 +162,20 @@
},
"require": "./web/dist/web.cjs"
},
"deno": {
"import": {
"types": "./web/types/index.d.ts",
"default": "./web/dist/server.js"
},
"require": "./web/dist/server.cjs"
},
"worker": {
"import": {
"types": "./web/types/index.d.ts",
"default": "./web/dist/server.js"
},
"require": "./web/dist/server.cjs"
},
"node": {
"import": {
"types": "./web/types/index.d.ts",
Expand Down
14 changes: 14 additions & 0 deletions packages/solid/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@
},
"require": "./dist/store.cjs"
},
"deno": {
"import": {
"types": "./types/index.d.ts",
"default": "./dist/server.js"
},
"require": "./dist/server.cjs"
},
"worker": {
"import": {
"types": "./types/index.d.ts",
"default": "./dist/server.js"
},
"require": "./dist/server.cjs"
},
"node": {
"import": {
"types": "./types/index.d.ts",
Expand Down
14 changes: 14 additions & 0 deletions packages/solid/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@
},
"require": "./dist/web.cjs"
},
"deno": {
"import": {
"types": "./types/index.d.ts",
"default": "./dist/server.js"
},
"require": "./dist/server.cjs"
},
"worker": {
"import": {
"types": "./types/index.d.ts",
"default": "./dist/server.js"
},
"require": "./dist/server.cjs"
},
"node": {
"import": {
"types": "./types/index.d.ts",
Expand Down

0 comments on commit c52a3e3

Please sign in to comment.