From 2916815364de2caa7ba4416024a9ae9889987c97 Mon Sep 17 00:00:00 2001 From: "Irsyad A. Panjaitan" Date: Sat, 25 Jan 2025 10:26:17 +0700 Subject: [PATCH] fix: fix path laravel --- package.json | 16 ++-------------- src/commands/init.ts | 4 ++-- src/commands/start-new-project/index.ts | 3 +-- 3 files changed, 5 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 01c29dd..5283b1c 100644 --- a/package.json +++ b/package.json @@ -7,13 +7,7 @@ "bin": { "justd": "dist/index.js" }, - "files": [ - "dist", - "src/resources", - "LICENSE", - "README.md", - "package.json" - ], + "files": ["dist", "src/resources", "LICENSE", "README.md", "package.json"], "repository": { "type": "git", "url": "git+https://github.com/justdlabs/cli.git" @@ -32,13 +26,7 @@ "release": "export GITHUB_TOKEN=$(cat .github_token) && release-it", "typecheck": "tsc --noEmit" }, - "keywords": [ - "cli", - "justd cli", - "Justd", - "design-system", - "justd" - ], + "keywords": ["cli", "justd cli", "Justd", "design-system", "justd"], "author": "Irsyad A. Panjaitan", "license": "MIT", "devDependencies": { diff --git a/src/commands/init.ts b/src/commands/init.ts index b4f9535..43de5f7 100644 --- a/src/commands/init.ts +++ b/src/commands/init.ts @@ -155,8 +155,8 @@ export async function init(flags: { providers = path.join(stubs, `next/${lang}/providers.stub`) } else if (isLaravel()) { twConfigStub = path.join(stubs, "1.x/tailwind.config.laravel.stub") - themeProvider = path.join(stubs, `laravel/${lang}theme-provider.stub`) - providers = path.join(stubs, `laravel/${lang}providers.stub`) + themeProvider = path.join(stubs, `laravel/${lang}/theme-provider.stub`) + providers = path.join(stubs, `laravel/${lang}/providers.stub`) } else if (isRemix()) { twConfigStub = path.join(stubs, "1.x/tailwind.config.vite.stub") themeProvider = path.join(stubs, `remix/${lang}/theme-provider.stub`) diff --git a/src/commands/start-new-project/index.ts b/src/commands/start-new-project/index.ts index 58946cf..ae9f20a 100644 --- a/src/commands/start-new-project/index.ts +++ b/src/commands/start-new-project/index.ts @@ -13,10 +13,10 @@ import { import { setupBiome, setupTailwind } from "@/commands/start-new-project/partials/setup" import type { Framework, FrameworkKey, FrameworkOptions, PackageManager } from "@/types" import type { Config } from "@/utils/config" +import { isTailwind } from "@/utils/helpers" import { error, grayText, highlight } from "@/utils/logging" import { input, select } from "@inquirer/prompts" import { executeCommand } from "./partials/execute-command" -import { isTailwind } from "@/utils/helpers" const isProduction = process.env.NODE_ENV === "production" @@ -111,7 +111,6 @@ export async function startNewProject( options.useSrc = ["y", "yes"].includes(wantSrcFolder.trim().toLowerCase()) } - const useBiome = await input({ message: `Do you want to use Biome for this project? (Y/${grayText("n")})`, default: "Yes",