Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
2ecc541989 | |||
22dddb0e11 | |||
38c233bf06 | |||
81f943f52a | |||
8c58df37d9 | |||
f0a4c0f7dc | |||
31cfaa69b9 | |||
0d539c34e8 | |||
069265c122 | |||
7d2891fc8c |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/commitinfo",
|
"name": "@pushrocks/commitinfo",
|
||||||
"version": "1.0.3",
|
"version": "1.0.8",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@pushrocks/commitinfo",
|
"name": "@pushrocks/commitinfo",
|
||||||
"version": "1.0.3",
|
"version": "1.0.8",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/projectinfo": "^5.0.1",
|
"@pushrocks/projectinfo": "^5.0.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/commitinfo",
|
"name": "@pushrocks/commitinfo",
|
||||||
"version": "1.0.3",
|
"version": "1.0.8",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "bake commitinfos into code",
|
"description": "bake commitinfos into code",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/**
|
||||||
export const version = '1.0.3';
|
* autocreated commitinfo by @pushrocks/commitinfo
|
||||||
|
*/
|
||||||
|
export const version: string = '1.0.8';
|
||||||
|
export default version;
|
||||||
|
@ -22,8 +22,17 @@ export class CommitInfo {
|
|||||||
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(
|
||||||
`
|
`/**
|
||||||
export const version = '${expectedDefinitiveVersion.versionString}';
|
* autocreated commitinfo by @pushrocks/commitinfo
|
||||||
|
*/
|
||||||
|
export const name: string = '${this.projectinfoNpmRef.name}';
|
||||||
|
export const version: string = '${expectedDefinitiveVersion.versionString}';
|
||||||
|
export const description: string = '${this.projectinfoNpmRef.packageJson.description}'
|
||||||
|
export const commitinfo = {
|
||||||
|
name: '${this.projectinfoNpmRef.name}',
|
||||||
|
version: '${expectedDefinitiveVersion.versionString}',
|
||||||
|
description: '${this.projectinfoNpmRef.packageJson.description}'
|
||||||
|
}
|
||||||
`,
|
`,
|
||||||
writePath
|
writePath
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user