vibe-now 1.0.5 → 1.0.7

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/package.json +2 -2
  2. package/plopfile.js +16 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-now",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,4 +25,4 @@
25
25
  "ora": "^9.0.0",
26
26
  "plop": "^4.0.4"
27
27
  }
28
- }
28
+ }
package/plopfile.js CHANGED
@@ -69,7 +69,9 @@ export default function (plop) {
69
69
  '--import-alias',
70
70
  '@/*',
71
71
  '--yes',
72
- ]);
72
+ ], {
73
+ env: { ...process.env, npm_config_legacy_peer_deps: 'true' }
74
+ });
73
75
  spinner.succeed('Base Next.js app created!');
74
76
  return 'Base Next.js app created';
75
77
  } catch (error) {
@@ -111,13 +113,19 @@ export default function (plop) {
111
113
  try {
112
114
  // Standard Installs
113
115
  if (installCmds.length > 0) {
114
- await execa('npm', ['install', ...installCmds], { cwd: projectPath });
116
+ await execa('npm', ['install', '--legacy-peer-deps', ...installCmds], {
117
+ cwd: projectPath,
118
+ env: { ...process.env, npm_config_legacy_peer_deps: 'true' }
119
+ });
115
120
  }
116
121
 
117
122
  // Dev Installs
118
123
  if (devInstallCmds.length > 0) {
119
124
  installSpinner.text = 'Installing devDependencies...';
120
- await execa('npm', ['install', '-D', ...devInstallCmds], { cwd: projectPath });
125
+ await execa('npm', ['install', '-D', '--legacy-peer-deps', ...devInstallCmds], {
126
+ cwd: projectPath,
127
+ env: { ...process.env, npm_config_legacy_peer_deps: 'true' }
128
+ });
121
129
  }
122
130
  installSpinner.succeed('Packages installed successfully!');
123
131
  } catch (error) {
@@ -136,7 +144,11 @@ export default function (plop) {
136
144
  // Use 'inherit' so user can see/interact with shadow-style commands
137
145
  await execa(command, args, {
138
146
  cwd: projectPath,
139
- stdio: 'inherit'
147
+ stdio: 'inherit',
148
+ env: {
149
+ ...process.env,
150
+ npm_config_legacy_peer_deps: 'true'
151
+ }
140
152
  });
141
153
  }
142
154
  } catch (error) {