@astrojs/db 0.1.6 → 0.1.8

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.
@@ -36,6 +36,7 @@ function getVirtualModContents({
36
36
  }) {
37
37
  return `
38
38
  import { collectionToTable, createLocalDatabaseClient } from ${INTERNAL_MOD_IMPORT};
39
+ import fs from 'node:fs';
39
40
 
40
41
  const params = ${JSON.stringify({
41
42
  collections,
@@ -43,6 +44,7 @@ const params = ${JSON.stringify({
43
44
  })};
44
45
 
45
46
  params.dbUrl = new URL(${JSON.stringify(DB_PATH)}, 'file://' + process.cwd() + '/');
47
+ console.log('createLocalDatabaseClient', process.cwd(), fs.readdirSync(process.cwd()));
46
48
  export const db = await createLocalDatabaseClient(params);
47
49
 
48
50
  export * from ${DRIZZLE_MOD_IMPORT};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/db",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "type": "module",