Skip to content

Commit

Permalink
chore: Export the base filesystem to enable creating custom file systems
Browse files Browse the repository at this point in the history
  • Loading branch information
samwillis committed Jan 13, 2025
1 parent 514943b commit 44af078
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-melons-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@electric-sql/pglite': patch
---

Export the base filesystem to enable creating custom file systems. NOTE: This is a work-in-progress API and may change at any point in future.
5 changes: 5 additions & 0 deletions packages/pglite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
"import": "./dist/fs/opfs-ahp.js",
"require": "./dist/fs/opfs-ahp.cjs"
},
"./basefs": {
"types": "./dist/fs/base.d.ts",
"import": "./dist/fs/base.js",
"require": "./dist/fs/base.cjs"
},
"./contrib/*": {
"types": "./dist/contrib/*.d.ts",
"import": "./dist/contrib/*.js",
Expand Down
1 change: 1 addition & 0 deletions packages/pglite/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const entryPoints = [
'src/index.ts',
'src/fs/nodefs.ts',
'src/fs/opfs-ahp.ts',
'src/fs/base.ts',
'src/templating.ts',
'src/live/index.ts',
'src/vector/index.ts',
Expand Down

0 comments on commit 44af078

Please sign in to comment.