refactor: drop the deprecated compiler re-export shims
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,9 +17,16 @@
|
||||
|
||||
import { Buffer } from "node:buffer";
|
||||
|
||||
import { VOID_ELEMENTS, type Attr, type DataMode, type PageAst, type ViewNode } from "./parser.ts";
|
||||
import { eraseFunctionTypes, runtimeTypeOf } from "./types.ts";
|
||||
import { stripRuntimeFunctionModifiers } from "@wrnexus/syntax";
|
||||
import {
|
||||
VOID_ELEMENTS,
|
||||
type Attr,
|
||||
type DataMode,
|
||||
type PageAst,
|
||||
type ViewNode,
|
||||
eraseFunctionTypes,
|
||||
runtimeTypeOf,
|
||||
stripRuntimeFunctionModifiers,
|
||||
} from "@wrnexus/syntax";
|
||||
import { generateStoreModule } from "./store-codegen.ts";
|
||||
import { optimizeAst } from "./analysis.ts";
|
||||
import {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Attr, PageAst, ViewNode } from "./parser.ts";
|
||||
import type { Attr, PageAst, ViewNode } from "@wrnexus/syntax";
|
||||
|
||||
export class NativeCompileError extends Error {
|
||||
constructor(message: string) {
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
/** @deprecated Import parser APIs from @wrnexus/syntax. */
|
||||
export * from "@wrnexus/syntax/parser";
|
||||
@@ -1,2 +0,0 @@
|
||||
/** @deprecated Import tokenizer APIs from @wrnexus/syntax. */
|
||||
export * from "@wrnexus/syntax/tokenizer";
|
||||
@@ -1,2 +0,0 @@
|
||||
/** @deprecated Import language type utilities from @wrnexus/syntax. */
|
||||
export * from "@wrnexus/syntax/types";
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import { parse, type PropDecl } from "../src/parser.ts";
|
||||
import { parse, type PropDecl } from "@wrnexus/syntax";
|
||||
|
||||
const compact = (source: string) =>
|
||||
parse(source).props.map(({ name, default: value }: PropDecl) => ({ name, value }));
|
||||
|
||||
Reference in New Issue
Block a user