瀏覽代碼

'scripts/install' ändern

TORAMBO IT 7 月之前
父節點
當前提交
f9abc58ae0
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      scripts/install

+ 6 - 3
scripts/install

@@ -43,10 +43,13 @@ ynh_config_add --template=".env" --destination="$install_dir/.env"
 #=================================================
 ynh_script_progression "Building the app..."
 
+corepack enable
+corepack prepare pnpm@10.13.1 --activate
+
 pushd $install_dir
-	ynh_hide_warnings ynh_exec_as_app yarn install
-	ynh_hide_warnings ynh_exec_as_app NODE_ENV=production yarn build
-	ynh_hide_warnings ynh_exec_as_app yarn db:migrate
+	ynh_hide_warnings ynh_exec_as_app pnpm install
+	ynh_hide_warnings ynh_exec_as_app NODE_ENV=production pnpm build
+	ynh_hide_warnings ynh_exec_as_app pnpm db:migrate
 popd
 
 #=================================================