fix(core): update

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

View File

@ -123,7 +123,7 @@ pages:
stage: metadata stage: metadata
script: script:
- npmci node install lts - npmci node install lts
- npmci command npm install -g @gitzone/tsdoc - npmci command npm install -g @git.zone/tsdoc
- npmci npm prepare - npmci npm prepare
- npmci npm install - npmci npm install
- npmci command tsdoc - npmci command tsdoc

952
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -13,11 +13,12 @@
"build": "(tsbuild --web --allowimplicitany)" "build": "(tsbuild --web --allowimplicitany)"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.25", "@git.zone/tsbuild": "^2.1.66",
"@gitzone/tsbundle": "^1.0.78", "@git.zone/tsbundle": "^2.0.8",
"@gitzone/tstest": "^1.0.44", "@git.zone/tsrun": "^1.2.46",
"@pushrocks/tapbundle": "^5.0.3", "@git.zone/tstest": "^1.0.77",
"@types/node": "^17.0.29" "@push.rocks/tapbundle": "^5.0.8",
"@types/node": "^20.14.8"
}, },
"browserslist": [ "browserslist": [
"last 1 chrome versions" "last 1 chrome versions"
@ -35,9 +36,9 @@
"readme.md" "readme.md"
], ],
"dependencies": { "dependencies": {
"@pushrocks/projectinfo": "^5.0.1", "@push.rocks/projectinfo": "^5.0.1",
"@pushrocks/smartfile": "^9.0.6", "@push.rocks/smartfile": "^10.0.26",
"@pushrocks/smartversion": "^3.0.2" "@push.rocks/smartversion": "^3.0.2"
}, },
"keywords": [ "keywords": [
"version control", "version control",

11346
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
import { expect, expectAsync, tap } from '@pushrocks/tapbundle'; import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
import * as commitinfo from '../ts/index.js'; import * as commitinfo from '../ts/index.js';
tap.test('first test', async () => { tap.test('first test', async () => {

View File

@ -1,11 +1,8 @@
/** /**
* autocreated commitinfo by @pushrocks/commitinfo * 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 = { export const commitinfo = {
name: '@pushrocks/commitinfo', name: '@push.rocks/commitinfo',
version: '1.0.11', version: '1.0.12',
description: 'bake commitinfos into code' 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); 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']) { public async writeIntoPotentialDirs(potentialDirs: string[] = ['ts', 'ts_web']) {
const expectedDefinitiveVersion = this.smartVersionRef.getNewVersion( const expectedDefinitiveVersion = await this.getNextPlannedVersion();
this.plannedCommitVersionTypeArg
);
for (const dir of potentialDirs) { for (const dir of potentialDirs) {
const dirExists = plugins.smartfile.fs.isDirectory(plugins.path.join(this.projectDir, dir)); const dirExists = plugins.smartfile.fs.isDirectory(plugins.path.join(this.projectDir, dir));
if (dirExists) { if (dirExists) {
const writePath = plugins.path.join(this.projectDir, dir, '00_commitinfo_data.ts'); const writePath = plugins.path.join(this.projectDir, dir, '00_commitinfo_data.ts');
await plugins.smartfile.memory.toFs( await plugins.smartfile.memory.toFs(
`/** `/**
* autocreated commitinfo by @pushrocks/commitinfo * autocreated commitinfo by @push.rocks/commitinfo
*/ */
export const commitinfo = { export const commitinfo = {
name: '${this.projectinfoNpmRef.name}', name: '${this.projectinfoNpmRef.name}',

View File

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