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

create-payload-app

Package Overview
Dependencies
Maintainers
2
Versions
436
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 0.4.1 to 0.4.2

15

dist/lib/create-project.js

@@ -128,3 +128,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function () {
var cliArgs, projectName, projectDir, template, packageManager, emitter, spinner, result;
var cliArgs, projectName, projectDir, template, packageManager, emitter, spinner, lockPath, result;
return __generator(this, function (_a) {

@@ -146,8 +146,17 @@ switch (_a.label) {

spinner = (0, ora_1.default)('Checking latest Payload version...').start();
return [4 /*yield*/, updatePackageJSONName({ projectName: projectName, projectDir: projectDir })];
return [4 /*yield*/, updatePackageJSONName({ projectName: projectName, projectDir: projectDir })
// Remove yarn.lock file. This is only desired in Payload Cloud.
];
case 4:
_a.sent();
lockPath = path_1.default.resolve(projectDir, 'yarn.lock');
if (!fs_extra_1.default.existsSync(lockPath)) return [3 /*break*/, 6];
return [4 /*yield*/, fs_extra_1.default.remove(lockPath)];
case 5:
_a.sent();
_a.label = 6;
case 6:
spinner.text = 'Installing dependencies...';
return [4 /*yield*/, installDeps({ cliArgs: cliArgs, projectDir: projectDir, packageManager: packageManager })];
case 5:
case 7:
result = _a.sent();

@@ -154,0 +163,0 @@ spinner.stop();

2

package.json

@@ -40,3 +40,3 @@ {

},
"version": "0.4.1",
"version": "0.4.2",
"devDependencies": {

@@ -43,0 +43,0 @@ "@types/command-exists": "^1.2.0",

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