@paroicms/converter 0.2.9 → 0.3.0
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/dist/index.js +2 -4
- package/package.json +7 -6
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
2
|
+
import { createLibsqlKnex } from "knex-libsql-client";
|
|
3
3
|
import { access } from "node:fs/promises";
|
|
4
4
|
import { parseCliArguments } from "./cli.js";
|
|
5
5
|
import { createBackup, getFieldRows, processRows } from "./converter.js";
|
|
@@ -171,12 +171,10 @@ async function processSingleDatabase(dbPath, isDryRun, doBackup) {
|
|
|
171
171
|
if (doBackup && !isDryRun) {
|
|
172
172
|
await createBackup(dbPath);
|
|
173
173
|
}
|
|
174
|
-
const cn =
|
|
175
|
-
client: "sqlite3",
|
|
174
|
+
const cn = createLibsqlKnex({
|
|
176
175
|
connection: {
|
|
177
176
|
filename: dbPath,
|
|
178
177
|
},
|
|
179
|
-
useNullAsDefault: true,
|
|
180
178
|
});
|
|
181
179
|
try {
|
|
182
180
|
const rows = await getFieldRows(cn);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/converter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "CLI tool to migrate field data from Quill to Tiptap format in ParoiCMS databases",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -15,15 +15,16 @@
|
|
|
15
15
|
"test:watch": "vitest"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
+
"@libsql/client": "^0.17.0",
|
|
19
|
+
"@paroicms/quill-delta-to-tiptap-json": "0.2.9",
|
|
18
20
|
"knex": "~3.1.0",
|
|
19
|
-
"
|
|
20
|
-
"@paroicms/quill-delta-to-tiptap-json": "0.2.8"
|
|
21
|
+
"knex-libsql-client": "~0.1.0"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
|
-
"@types/node": "~24.
|
|
24
|
-
"rimraf": "~6.1.
|
|
24
|
+
"@types/node": "~24.11.0",
|
|
25
|
+
"rimraf": "~6.1.3",
|
|
25
26
|
"typescript": "~5.9.3",
|
|
26
|
-
"vitest": "~4.0.
|
|
27
|
+
"vitest": "~4.0.18"
|
|
27
28
|
},
|
|
28
29
|
"files": [
|
|
29
30
|
"dist"
|