12 Commits

Author SHA1 Message Date
7d808972c9 1.0.9 2022-04-28 16:19:22 +02:00
e7d7ec806e fix(core): update 2022-04-28 16:19:22 +02:00
2ecc541989 1.0.8 2022-04-28 11:24:27 +02:00
22dddb0e11 fix(core): update 2022-04-28 11:24:27 +02:00
38c233bf06 1.0.7 2022-04-27 14:15:12 +02:00
81f943f52a fix(core): update 2022-04-27 14:15:12 +02:00
8c58df37d9 1.0.6 2022-04-26 17:03:15 +02:00
f0a4c0f7dc fix(core): update 2022-04-26 17:03:15 +02:00
31cfaa69b9 1.0.5 2022-04-26 17:02:17 +02:00
0d539c34e8 fix(core): update 2022-04-26 17:02:16 +02:00
069265c122 1.0.4 2022-04-26 16:59:15 +02:00
7d2891fc8c fix(core): update 2022-04-26 16:59:15 +02:00
4 changed files with 23 additions and 9 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@pushrocks/commitinfo",
"version": "1.0.3",
"version": "1.0.9",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@pushrocks/commitinfo",
"version": "1.0.3",
"version": "1.0.9",
"license": "MIT",
"dependencies": {
"@pushrocks/projectinfo": "^5.0.1",

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/commitinfo",
"version": "1.0.3",
"version": "1.0.9",
"private": false,
"description": "bake commitinfos into code",
"main": "dist_ts/index.js",

View File

@ -1,3 +1,11 @@
export const version = '1.0.3';
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const name: string = '@pushrocks/commitinfo';
export const version: string = '1.0.9';
export const description: string = 'bake commitinfos into code'
export const commitinfo = {
name: '@pushrocks/commitinfo',
version: '1.0.9',
description: 'bake commitinfos into code'
}

View File

@ -22,9 +22,15 @@ export class CommitInfo {
if (dirExists) {
const writePath = plugins.path.join(this.projectDir, dir, '00_commitinfo_data.ts');
await plugins.smartfile.memory.toFs(
`
export const version = '${expectedDefinitiveVersion.versionString}';
`,
`/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '${this.projectinfoNpmRef.name}',
version: '${expectedDefinitiveVersion.versionString}',
description: '${this.projectinfoNpmRef.packageJson.description}'
}
`,
writePath
);
}