@hardkas/query 0.9.0-alpha → 0.9.2-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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. 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
- if (fs6.existsSync(dbPath)) {
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.9.0-alpha",
3
+ "version": "0.9.2-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.9.0-alpha",
23
- "@hardkas/query-store": "0.9.0-alpha",
24
- "@hardkas/core": "0.9.0-alpha"
22
+ "@hardkas/core": "0.9.2-alpha",
23
+ "@hardkas/artifacts": "0.9.2-alpha",
24
+ "@hardkas/query-store": "0.9.2-alpha"
25
25
  },
26
26
  "devDependencies": {
27
27
  "tsup": "^8.3.5",