From 05410db26d20940851c0512858cdcfbf20412749 Mon Sep 17 00:00:00 2001 From: Philipp Kief Date: Wed, 3 Jul 2024 09:19:06 +0200 Subject: [PATCH] Update imports for Bun.js --- src/core/generate-preview.ts | 4 ++-- src/core/utils/screenshot.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/generate-preview.ts b/src/core/generate-preview.ts index 9e3263d..06ed79e 100644 --- a/src/core/generate-preview.ts +++ b/src/core/generate-preview.ts @@ -1,5 +1,5 @@ -import { writeFileSync } from 'fs'; -import { basename, join, resolve } from 'path'; +import { writeFileSync } from 'node:fs'; +import { basename, join, resolve } from 'node:path'; import { green, red } from '../cli/utils'; import { Config, Theme } from './models'; import { previewStyles } from './styles'; diff --git a/src/core/utils/screenshot.ts b/src/core/utils/screenshot.ts index 1181aa5..3472f65 100644 --- a/src/core/utils/screenshot.ts +++ b/src/core/utils/screenshot.ts @@ -1,4 +1,4 @@ -import { join } from 'path'; +import { join } from 'node:path'; import puppeteer from 'puppeteer'; /**