fix(core): update
This commit is contained in:
parent
7f5d0ad68a
commit
659ff9d6a0
@ -123,7 +123,7 @@ pages:
|
||||
stage: metadata
|
||||
script:
|
||||
- npmci node install lts
|
||||
- npmci command npm install -g @gitzone/tsdoc
|
||||
- npmci command npm install -g @git.zone/tsdoc
|
||||
- npmci npm prepare
|
||||
- npmci npm install
|
||||
- npmci command tsdoc
|
||||
|
952
package-lock.json
generated
952
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
@ -13,11 +13,12 @@
|
||||
"build": "(tsbuild --web --allowimplicitany)"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.1.25",
|
||||
"@gitzone/tsbundle": "^1.0.78",
|
||||
"@gitzone/tstest": "^1.0.44",
|
||||
"@pushrocks/tapbundle": "^5.0.3",
|
||||
"@types/node": "^17.0.29"
|
||||
"@git.zone/tsbuild": "^2.1.66",
|
||||
"@git.zone/tsbundle": "^2.0.8",
|
||||
"@git.zone/tsrun": "^1.2.46",
|
||||
"@git.zone/tstest": "^1.0.77",
|
||||
"@push.rocks/tapbundle": "^5.0.8",
|
||||
"@types/node": "^20.14.8"
|
||||
},
|
||||
"browserslist": [
|
||||
"last 1 chrome versions"
|
||||
@ -35,9 +36,9 @@
|
||||
"readme.md"
|
||||
],
|
||||
"dependencies": {
|
||||
"@pushrocks/projectinfo": "^5.0.1",
|
||||
"@pushrocks/smartfile": "^9.0.6",
|
||||
"@pushrocks/smartversion": "^3.0.2"
|
||||
"@push.rocks/projectinfo": "^5.0.1",
|
||||
"@push.rocks/smartfile": "^10.0.26",
|
||||
"@push.rocks/smartversion": "^3.0.2"
|
||||
},
|
||||
"keywords": [
|
||||
"version control",
|
||||
|
11350
pnpm-lock.yaml
generated
11350
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -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';
|
||||
|
||||
tap.test('first test', async () => {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user