mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
[ci] update lockfile (#5988)
* [ci] update lockfile * fix type issues --------- Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com> Co-authored-by: Nate Moore <nate@astro.build>
This commit is contained in:
parent
bec45b3be5
commit
fbb34e1ef6
3 changed files with 641 additions and 660 deletions
|
@ -32,6 +32,7 @@ export default function astro(_opts: AstroPluginOptions): Plugin {
|
||||||
ecmaVersion: 'latest',
|
ecmaVersion: 'latest',
|
||||||
sourceType: 'module',
|
sourceType: 'module',
|
||||||
});
|
});
|
||||||
|
// @ts-expect-error acorn.Node is not assignable to estree.Node
|
||||||
walk(ast, {
|
walk(ast, {
|
||||||
enter(node: any) {
|
enter(node: any) {
|
||||||
// Transform `Astro.glob("./pages/*.astro")` to `Astro.glob(import.meta.glob("./pages/*.astro"), () => "./pages/*.astro")`
|
// Transform `Astro.glob("./pages/*.astro")` to `Astro.glob(import.meta.glob("./pages/*.astro"), () => "./pages/*.astro")`
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
import { type Expression, type Super } from 'estree';
|
import { type Expression, type Super } from 'estree';
|
||||||
import Slugger from 'github-slugger';
|
import Slugger from 'github-slugger';
|
||||||
import { type MdxTextExpression } from 'mdast-util-mdx-expression';
|
import { type MdxTextExpression } from 'mdast-util-mdx-expression';
|
||||||
import { visit, type Node } from 'unist-util-visit';
|
import { type Node } from 'unist';
|
||||||
|
import { visit } from 'unist-util-visit';
|
||||||
|
|
||||||
import { InvalidAstroDataError, safelyGetAstroData } from './frontmatter-injection.js';
|
import { InvalidAstroDataError, safelyGetAstroData } from './frontmatter-injection.js';
|
||||||
import type { MarkdownAstroData, MarkdownHeading, MarkdownVFile, RehypePlugin } from './types.js';
|
import type { MarkdownAstroData, MarkdownHeading, MarkdownVFile, RehypePlugin } from './types.js';
|
||||||
|
|
1297
pnpm-lock.yaml
generated
1297
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue