Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-payload-app

Package Overview
Dependencies
Maintainers
0
Versions
452
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-payload-app - npm Package Compare versions

Comparing version 3.0.0-beta.107 to 3.0.0-beta.108

2

dist/lib/get-package-manager.d.ts

@@ -5,3 +5,3 @@ import type { CliArgs, PackageManager } from '../types.js';

projectDir: string;
}): PackageManager;
}): Promise<PackageManager>;
//# sourceMappingURL=get-package-manager.d.ts.map

@@ -0,3 +1,4 @@

import execa from 'execa';
import fse from 'fs-extra';
export function getPackageManager(args) {
export async function getPackageManager(args) {
const { cliArgs, projectDir } = args;

@@ -15,2 +16,5 @@ try {

detected = 'bun';
} else if (await commandExists('pnpm')) {
// Prefer pnpm if it's installed
detected = 'pnpm';
} else {

@@ -38,3 +42,11 @@ // Otherwise check the execution environment

}
async function commandExists(command) {
try {
await execa.command(`command -v ${command}`);
return true;
} catch {
return false;
}
}
//# sourceMappingURL=get-package-manager.js.map

@@ -98,3 +98,3 @@ import * as p from '@clack/prompts';

const projectDir = nextConfigPath ? path.dirname(nextConfigPath) : path.resolve(process.cwd(), slugify(projectName));
const packageManager = getPackageManager({
const packageManager = await getPackageManager({
cliArgs: this.args,

@@ -101,0 +101,0 @@ projectDir

{
"name": "create-payload-app",
"version": "3.0.0-beta.107",
"version": "3.0.0-beta.108",
"homepage": "https://payloadcms.com",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc