@farm.js/create-app 0.1.0-beta.41 → 0.1.0-beta.43
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 +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/templates/_renderers/preact/package.json +2 -2
- package/templates/_renderers/solid/package.json +2 -2
- package/templates/_renderers/svelte/package.json +2 -2
- package/templates/_renderers/vue/package.json +2 -2
- package/templates/auth/package.json +3 -3
- package/templates/basic/package.json +2 -2
- package/templates/better-auth/package.json +3 -3
- package/templates/react-compiler/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3352,11 +3352,13 @@ function detectPackageManager(userAgent = process.env.npm_config_user_agent) {
|
|
|
3352
3352
|
}
|
|
3353
3353
|
function installDependencies(projectPath, packageManager) {
|
|
3354
3354
|
return new Promise((resolve, reject) => {
|
|
3355
|
-
const
|
|
3355
|
+
const isWindows = process.platform === "win32";
|
|
3356
|
+
const command = isWindows ? `${packageManager.name}.cmd` : packageManager.name;
|
|
3356
3357
|
const child = spawn(command, ["install"], {
|
|
3357
3358
|
cwd: projectPath,
|
|
3358
3359
|
env: process.env,
|
|
3359
|
-
stdio: "inherit"
|
|
3360
|
+
stdio: "inherit",
|
|
3361
|
+
shell: isWindows
|
|
3360
3362
|
});
|
|
3361
3363
|
child.on("error", reject);
|
|
3362
3364
|
child.on("close", (code, signal) => {
|