@ratiu5/solidui-cli 0.7.3 → 0.7.4

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1143,10 +1143,17 @@ var init = new Command2().name("init").description("initialize your project and
1143
1143
  const extension = config.tsx ? "ts" : "js";
1144
1144
  await writeFile2(
1145
1145
  config.resolvedPaths.tailwindConfig,
1146
- TAILWIND_CONFIG.replace("<%- prefix %>", config.tailwind.prefix),
1146
+ TAILWIND_CONFIG.replace(
1147
+ "<%- prefix %>",
1148
+ config.tailwind.prefix
1149
+ ),
1150
+ "utf-8"
1151
+ );
1152
+ await writeFile2(
1153
+ config.resolvedPaths.tailwindCss,
1154
+ TAILWIND_CSS,
1147
1155
  "utf-8"
1148
1156
  );
1149
- await writeFile2(config.resolvedPaths.tailwindCss, TAILWIND_CSS, "utf-8");
1150
1157
  await writeFile2(
1151
1158
  `${config.resolvedPaths.utils}.${extension}`,
1152
1159
  extension === "ts" ? UTILS : UTILS_JS,
@@ -1155,11 +1162,15 @@ var init = new Command2().name("init").description("initialize your project and
1155
1162
  spinner3.stop(`Project initialized.`);
1156
1163
  spinner3.start(`Installing dependencies...`);
1157
1164
  const packageManager = await getPackageManager(cwd);
1158
- await execa2(packageManager, [
1159
- "add",
1160
- packageManager === "deno" ? "--npm" : "",
1161
- ...PROJECT_DEPENDENCIES
1162
- ], { cwd });
1165
+ await execa2(
1166
+ packageManager,
1167
+ [
1168
+ "add",
1169
+ ...packageManager === "deno" ? ["--npm"] : [],
1170
+ ...PROJECT_DEPENDENCIES
1171
+ ],
1172
+ { cwd }
1173
+ );
1163
1174
  spinner3.stop(`Dependencies installed.`);
1164
1175
  p3.outro(
1165
1176
  `${highlight("Success!")} Project initialization completed. You may now add components.`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ratiu5/solidui-cli",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "Add Solid UI Components to your application using the Solid-UI CLI tool",
5
5
  "publishConfig": {
6
6
  "access": "public"