Skip to content

Commit ffd5adc

Browse files
committed
Add query-stream and cursor as esm exports
1 parent 0a0e298 commit ffd5adc

7 files changed

Lines changed: 23 additions & 3 deletions

File tree

packages/pg-cursor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"exports": {
77
".": {
8-
"import": "./esm/index.js",
8+
"import": "./esm/index.mjs",
99
"require": "./index.js",
1010
"default": "./index.js"
1111
}

packages/pg-esm-test/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"pg": "^8.14.1",
1818
"pg-pool": "^3.8.0",
1919
"pg-native": "^3.3.0",
20-
"pg-cloudflare": "^1.1.1"
20+
"pg-cloudflare": "^1.1.1",
21+
"pg-cursor": "^2.13.1",
22+
"pg-query-stream": "^4.8.1"
2123
},
2224
"author": "Brian M. Carlson <brian.m.carlson@gmail.com>",
2325
"license": "MIT"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import assert from 'node:assert'
2+
import { describe, it } from 'node:test'
3+
import Cursor from 'pg-cursor'
4+
5+
describe('pg-cursor', () => {
6+
it('should export Cursor constructor as default', () => {
7+
assert.ok(new Cursor())
8+
})
9+
})
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import assert from 'node:assert'
2+
import { describe, it } from 'node:test'
3+
import QueryStream from 'pg-query-stream'
4+
5+
describe('pg-query-stream', () => {
6+
it('should export QueryStream constructor as default', () => {
7+
assert.ok(new QueryStream())
8+
})
9+
})

packages/pg-query-stream/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"types": "./dist/index.d.ts",
77
"exports": {
88
".": {
9-
"import": "./esm/index.js",
9+
"import": "./esm/index.mjs",
1010
"require": "./dist/index.js",
1111
"default": "./dist/index.js"
1212
}

0 commit comments

Comments
 (0)