Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
irsyadadl committed Jan 15, 2025
1 parent 3d674cd commit ed20fd3
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 140 deletions.
Binary file added bun.lockb
Binary file not shown.
201 changes: 95 additions & 106 deletions dist/index.js

Large diffs are not rendered by default.

17 changes: 2 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@
"bin": {
"justd-cli": "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"
Expand All @@ -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": {
Expand Down Expand Up @@ -67,7 +55,6 @@
"arktype": "^2.0.0-rc.33",
"commander": "^13.0.0",
"diff": "^5.2.0",
"figlet": "^1.8.0",
"open": "^10.1.0",
"ora": "^8.1.1",
"oxc-transform": "^0.46.0",
Expand Down
15 changes: 0 additions & 15 deletions src/commands/init.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import fs, { writeFileSync } from "node:fs"
import { input, select } from "@inquirer/prompts"
import figlet from "figlet"

import { spawn } from "node:child_process"
import path from "node:path"
Expand Down Expand Up @@ -390,19 +389,5 @@ export async function init(flags: {

console.info("\nNow try to add some components to your project")
console.info(`by running: ${highlight("npx justd-cli@latest add")}`)

// @ts-ignore
figlet.text(
"Justd",
{
font: "Standard",
horizontalLayout: "default",
width: 80,
verticalLayout: "default",
},
(_: any, data: string) => {
console.info(highlight(data))
},
)
spinner.stop()
}
8 changes: 4 additions & 4 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ export async function addUiPathToLangConfig(language: "typescript" | "javascript
config.compilerOptions.paths.ui = [`./${possibilityComponentsPath()}/ui/index.${ext}`]

fs.writeFileSync(configPath, JSON.stringify(config, null, 2))

console.log(`Updated ${path.basename(configPath)} with ui path.`)
} catch (error) {
console.error(`Error updating ${path.basename(configPath)}:`, error)
} catch (e) {
// @ts-ignore
error(`Error updating ${path.basename(configPath)}:`, e?.message)
process.exit(1)
}
}

Expand Down

0 comments on commit ed20fd3

Please sign in to comment.