Skip to content

Commit c2be068

Browse files
authored
PrePopulateFS: use dist folder instead of release (#966)
* PrePopulateFS: use `dist` folder instead of `release` It seems that the NPM package only publishes the `./dist` path, where also the `prepopulatedfs.tgz` is at. * changeset
1 parent 16bd20d commit c2be068

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/polite-horses-serve.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@electric-sql/pglite-prepopulatedfs': patch
3+
---
4+
5+
refer to dist folder instead of release for prepopulatedfs.tgz

packages/pglite-prepopulatedfs/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { pglUtils } from '@electric-sql/pglite-utils'
22

33
export async function dataDir(): Promise<Blob> {
4-
const moduleUrl = new URL('../release/prepopulatedfs.tgz', import.meta.url)
4+
const moduleUrl = new URL('../dist/prepopulatedfs.tgz', import.meta.url)
55
if (pglUtils.IN_NODE) {
66
const fs = await import('fs/promises')
77
const buffer = await fs.readFile(moduleUrl)

0 commit comments

Comments
 (0)