station-adapter-sqlite 1.0.1 → 1.0.3
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.
- package/README.md +20 -0
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -10,6 +10,26 @@ pnpm add station-adapter-sqlite
|
|
|
10
10
|
|
|
11
11
|
Requires `station-signal` as a peer dependency.
|
|
12
12
|
|
|
13
|
+
### pnpm 10+
|
|
14
|
+
|
|
15
|
+
better-sqlite3 is a native Node.js addon that compiles C++ code during installation. pnpm 10 blocks dependency lifecycle scripts by default. You must explicitly allow better-sqlite3 to build by adding this to your project's `package.json`:
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"pnpm": {
|
|
20
|
+
"onlyBuiltDependencies": ["better-sqlite3"]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Then reinstall:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pnpm install
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Without this, you will see: `The native binary for better-sqlite3 hasn't been compiled.`
|
|
32
|
+
|
|
13
33
|
## Usage
|
|
14
34
|
|
|
15
35
|
Configure globally:
|
package/package.json
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "station-adapter-sqlite",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "SQLite adapter for station-signal using better-sqlite3",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.js"
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"default": "./dist/index.js"
|
|
11
12
|
},
|
|
12
13
|
"./broadcast": {
|
|
13
14
|
"types": "./dist/broadcast.d.ts",
|
|
14
|
-
"import": "./dist/broadcast.js"
|
|
15
|
+
"import": "./dist/broadcast.js",
|
|
16
|
+
"default": "./dist/broadcast.js"
|
|
15
17
|
}
|
|
16
18
|
},
|
|
17
19
|
"files": [
|
|
@@ -30,8 +32,8 @@
|
|
|
30
32
|
"@types/better-sqlite3": "^7.6.13"
|
|
31
33
|
},
|
|
32
34
|
"peerDependencies": {
|
|
33
|
-
"station-
|
|
34
|
-
"station-
|
|
35
|
+
"station-signal": "1.0.3",
|
|
36
|
+
"station-broadcast": "1.0.3"
|
|
35
37
|
},
|
|
36
38
|
"scripts": {
|
|
37
39
|
"build": "tsc",
|