@astrojs/db 0.13.0 → 0.13.1
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/core/cli/commands/execute/index.d.ts +2 -2
- package/dist/core/cli/commands/login/index.d.ts +2 -2
- package/dist/core/cli/commands/push/index.d.ts +2 -2
- package/dist/core/cli/commands/shell/index.d.ts +2 -2
- package/dist/core/cli/commands/verify/index.d.ts +2 -2
- package/dist/core/cli/index.d.ts +2 -2
- package/dist/core/cli/print-help.js +1 -1
- package/dist/core/cli/types.d.ts +1 -1
- package/dist/core/integration/index.js +7 -7
- package/package.json +4 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AstroConfig } from 'astro';
|
|
2
|
+
import type { Arguments } from 'yargs-parser';
|
|
2
3
|
import type { DBConfig } from '../../../types.js';
|
|
3
|
-
import type { YargsArguments } from '../../types.js';
|
|
4
4
|
export declare function cmd({ astroConfig, dbConfig, flags, }: {
|
|
5
5
|
astroConfig: AstroConfig;
|
|
6
6
|
dbConfig: DBConfig;
|
|
7
|
-
flags:
|
|
7
|
+
flags: Arguments;
|
|
8
8
|
}): Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AstroConfig } from 'astro';
|
|
2
|
+
import type { Arguments } from 'yargs-parser';
|
|
2
3
|
import type { DBConfig } from '../../../types.js';
|
|
3
|
-
import type { YargsArguments } from '../../types.js';
|
|
4
4
|
export declare function cmd({ flags, }: {
|
|
5
5
|
astroConfig: AstroConfig;
|
|
6
6
|
dbConfig: DBConfig;
|
|
7
|
-
flags:
|
|
7
|
+
flags: Arguments;
|
|
8
8
|
}): Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AstroConfig } from 'astro';
|
|
2
|
+
import type { Arguments } from 'yargs-parser';
|
|
2
3
|
import { type DBConfig } from '../../../types.js';
|
|
3
|
-
import type { YargsArguments } from '../../types.js';
|
|
4
4
|
export declare function cmd({ dbConfig, flags, }: {
|
|
5
5
|
astroConfig: AstroConfig;
|
|
6
6
|
dbConfig: DBConfig;
|
|
7
|
-
flags:
|
|
7
|
+
flags: Arguments;
|
|
8
8
|
}): Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AstroConfig } from 'astro';
|
|
2
|
+
import type { Arguments } from 'yargs-parser';
|
|
2
3
|
import type { DBConfigInput } from '../../../types.js';
|
|
3
|
-
import type { YargsArguments } from '../../types.js';
|
|
4
4
|
export declare function cmd({ flags, astroConfig, }: {
|
|
5
5
|
dbConfig: DBConfigInput;
|
|
6
6
|
astroConfig: AstroConfig;
|
|
7
|
-
flags:
|
|
7
|
+
flags: Arguments;
|
|
8
8
|
}): Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AstroConfig } from 'astro';
|
|
2
|
+
import type { Arguments } from 'yargs-parser';
|
|
2
3
|
import type { DBConfig } from '../../../types.js';
|
|
3
|
-
import type { YargsArguments } from '../../types.js';
|
|
4
4
|
export declare function cmd({ dbConfig, flags, }: {
|
|
5
5
|
astroConfig: AstroConfig;
|
|
6
6
|
dbConfig: DBConfig;
|
|
7
|
-
flags:
|
|
7
|
+
flags: Arguments;
|
|
8
8
|
}): Promise<void>;
|
package/dist/core/cli/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AstroConfig } from 'astro';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Arguments } from 'yargs-parser';
|
|
3
3
|
export declare function cli({ flags, config: astroConfig, }: {
|
|
4
|
-
flags:
|
|
4
|
+
flags: Arguments;
|
|
5
5
|
config: AstroConfig;
|
|
6
6
|
}): Promise<void>;
|
package/dist/core/cli/types.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { existsSync } from "fs";
|
|
2
|
-
import {
|
|
3
|
-
import { dirname } from "path";
|
|
4
|
-
import { fileURLToPath } from "url";
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import { mkdir, writeFile } from "node:fs/promises";
|
|
3
|
+
import { dirname } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { getManagedAppTokenOrExit } from "@astrojs/studio";
|
|
6
6
|
import { LibsqlError } from "@libsql/client";
|
|
7
|
-
import { mkdir, writeFile } from "fs/promises";
|
|
8
7
|
import { blue, yellow } from "kleur/colors";
|
|
9
8
|
import {
|
|
10
9
|
createServer,
|
|
11
10
|
loadEnv,
|
|
12
11
|
mergeConfig
|
|
13
12
|
} from "vite";
|
|
13
|
+
import parseArgs from "yargs-parser";
|
|
14
14
|
import { AstroDbError } from "../../runtime/utils.js";
|
|
15
15
|
import { CONFIG_FILE_NAMES, DB_PATH } from "../consts.js";
|
|
16
16
|
import { EXEC_DEFAULT_EXPORT_ERROR, EXEC_ERROR } from "../errors.js";
|
|
@@ -56,8 +56,8 @@ function astroDBIntegration() {
|
|
|
56
56
|
output = config.output;
|
|
57
57
|
if (command === "preview") return;
|
|
58
58
|
let dbPlugin = void 0;
|
|
59
|
-
const args = parseArgs(
|
|
60
|
-
connectToStudio =
|
|
59
|
+
const args = parseArgs(process.argv.slice(3));
|
|
60
|
+
connectToStudio = process.env.ASTRO_INTERNAL_TEST_REMOTE || args["remote"];
|
|
61
61
|
if (connectToStudio) {
|
|
62
62
|
appToken = await getManagedAppTokenOrExit();
|
|
63
63
|
dbPlugin = vitePluginDb({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/db",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "Add libSQL and Astro Studio support to your Astro site",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -73,16 +73,18 @@
|
|
|
73
73
|
"ora": "^8.0.1",
|
|
74
74
|
"prompts": "^2.4.2",
|
|
75
75
|
"strip-ansi": "^7.1.0",
|
|
76
|
+
"yargs-parser": "^21.1.1",
|
|
76
77
|
"zod": "^3.23.8",
|
|
77
78
|
"@astrojs/studio": "0.1.1"
|
|
78
79
|
},
|
|
79
80
|
"devDependencies": {
|
|
80
81
|
"@types/deep-diff": "^1.0.5",
|
|
81
82
|
"@types/prompts": "^2.4.9",
|
|
83
|
+
"@types/yargs-parser": "^21.0.3",
|
|
82
84
|
"cheerio": "1.0.0",
|
|
83
85
|
"typescript": "^5.5.4",
|
|
84
86
|
"vite": "^5.4.0",
|
|
85
|
-
"astro": "4.14.
|
|
87
|
+
"astro": "4.14.2",
|
|
86
88
|
"astro-scripts": "0.0.14"
|
|
87
89
|
},
|
|
88
90
|
"scripts": {
|