import * as path from "path" ; import readPackageJson from "read-package-json-fast" ; import type { RemixConfig } from "../config" ; type PackageDependencies = { [ packageName ] : string ; } ; export async function getPackageDependencies ( packageJsonFile ) { return ( await readPackageJson ( packageJsonFile ) ) . dependencies ; } export function getAppDependencies ( config ) { return getPackageDependencies ( path . resolve ( config . rootDirectory , "package.json" ) ) ; }