mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
cli: organize file structure
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { ProjectPackageManager } from "../types";
|
||||
import type { PackageManager } from "../types";
|
||||
|
||||
/**
|
||||
* Returns the appropriate command for running a package without installing it globally,
|
||||
@@ -9,7 +9,7 @@ import type { ProjectPackageManager } from "../types";
|
||||
* @returns The full command string (e.g., "npx prisma generate --schema=./prisma/schema.prisma").
|
||||
*/
|
||||
export function getPackageExecutionCommand(
|
||||
packageManager: ProjectPackageManager | null | undefined,
|
||||
packageManager: PackageManager | null | undefined,
|
||||
commandWithArgs: string,
|
||||
): string {
|
||||
switch (packageManager) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { ProjectPackageManager } from "../types";
|
||||
import type { PackageManager } from "../types";
|
||||
|
||||
export const getUserPkgManager: () => ProjectPackageManager = () => {
|
||||
export const getUserPkgManager: () => PackageManager = () => {
|
||||
const userAgent = process.env.npm_config_user_agent;
|
||||
|
||||
if (userAgent?.startsWith("pnpm")) {
|
||||
|
||||
Reference in New Issue
Block a user