mirror of
https://github.com/sern-handler/website
synced 2026-06-23 16:22:26 +00:00
feat: migrate to starlight
This commit is contained in:
6
node_modules/astro/dist/cli/sync/index.d.ts
generated
vendored
Normal file
6
node_modules/astro/dist/cli/sync/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import type yargs from 'yargs-parser';
|
||||
interface SyncOptions {
|
||||
flags: yargs.Arguments;
|
||||
}
|
||||
export declare function sync({ flags }: SyncOptions): Promise<import("../../core/sync/index.js").ProcessExit>;
|
||||
export {};
|
||||
22
node_modules/astro/dist/cli/sync/index.js
generated
vendored
Normal file
22
node_modules/astro/dist/cli/sync/index.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import { printHelp } from "../../core/messages.js";
|
||||
import _sync from "../../core/sync/index.js";
|
||||
import { flagsToAstroInlineConfig } from "../flags.js";
|
||||
async function sync({ flags }) {
|
||||
if (flags?.help || flags?.h) {
|
||||
printHelp({
|
||||
commandName: "astro sync",
|
||||
usage: "[...flags]",
|
||||
tables: {
|
||||
Flags: [["--help (-h)", "See all available flags."]]
|
||||
},
|
||||
description: `Generates TypeScript types for all Astro modules.`
|
||||
});
|
||||
return 0;
|
||||
}
|
||||
const inlineConfig = flagsToAstroInlineConfig(flags);
|
||||
const exitCode = await _sync(inlineConfig);
|
||||
return exitCode;
|
||||
}
|
||||
export {
|
||||
sync
|
||||
};
|
||||
Reference in New Issue
Block a user