From 598bc1779d91b36dced66dc2075ebc425fd2629f Mon Sep 17 00:00:00 2001 From: Neil Flatley Date: Tue, 5 Dec 2023 11:12:19 +0000 Subject: [PATCH] build: pkg build cannot resolve `csv/sync` package https://github.com/vercel/pkg/issues/1873 --- packages/contensis-cli/src/util/csv.formatter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/contensis-cli/src/util/csv.formatter.ts b/packages/contensis-cli/src/util/csv.formatter.ts index 46e0cee..d687118 100644 --- a/packages/contensis-cli/src/util/csv.formatter.ts +++ b/packages/contensis-cli/src/util/csv.formatter.ts @@ -1,4 +1,5 @@ -import { parse, stringify } from 'csv/sync'; +import { parse, stringify } from 'csv/dist/esm/sync'; +// import { parse, stringify } from 'csv/sync'; import { flattenObject } from './json.formatter'; export const csvFormatter = (entries: T | T[]) => {