From ce1ac477f2e3b9d82147f7f99dcc1cdf8127ff14 Mon Sep 17 00:00:00 2001 From: Alex McKinney Date: Thu, 5 Dec 2024 16:22:37 -0500 Subject: [PATCH] chore(cli): Publish @fern-api/snippets-core (#5348) --- packages/snippets/core/build.cjs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/snippets/core/build.cjs b/packages/snippets/core/build.cjs index 4eca79023bd..bfe87ee6bff 100644 --- a/packages/snippets/core/build.cjs +++ b/packages/snippets/core/build.cjs @@ -13,6 +13,11 @@ async function main() { minify: true, dts: true, outDir: 'dist', + external: [ + // Exclude the optional dependencies that aren't supported in the browser. + 'prettier', + '@redocly/openapi-core' + ], tsconfig: "./build.tsconfig.json" }); @@ -30,7 +35,10 @@ async function main() { repository: packageJson.repository, main: "index.cjs", types: "index.d.ts", - files: ["index.cjs", "index.d.ts"] + files: ["index.cjs", "index.d.ts"], + dependencies: { + '@redocly/openapi-core': '^1.4.1', + } }, undefined, 2