Skip to content

PrePopulateFS: use dist folder instead of release#966

Merged
tdrz merged 2 commits intoelectric-sql:mainfrom
TeeAaTeeUu:patch-1
Apr 8, 2026
Merged

PrePopulateFS: use dist folder instead of release#966
tdrz merged 2 commits intoelectric-sql:mainfrom
TeeAaTeeUu:patch-1

Conversation

@TeeAaTeeUu
Copy link
Copy Markdown
Contributor

@TeeAaTeeUu TeeAaTeeUu commented Apr 8, 2026

It seems that the NPM package only publishes the ./dist path, where also the prepopulatedfs.tgz is at.

Might not need other changes, because tests are not run during https://github.com/electric-sql/pglite/blob/main/.github/workflows/build_and_test.yml

Refs:
https://www.npmjs.com/package/@electric-sql/pglite-prepopulatedfs?activeTab=code

"files": [
"./dist"
],

"scripts": {
"build": "tsx ./scripts/generateFS.ts && tsup && cp release/* ./dist/",


Error this is solving:

Error: ENOENT: no such file or directory, open '/.../node_modules/.pnpm/@electric-sql+pglite-prepopulatedfs@0.0.2/node_modules/@electric-sql/pglite-prepopulatedfs/release/prepopulatedfs.tgz'
      at async open (node:internal/fs/promises:639:25)
      at async Module.readFile (node:internal/fs/promises:1287:14)
      at async dataDir (file:///.../node_modules/.pnpm/@electric-sql+pglite-prepopulatedfs@0.0.2/node_modules/@electric-sql/pglite-prepopulatedfs/dist/index.js:52:20)
      ...

Fixes: #967

It seems that the NPM package only publishes the `./dist` path, where also the `prepopulatedfs.tgz` is at.
@tdrz
Copy link
Copy Markdown
Collaborator

tdrz commented Apr 8, 2026

@TeeAaTeeUu Thank you for this! Please run pnpm changeset and choose patch for pglite-propopulatedfs package with a short description. This will trigger a PR to make a new deployment.

Copy link
Copy Markdown
Collaborator

@tdrz tdrz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tdrz tdrz merged commit c2be068 into electric-sql:main Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: PrePopulateFS: ENOENT: no such file or directory, ... release/prepopulatedfs.tgz

2 participants