From 6d4b0c61b37cd562cf209a4d5c81446ee3939ada Mon Sep 17 00:00:00 2001 From: Joe Savona Date: Wed, 8 Mar 2023 15:56:25 -0800 Subject: [PATCH] Export ValueKind and Effect We need to be able to reference these to teach the compiler about custom hooks like Relay. --- compiler/forget/src/__tests__/hir-test.ts | 2 +- compiler/forget/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/forget/src/__tests__/hir-test.ts b/compiler/forget/src/__tests__/hir-test.ts index 298594c875..e4cf33ea04 100644 --- a/compiler/forget/src/__tests__/hir-test.ts +++ b/compiler/forget/src/__tests__/hir-test.ts @@ -10,7 +10,7 @@ import { wasmFolder } from "@hpcc-js/wasm"; import path from "path"; import runReactForgetBabelPlugin from "../Babel/RunReactForgetBabelPlugin"; -import { Effect, ValueKind } from "../HIR"; +import { Effect, ValueKind } from "../index"; import { toggleLogging } from "../Utils/logger"; import generateTestsFromFixtures from "./test-utils/generateTestsFromFixtures"; diff --git a/compiler/forget/src/index.ts b/compiler/forget/src/index.ts index 08958a5175..fb58b437ea 100644 --- a/compiler/forget/src/index.ts +++ b/compiler/forget/src/index.ts @@ -11,7 +11,7 @@ export { ErrorSeverity, } from "./CompilerError"; export { compile, CompilerPipelineValue, run } from "./CompilerPipeline"; -export { printHIR } from "./HIR"; +export { Effect, printHIR, ValueKind } from "./HIR"; export { printReactiveFunction } from "./ReactiveScopes"; declare global {