fix(core): Fix incorrect logging and directory preparation

This commit is contained in:
2024-10-28 01:30:39 +01:00
parent d47ac4793d
commit f74a6bf2ad
4 changed files with 10 additions and 4 deletions

View File

@@ -142,9 +142,9 @@ export class PublishModule {
this.options.monoRepoDir,
`dist_publish_${this.options.packageSubFolder}`
);
await plugins.smartfile.fs.ensureEmptyDir(this.options.publishModDirFullPath);
// package.json
await plugins.smartfile.fs.ensureEmptyDir(this.options.publishModDirFullPath);
const packageJson = await plugins.smartfile.SmartFile.fromString(
plugins.path.join(this.options.publishModDirFullPath, 'package.json'),
await this.createPackageJson(),