Skip to content

Commit 780fa56

Browse files
committed
Revert bundling changes
1 parent beaf5c1 commit 780fa56

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

packages/powersync-op-sqlite/package.json

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,19 @@
55
"source": "./src/index.ts",
66
"main": "./lib/commonjs/index.js",
77
"module": "./lib/module/index.js",
8-
"types": "./lib/typescript/src/index.d.ts",
8+
"types": "./lib/typescript/commonjs/src/index.d.ts",
9+
"exports": {
10+
".": {
11+
"import": {
12+
"types": "./lib/typescript/module/src/index.d.ts",
13+
"default": "./lib/module/index.js"
14+
},
15+
"require": {
16+
"types": "./lib/typescript/commonjs/src/index.d.ts",
17+
"default": "./lib/commonjs/index.js"
18+
}
19+
}
20+
},
921
"files": [
1022
"src",
1123
"lib",
@@ -87,12 +99,23 @@
8799
"output": "lib",
88100
"targets": [
89101
"codegen",
90-
"commonjs",
91-
"module",
102+
[
103+
"commonjs",
104+
{
105+
"esm": true
106+
}
107+
],
108+
[
109+
"module",
110+
{
111+
"esm": true
112+
}
113+
],
92114
[
93115
"typescript",
94116
{
95117
"project": "tsconfig.build.json",
118+
"esm": true,
96119
"tsc": "../../node_modules/.bin/tsc"
97120
}
98121
]

0 commit comments

Comments
 (0)