-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
33 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './dist/@types/astro.js' | ||
export * from './dist/core/index.js' | ||
export type * from './dist/@types/astro.js'; | ||
export * from './dist/core/index.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
// This is the main entrypoint when importing the `astro` package. | ||
|
||
export { default as build } from './build/index.js'; | ||
import type { AstroInlineConfig } from '../@types/astro.js'; | ||
import { default as _build } from './build/index.js'; | ||
import { default as _sync } from './sync/index.js'; | ||
|
||
export { default as dev } from './dev/index.js'; | ||
export { default as preview } from './preview/index.js'; | ||
export { default as sync } from './sync/index.js'; | ||
|
||
/** | ||
* Builds your site for deployment. By default, this will generate static files and place them in a dist/ directory. | ||
* If SSR is enabled, this will generate the necessary server files to serve your site. | ||
*/ | ||
// Wrap `_build` to prevent exposing the second internal options parameter | ||
export const build = (inlineConfig: AstroInlineConfig) => _build(inlineConfig); | ||
|
||
/** | ||
* Generates TypeScript types for all Astro modules. This sets up a `src/env.d.ts` file for type inferencing, | ||
* and defines the `astro:content` module for the Content Collections API. | ||
*/ | ||
// Wrap `_sync` to prevent exposing the second internal options parameter | ||
export const sync = (inlineConfig: AstroInlineConfig) => _sync(inlineConfig); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters