From 0610deb577e707b9cc0326015521deb2575c5124 Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Fri, 13 Oct 2023 17:47:03 -0700 Subject: [PATCH] fix: add missing exports for the generated .zenstack package --- packages/schema/src/plugins/plugin-utils.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/schema/src/plugins/plugin-utils.ts b/packages/schema/src/plugins/plugin-utils.ts index b1a988617..f46ae6e44 100644 --- a/packages/schema/src/plugins/plugin-utils.ts +++ b/packages/schema/src/plugins/plugin-utils.ts @@ -35,6 +35,14 @@ export function ensureDefaultOutputFolder(options: PluginRunnerOptions) { name: '.zenstack', version: '1.0.0', exports: { + './model-meta': { + default: './model-meta.js', + types: './model-meta.ts', + }, + './policy': { + default: './policy.js', + types: './policy.d.ts', + }, './zod': { default: './zod/index.js', types: './zod/index.d.ts',