diff --git a/src/parser/parse.test.ts b/src/parser/parse.test.ts index effaac5..3fb11bd 100644 --- a/src/parser/parse.test.ts +++ b/src/parser/parse.test.ts @@ -6,7 +6,7 @@ import generate from './generator'; import { AstNode, FunctionNode } from '../ast'; import { ScopeIndex, Scope, Parser } from './parser'; import { renameBindings, renameFunctions, renameTypes } from './utils'; -import { preprocessAst } from '../preprocessor'; +import { preprocessAst } from '../preprocessor/preprocessor'; import generatePreprocess from '../preprocessor'; const fileContents = (filePath: string) => diff --git a/src/preprocessor/index.ts b/src/preprocessor/index.ts index a3ddf80..d41a508 100644 --- a/src/preprocessor/index.ts +++ b/src/preprocessor/index.ts @@ -4,6 +4,9 @@ import { preprocessComments, PreprocessorOptions, } from './preprocessor'; + +// This index file is currently only for package publishing, where the whole +// library exists in the dist/ folder, so the below import is relative to dist/ import parser from './preprocessor-parser.js'; // Should this be in a separate file? There's no tests for it either