@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.js
CHANGED
|
@@ -3359,11 +3359,13 @@ function detectPackageManager(userAgent = process.env.npm_config_user_agent) {
|
|
|
3359
3359
|
}
|
|
3360
3360
|
function installDependencies(projectPath, packageManager) {
|
|
3361
3361
|
return new Promise((resolve, reject) => {
|
|
3362
|
-
const
|
|
3362
|
+
const isWindows = process.platform === "win32";
|
|
3363
|
+
const command = isWindows ? `${packageManager.name}.cmd` : packageManager.name;
|
|
3363
3364
|
const child = (0, node_child_process.spawn)(command, ["install"], {
|
|
3364
3365
|
cwd: projectPath,
|
|
3365
3366
|
env: process.env,
|
|
3366
|
-
stdio: "inherit"
|
|
3367
|
+
stdio: "inherit",
|
|
3368
|
+
shell: isWindows
|
|
3367
3369
|
});
|
|
3368
3370
|
child.on("error", reject);
|
|
3369
3371
|
child.on("close", (code, signal) => {
|