diff options
Diffstat (limited to 'packages/astro/src')
-rw-r--r-- | packages/astro/src/@types/transformer.ts | 2 | ||||
-rw-r--r-- | packages/astro/src/ast.ts | 2 | ||||
-rw-r--r-- | packages/astro/src/compiler/codegen/index.ts | 4 | ||||
-rw-r--r-- | packages/astro/src/compiler/index.ts | 2 | ||||
-rw-r--r-- | packages/astro/src/compiler/transform/head.ts | 2 | ||||
-rw-r--r-- | packages/astro/src/compiler/transform/index.ts | 2 | ||||
-rw-r--r-- | packages/astro/src/compiler/transform/prism.ts | 2 | ||||
-rw-r--r-- | packages/astro/src/compiler/transform/styles.ts | 2 | ||||
-rw-r--r-- | packages/astro/src/logger.ts | 2 | ||||
-rw-r--r-- | packages/astro/src/runtime.ts | 2 |
10 files changed, 11 insertions, 11 deletions
diff --git a/packages/astro/src/@types/transformer.ts b/packages/astro/src/@types/transformer.ts index 8a2099d61..6bb453c1d 100644 --- a/packages/astro/src/@types/transformer.ts +++ b/packages/astro/src/@types/transformer.ts @@ -1,4 +1,4 @@ -import type { TemplateNode } from 'astro-parser'; +import type { TemplateNode } from '@astrojs/parser'; import type { CompileOptions } from './compiler'; export type VisitorFn<T = TemplateNode> = (this: { skip: () => void; remove: () => void; replace: (node: T) => void }, node: T, parent: T, type: string, index: number) => void; diff --git a/packages/astro/src/ast.ts b/packages/astro/src/ast.ts index bee1d9b6f..4de7a6d16 100644 --- a/packages/astro/src/ast.ts +++ b/packages/astro/src/ast.ts @@ -1,5 +1,5 @@ import 'source-map-support/register.js'; -import type { Attribute } from 'astro-parser'; +import type { Attribute } from '@astrojs/parser'; // AST utility functions diff --git a/packages/astro/src/compiler/codegen/index.ts b/packages/astro/src/compiler/codegen/index.ts index 8a168f0c5..8c5cb1fb1 100644 --- a/packages/astro/src/compiler/codegen/index.ts +++ b/packages/astro/src/compiler/codegen/index.ts @@ -1,4 +1,4 @@ -import type { Ast, Script, Style, TemplateNode } from 'astro-parser'; +import type { Ast, Script, Style, TemplateNode } from '@astrojs/parser'; import type { CompileOptions } from '../../@types/compiler'; import type { AstroConfig, AstroMarkdownOptions, TransformResult, ComponentInfo, Components } from '../../@types/astro'; import type { ImportDeclaration, ExportNamedDeclaration, VariableDeclarator, Identifier, ImportDefaultSpecifier } from '@babel/types'; @@ -7,7 +7,7 @@ import 'source-map-support/register.js'; import eslexer from 'es-module-lexer'; import esbuild from 'esbuild'; import path from 'path'; -import { parse } from 'astro-parser'; +import { parse } from '@astrojs/parser'; import { walk, asyncWalk } from 'estree-walker'; import _babelGenerator from '@babel/generator'; import babelParser from '@babel/parser'; diff --git a/packages/astro/src/compiler/index.ts b/packages/astro/src/compiler/index.ts index b206878e0..c74dd05f2 100644 --- a/packages/astro/src/compiler/index.ts +++ b/packages/astro/src/compiler/index.ts @@ -5,7 +5,7 @@ import type { CompileOptions } from '../@types/compiler.js'; import path from 'path'; import { renderMarkdownWithFrontmatter } from '@astrojs/markdown-support'; -import { parse } from 'astro-parser'; +import { parse } from '@astrojs/parser'; import { transform } from './transform/index.js'; import { codegen } from './codegen/index.js'; diff --git a/packages/astro/src/compiler/transform/head.ts b/packages/astro/src/compiler/transform/head.ts index bafe3e341..b11581814 100644 --- a/packages/astro/src/compiler/transform/head.ts +++ b/packages/astro/src/compiler/transform/head.ts @@ -1,5 +1,5 @@ import type { Transformer, TransformOptions } from '../../@types/transformer'; -import type { TemplateNode } from 'astro-parser'; +import type { TemplateNode } from '@astrojs/parser'; /** If there are hydrated components, inject styles for [data-astro-root] and [data-astro-children] */ export default function (opts: TransformOptions): Transformer { diff --git a/packages/astro/src/compiler/transform/index.ts b/packages/astro/src/compiler/transform/index.ts index 9df050ee5..c9943cc5f 100644 --- a/packages/astro/src/compiler/transform/index.ts +++ b/packages/astro/src/compiler/transform/index.ts @@ -1,4 +1,4 @@ -import type { Ast, TemplateNode } from 'astro-parser'; +import type { Ast, TemplateNode } from '@astrojs/parser'; import type { NodeVisitor, TransformOptions, Transformer, VisitorFn } from '../../@types/transformer'; import { walk } from 'estree-walker'; diff --git a/packages/astro/src/compiler/transform/prism.ts b/packages/astro/src/compiler/transform/prism.ts index 0439b3a36..0afb8194b 100644 --- a/packages/astro/src/compiler/transform/prism.ts +++ b/packages/astro/src/compiler/transform/prism.ts @@ -1,5 +1,5 @@ import type { Transformer } from '../../@types/transformer'; -import type { Script, TemplateNode } from 'astro-parser'; +import type { Script, TemplateNode } from '@astrojs/parser'; import { getAttrValue } from '../../ast.js'; export const PRISM_IMPORT = `import Prism from 'astro/components/Prism.astro';`; diff --git a/packages/astro/src/compiler/transform/styles.ts b/packages/astro/src/compiler/transform/styles.ts index 70d573003..1e459bb7f 100644 --- a/packages/astro/src/compiler/transform/styles.ts +++ b/packages/astro/src/compiler/transform/styles.ts @@ -1,5 +1,5 @@ import type { TransformOptions, Transformer } from '../../@types/transformer'; -import type { TemplateNode } from 'astro-parser'; +import type { TemplateNode } from '@astrojs/parser'; import crypto from 'crypto'; import { createRequire } from 'module'; diff --git a/packages/astro/src/logger.ts b/packages/astro/src/logger.ts index 84572e86e..a7531f9a3 100644 --- a/packages/astro/src/logger.ts +++ b/packages/astro/src/logger.ts @@ -1,5 +1,5 @@ import 'source-map-support/register.js'; -import type { CompileError } from 'astro-parser'; +import type { CompileError } from '@astrojs/parser'; import { bold, blue, red, grey, underline } from 'kleur/colors'; import { Writable } from 'stream'; import { format as utilFormat } from 'util'; diff --git a/packages/astro/src/runtime.ts b/packages/astro/src/runtime.ts index bd5171f06..db1e15b12 100644 --- a/packages/astro/src/runtime.ts +++ b/packages/astro/src/runtime.ts @@ -8,7 +8,7 @@ import { fileURLToPath, pathToFileURL } from 'url'; import { posix as path } from 'path'; import { performance } from 'perf_hooks'; import { SnowpackDevServer, ServerRuntime as SnowpackServerRuntime, SnowpackConfig, NotFoundError } from 'snowpack'; -import { CompileError } from 'astro-parser'; +import { CompileError } from '@astrojs/parser'; import { loadConfiguration, logger as snowpackLogger, startServer as startSnowpackServer } from 'snowpack'; import { canonicalURL, getSrcPath, stopTimer } from './build/util.js'; import { debug, info } from './logger.js'; |