create-payload-app
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -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(); |
@@ -40,3 +40,3 @@ { | ||
}, | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"devDependencies": { | ||
@@ -43,0 +43,0 @@ "@types/command-exists": "^1.2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65824
1155