solidui-cli 0.1.4 → 0.1.6
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 +10 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -258,8 +258,8 @@ var PROJECT_DEPS = [
|
|
|
258
258
|
"@kobalte/core",
|
|
259
259
|
"tailwindcss"
|
|
260
260
|
];
|
|
261
|
-
var registryUIUrl = "https://solid-ui
|
|
262
|
-
var registryIndexUrl = "https://solid-ui
|
|
261
|
+
var registryUIUrl = "https://www.solid-ui.com/registry/ui";
|
|
262
|
+
var registryIndexUrl = "https://www.solid-ui.com/registry/index.json";
|
|
263
263
|
var UTILS = `import type { ClassValue } from "clsx"
|
|
264
264
|
import { clsx } from "clsx"
|
|
265
265
|
import { twMerge } from "tailwind-merge"
|
|
@@ -690,7 +690,7 @@ async function add(componentNames) {
|
|
|
690
690
|
activityIndicator.stop();
|
|
691
691
|
log2.error(
|
|
692
692
|
`Something went wrong while creating your components. Have you ran ${chalk.green(
|
|
693
|
-
"
|
|
693
|
+
"solidui-cli init"
|
|
694
694
|
)}?`
|
|
695
695
|
);
|
|
696
696
|
process.exit(1);
|
|
@@ -737,9 +737,7 @@ async function init() {
|
|
|
737
737
|
await writeCSS(config.tailwind.css);
|
|
738
738
|
log3.success("Project configuration completed.");
|
|
739
739
|
await installDeps();
|
|
740
|
-
log3.success(
|
|
741
|
-
"Success! Try 'npx @solid-ui/cli add button' to add a button component to your project"
|
|
742
|
-
);
|
|
740
|
+
log3.success("Success! Try 'npx solidui-cli add button' to add a button component to your project");
|
|
743
741
|
process.exit(0);
|
|
744
742
|
}
|
|
745
743
|
function writeUtils() {
|
|
@@ -819,8 +817,12 @@ function writeTsconfig(alias) {
|
|
|
819
817
|
const indicator = spinner3();
|
|
820
818
|
indicator.start("Configuring your tsconfig.json");
|
|
821
819
|
readJsonFile(process.cwd() + "/tsconfig.json", (error, data) => {
|
|
822
|
-
if (error)
|
|
823
|
-
log3.error(
|
|
820
|
+
if (error) {
|
|
821
|
+
log3.error(
|
|
822
|
+
"Something went wrong while configuring your tsconfig.json. Please make sure it is formatted correctly and doesn't contain any comments."
|
|
823
|
+
);
|
|
824
|
+
process.exit(1);
|
|
825
|
+
}
|
|
824
826
|
const tsconfigData = data;
|
|
825
827
|
if (!tsconfigData.compilerOptions.paths) {
|
|
826
828
|
tsconfigData.compilerOptions.paths = {};
|