fix(core): update
This commit is contained in:
@@ -13,17 +13,19 @@ export class CommitInfo {
|
||||
this.smartVersionRef = new plugins.smartversion.SmartVersion(this.projectinfoNpmRef.version);
|
||||
}
|
||||
|
||||
public async getNextPlannedVersion() {
|
||||
return this.smartVersionRef.getNewVersion(this.plannedCommitVersionTypeArg);
|
||||
}
|
||||
|
||||
public async writeIntoPotentialDirs(potentialDirs: string[] = ['ts', 'ts_web']) {
|
||||
const expectedDefinitiveVersion = this.smartVersionRef.getNewVersion(
|
||||
this.plannedCommitVersionTypeArg
|
||||
);
|
||||
const expectedDefinitiveVersion = await this.getNextPlannedVersion();
|
||||
for (const dir of potentialDirs) {
|
||||
const dirExists = plugins.smartfile.fs.isDirectory(plugins.path.join(this.projectDir, dir));
|
||||
if (dirExists) {
|
||||
const writePath = plugins.path.join(this.projectDir, dir, '00_commitinfo_data.ts');
|
||||
await plugins.smartfile.memory.toFs(
|
||||
`/**
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
* autocreated commitinfo by @push.rocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '${this.projectinfoNpmRef.name}',
|
||||
|
||||
Reference in New Issue
Block a user