@hardkas/query 0.8.20-alpha → 0.9.1-alpha
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 +5 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2114,7 +2114,11 @@ var QueryEngine = class _QueryEngine {
|
|
|
2114
2114
|
let backend = options.backend;
|
|
2115
2115
|
if (!backend) {
|
|
2116
2116
|
const dbPath = path6.join(options.artifactDir, ".hardkas", "store.db");
|
|
2117
|
-
|
|
2117
|
+
const forceSqlite = process.env.HARDKAS_PROJECTION_BACKEND === "sqlite";
|
|
2118
|
+
if (fs6.existsSync(dbPath) || forceSqlite) {
|
|
2119
|
+
if (forceSqlite && !fs6.existsSync(path6.dirname(dbPath))) {
|
|
2120
|
+
fs6.mkdirSync(path6.dirname(dbPath), { recursive: true });
|
|
2121
|
+
}
|
|
2118
2122
|
try {
|
|
2119
2123
|
const { HardkasStore, SqliteQueryBackend, HardkasIndexer } = await import("@hardkas/query-store");
|
|
2120
2124
|
const store = new HardkasStore({ dbPath });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hardkas/query",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1-alpha",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"picocolors": "^1.1.1",
|
|
22
|
-
"@hardkas/artifacts": "0.
|
|
23
|
-
"@hardkas/
|
|
24
|
-
"@hardkas/
|
|
22
|
+
"@hardkas/artifacts": "0.9.1-alpha",
|
|
23
|
+
"@hardkas/query-store": "0.9.1-alpha",
|
|
24
|
+
"@hardkas/core": "0.9.1-alpha"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"tsup": "^8.3.5",
|