Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit a05d961

Browse files
committed
fix: don't overwrite
1 parent 6271950 commit a05d961

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ async function processComponent(
387387
}
388388

389389
const component = options.allComponents.find((c) => c.name === options.componentName)
390-
if (component?.children) {
390+
if (!options.overwrite && component?.children) {
391391
for (const child of component.children) {
392392
await processComponent(config, { ...options, componentName: child.name })
393393
}

0 commit comments

Comments
 (0)