@astrojs/db 0.10.2 → 0.10.4
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.
|
@@ -10,6 +10,7 @@ const resolved = {
|
|
|
10
10
|
};
|
|
11
11
|
function vitePluginDb(params) {
|
|
12
12
|
const srcDirPath = normalizePath(fileURLToPath(params.srcDir));
|
|
13
|
+
const dbDirPath = normalizePath(fileURLToPath(getDbDirectoryUrl(params.root)));
|
|
13
14
|
let command = "build";
|
|
14
15
|
return {
|
|
15
16
|
name: "astro:db",
|
|
@@ -25,7 +26,7 @@ function vitePluginDb(params) {
|
|
|
25
26
|
const importer = rawImporter ? await this.resolve(rawImporter) : null;
|
|
26
27
|
if (!importer)
|
|
27
28
|
return resolved.virtual;
|
|
28
|
-
if (importer.id.startsWith(srcDirPath)) {
|
|
29
|
+
if (importer.id.startsWith(srcDirPath) && !importer.id.startsWith(dbDirPath)) {
|
|
29
30
|
return resolved.seedVirtual;
|
|
30
31
|
}
|
|
31
32
|
return resolved.virtual;
|
package/package.json
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/db",
|
|
3
|
-
"version": "0.10.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "0.10.4",
|
|
4
|
+
"description": "Add libSQL and Astro Studio support to your Astro site",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/withastro/astro.git",
|
|
9
|
+
"directory": "packages/db"
|
|
10
|
+
},
|
|
11
|
+
"bugs": "https://github.com/withastro/astro/issues",
|
|
12
|
+
"homepage": "https://docs.astro.build/en/guides/integrations-guide/db/",
|
|
6
13
|
"type": "module",
|
|
7
14
|
"author": "withastro",
|
|
8
15
|
"types": "./index.d.ts",
|
|
@@ -81,7 +88,7 @@
|
|
|
81
88
|
"mocha": "^10.2.0",
|
|
82
89
|
"typescript": "^5.2.2",
|
|
83
90
|
"vite": "^5.1.4",
|
|
84
|
-
"astro": "4.
|
|
91
|
+
"astro": "4.6.1",
|
|
85
92
|
"astro-scripts": "0.0.14"
|
|
86
93
|
},
|
|
87
94
|
"scripts": {
|