@srcroot/ui 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +0 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1021,18 +1021,6 @@ async function add(components, options) {
|
|
|
1021
1021
|
});
|
|
1022
1022
|
}
|
|
1023
1023
|
console.log();
|
|
1024
|
-
if (!options.yes) {
|
|
1025
|
-
const response = await prompts2({
|
|
1026
|
-
type: "confirm",
|
|
1027
|
-
name: "proceed",
|
|
1028
|
-
message: "Continue?",
|
|
1029
|
-
initial: true
|
|
1030
|
-
});
|
|
1031
|
-
if (!response.proceed) {
|
|
1032
|
-
console.log(chalk2.yellow("Cancelled."));
|
|
1033
|
-
process.exit(0);
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
1024
|
const spinner = ora2("Adding components...").start();
|
|
1037
1025
|
const hasSrc = fs2.existsSync(path2.join(cwd, "src"));
|
|
1038
1026
|
const srcPath = hasSrc ? path2.join(cwd, "src") : cwd;
|