fix(core): update

This commit is contained in:
2024-06-23 12:57:23 +02:00
parent 7f5d0ad68a
commit 659ff9d6a0
8 changed files with 6186 additions and 6162 deletions

View File

@ -1,11 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const name: string = '@pushrocks/commitinfo';
export const version: string = '1.0.11';
export const description: string = 'bake commitinfos into code'
export const commitinfo = {
name: '@pushrocks/commitinfo',
version: '1.0.11',
description: 'bake commitinfos into code'
name: '@push.rocks/commitinfo',
version: '1.0.12',
description: 'A tool to bake commit information into code for tracking and version control.'
}

View File

@ -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}',

View File

@ -6,9 +6,9 @@ export {
}
// pushrocks scope
import * as projectinfo from '@pushrocks/projectinfo';
import * as smartfile from '@pushrocks/smartfile';
import * as smartversion from '@pushrocks/smartversion';
import * as projectinfo from '@push.rocks/projectinfo';
import * as smartfile from '@push.rocks/smartfile';
import * as smartversion from '@push.rocks/smartversion';
export {
projectinfo,