优化项目启动器的创建功能
This commit is contained in:
@@ -44,6 +44,7 @@ import type {
|
||||
SystemProxySettings,
|
||||
GitCredentials,
|
||||
GitDetectResult,
|
||||
PackageManagerInfo,
|
||||
GitSettings,
|
||||
GitHubAccountsSettings,
|
||||
GitHubTokenValidation,
|
||||
@@ -958,6 +959,12 @@ export async function openProjectBootWindow(): Promise<void> {
|
||||
window.open("/project-boot", "project-boot")
|
||||
}
|
||||
|
||||
export async function detectPackageManager(
|
||||
name: string
|
||||
): Promise<PackageManagerInfo> {
|
||||
return getTransport().call("detect_package_manager", { name })
|
||||
}
|
||||
|
||||
export async function createShadcnProject(params: {
|
||||
projectName: string
|
||||
template: string
|
||||
|
||||
@@ -536,6 +536,12 @@ export interface GitDetectResult {
|
||||
path: string | null
|
||||
}
|
||||
|
||||
export interface PackageManagerInfo {
|
||||
name: string
|
||||
installed: boolean
|
||||
version: string | null
|
||||
}
|
||||
|
||||
export interface GitSettings {
|
||||
custom_path: string | null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user