From 0bdb67382f5c9641675732bd2cbf6e33c068994d Mon Sep 17 00:00:00 2001 From: Birk Skyum Date: Wed, 30 Oct 2024 17:01:09 +0100 Subject: [PATCH] Add with { type: "json" } to package.json import --- packages/create-solid/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/create-solid/src/index.ts b/packages/create-solid/src/index.ts index e331de8..c094406 100644 --- a/packages/create-solid/src/index.ts +++ b/packages/create-solid/src/index.ts @@ -2,10 +2,10 @@ import { AllSupported, handleNew, isSupported } from "@solid-cli/commands/new"; import color from "picocolors"; import { intro } from "@clack/prompts"; -import { version } from "../package.json"; +import packageJson from "../package.json" with { type: "json" }; import { command, run, option, string, boolean, flag, optional, positional } from "cmd-ts"; -intro(`\n${color.bgCyan(color.black(` Create-Solid v${version}`))}`); +intro(`\n${color.bgCyan(color.black(` Create-Solid v${packageJson.version}`))}`); const app = command({ name: "create-solid",