fix(core): update
This commit is contained in:
@ -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.'
|
||||
}
|
||||
|
@ -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}',
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user