@electric-sql/pglite-prepopulatedfs 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -0
  2. package/package.json +61 -0
package/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # pglite-prepopulatedfs
2
+
3
+ A prepopulated FS so no initdb is running on startup.
4
+
5
+ Install with:
6
+
7
+ ```bash
8
+ npm install @electric-sql/pglite-prepopulatedfs
9
+ ```
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@electric-sql/pglite-prepopulatedfs",
3
+ "version": "0.0.1",
4
+ "description": "Prepopulated filesystem for faster PGlite startups",
5
+ "author": "Electric DB Limited",
6
+ "homepage": "https://pglite.dev",
7
+ "license": "Apache-2.0",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/electric-sql/pglite",
11
+ "directory": "packages/pglite-prepopulatedfs"
12
+ },
13
+ "keywords": [
14
+ "postgres",
15
+ "sql",
16
+ "database",
17
+ "wasm",
18
+ "pglite",
19
+ "initdb"
20
+ ],
21
+ "private": false,
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "files": ["./dist"],
26
+ "type": "module",
27
+ "types": "dist/index.d.ts",
28
+ "main": "dist/index.cjs",
29
+ "module": "dist/index.js",
30
+ "exports": {
31
+ ".": {
32
+ "import": {
33
+ "types": "./dist/index.d.ts",
34
+ "default": "./dist/index.js"
35
+ },
36
+ "require": {
37
+ "types": "./dist/index.d.cts",
38
+ "default": "./dist/index.cjs"
39
+ }
40
+ }
41
+ },
42
+ "scripts": {
43
+ "build": "tsx ./scripts/generateFS.ts && tsup && cp release/* ./dist/",
44
+ "check:exports": "attw . --pack --profile node16",
45
+ "lint": "eslint ./tests --report-unused-disable-directives --max-warnings 0",
46
+ "format": "prettier --write ./tests",
47
+ "typecheck": "tsc",
48
+ "stylecheck": "pnpm lint && prettier --check ./tests",
49
+ "test": "vitest",
50
+ "prepublishOnly": "pnpm check:exports"
51
+ },
52
+ "devDependencies": {
53
+ "@arethetypeswrong/cli": "^0.18.1",
54
+ "@electric-sql/pglite": "workspace:*",
55
+ "@types/emscripten": "^1.41.1",
56
+ "@types/node": "^20.16.11",
57
+ "tsx": "^4.19.2",
58
+ "vitest": "^1.3.1",
59
+ "@electric-sql/pglite-utils": "workspace:*"
60
+ }
61
+ }