Skip to content

Commit 17e7664

Browse files
authored
chore: Export the base filesystem to enable creating custom file systems (#493)
* chore: Export the base filesystem to enable creating custom file systems * Tweek changeset wording
1 parent 514943b commit 17e7664

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@electric-sql/pglite': patch
3+
---
4+
5+
Export the base filesystem to enable creating custom file systems. NOTE: This is a work-in-progress API, it is not stable, and may change significantly in future!

packages/pglite/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@
5454
"import": "./dist/fs/opfs-ahp.js",
5555
"require": "./dist/fs/opfs-ahp.cjs"
5656
},
57+
"./basefs": {
58+
"types": "./dist/fs/base.d.ts",
59+
"import": "./dist/fs/base.js",
60+
"require": "./dist/fs/base.cjs"
61+
},
5762
"./contrib/*": {
5863
"types": "./dist/contrib/*.d.ts",
5964
"import": "./dist/contrib/*.js",

packages/pglite/tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const entryPoints = [
2020
'src/index.ts',
2121
'src/fs/nodefs.ts',
2222
'src/fs/opfs-ahp.ts',
23+
'src/fs/base.ts',
2324
'src/templating.ts',
2425
'src/live/index.ts',
2526
'src/vector/index.ts',

0 commit comments

Comments
 (0)