Skip to content

Commit d2bd98f

Browse files
committed
wip
1 parent b04f26d commit d2bd98f

File tree

4 files changed

+3
-25
lines changed

4 files changed

+3
-25
lines changed

package.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@
77
"bin": {
88
"justd": "dist/index.js"
99
},
10-
"files": [
11-
"dist",
12-
"src/resources",
13-
"LICENSE",
14-
"README.md",
15-
"package.json"
16-
],
10+
"files": ["dist", "src/resources", "LICENSE", "README.md", "package.json"],
1711
"repository": {
1812
"type": "git",
1913
"url": "git+https://github.com/justdlabs/cli.git"
@@ -32,13 +26,7 @@
3226
"release": "export GITHUB_TOKEN=$(cat .github_token) && release-it",
3327
"typecheck": "tsc --noEmit"
3428
},
35-
"keywords": [
36-
"cli",
37-
"justd cli",
38-
"Justd",
39-
"design-system",
40-
"justd"
41-
],
29+
"keywords": ["cli", "justd cli", "Justd", "design-system", "justd"],
4230
"author": "Irsyad A. Panjaitan",
4331
"license": "MIT",
4432
"devDependencies": {

src/commands/add.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { components, namespaces } from "@/resources/components"
44
import { additionalDeps } from "@/utils/additional-deps"
55
import { type Config, configManager, getWriteComponentPath } from "@/utils/config"
66
import { getPackageManager } from "@/utils/get-package-manager"
7-
import { getUIPathFromConfig } from "@/utils/helpers"
87
import { error, grayText, highlight, warn, warningText } from "@/utils/logging"
98
import { getRepoUrlForComponent, getUtilsFolder } from "@/utils/repo"
109
import { checkbox } from "@inquirer/prompts"

src/commands/init.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ export async function init(flags: {
237237
}
238238
}
239239

240-
241240
const paths = config.compilerOptions.paths
242241
if (paths) {
243242
const firstAliasKey = Object.keys(paths)[0]
@@ -316,7 +315,6 @@ export async function init(flags: {
316315
content: fileContent,
317316
})
318317

319-
320318
if (themeProvider) {
321319
const themeProviderContent = fs.readFileSync(themeProvider, "utf8")
322320

src/utils/index.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
import fs from "node:fs"
22
import path from "node:path"
3-
import {
4-
hasFolder,
5-
isLaravel,
6-
isNextJs,
7-
possibilityComponentsPath,
8-
possibilityCssPath,
9-
} from "@/utils/helpers"
3+
import { hasFolder, isLaravel, isNextJs, possibilityCssPath } from "@/utils/helpers"
104
import { error } from "@/utils/logging"
115
import { confirm, input } from "@inquirer/prompts"
12-
import stripJsonComments from "strip-json-comments"
136
import { transform } from "sucrase"
147
import { type Config, configManager } from "./config"
158

0 commit comments

Comments
 (0)