@alignui/cli 0.0.1-alpha.2 → 0.0.1-alpha.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alignui/cli",
3
- "version": "0.0.1-alpha.2",
3
+ "version": "0.0.1-alpha.4",
4
4
  "description": "A command line interface to setup AlignUI",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -32,7 +32,7 @@ import {
32
32
  import { prettierFormat } from '@/src/utils/prettier';
33
33
  import { formatHslColor, formatRgbColor } from '@/src/utils/color-helpers';
34
34
 
35
- const PROJECT_DEPENDENCIES = ['tailwindcss-animate'];
35
+ const PROJECT_DEV_DEPENDENCIES = ['tailwindcss-animate'];
36
36
  const highlight = (text: string) => chalk.hex('#8c71f6')(text);
37
37
 
38
38
  const tailwindInitOptionsSchema = z.object({
@@ -72,7 +72,7 @@ export const initTailwind = new Command()
72
72
  logger.break();
73
73
  logger.white(`Installed the following packages:
74
74
 
75
- ${PROJECT_DEPENDENCIES.map((pkg) => ` - ${pkg}`).join('\n')}`);
75
+ ${PROJECT_DEV_DEPENDENCIES.map((pkg) => ` - ${pkg}`).join('\n')}`);
76
76
  logger.break();
77
77
  } catch (error) {
78
78
  handleError(error);
@@ -259,7 +259,11 @@ async function runInit(cwd: string, config: Config) {
259
259
 
260
260
  await execa(
261
261
  packageManager,
262
- [packageManager === 'npm' ? 'i' : 'add', ...PROJECT_DEPENDENCIES],
262
+ [
263
+ packageManager === 'npm' ? 'i' : 'add',
264
+ packageManager === 'npm' ? '--save-dev' : '-D',
265
+ ...PROJECT_DEV_DEPENDENCIES,
266
+ ],
263
267
  {
264
268
  cwd,
265
269
  },