Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6bce80efb0 | |||
| 631b346b0a | |||
| 536588f61f |
-140
@@ -1,140 +0,0 @@
|
|||||||
# gitzone ci_default
|
|
||||||
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
|
||||||
|
|
||||||
cache:
|
|
||||||
paths:
|
|
||||||
- .npmci_cache/
|
|
||||||
key: '$CI_BUILD_STAGE'
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- security
|
|
||||||
- test
|
|
||||||
- release
|
|
||||||
- metadata
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- npm install -g @shipzone/npmci
|
|
||||||
|
|
||||||
# ====================
|
|
||||||
# security stage
|
|
||||||
# ====================
|
|
||||||
mirror:
|
|
||||||
stage: security
|
|
||||||
script:
|
|
||||||
- npmci git mirror
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
tags:
|
|
||||||
- lossless
|
|
||||||
- docker
|
|
||||||
- notpriv
|
|
||||||
|
|
||||||
auditProductionDependencies:
|
|
||||||
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
|
||||||
stage: security
|
|
||||||
script:
|
|
||||||
- npmci npm prepare
|
|
||||||
- npmci command npm install --production --ignore-scripts
|
|
||||||
- npmci command npm config set registry https://registry.npmjs.org
|
|
||||||
- npmci command npm audit --audit-level=high --only=prod --production
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
auditDevDependencies:
|
|
||||||
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
|
||||||
stage: security
|
|
||||||
script:
|
|
||||||
- npmci npm prepare
|
|
||||||
- npmci command npm install --ignore-scripts
|
|
||||||
- npmci command npm config set registry https://registry.npmjs.org
|
|
||||||
- npmci command npm audit --audit-level=high --only=dev
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
# ====================
|
|
||||||
# test stage
|
|
||||||
# ====================
|
|
||||||
|
|
||||||
testStable:
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- npmci npm prepare
|
|
||||||
- npmci node install stable
|
|
||||||
- npmci npm install
|
|
||||||
- npmci npm test
|
|
||||||
coverage: /\d+.?\d+?\%\s*coverage/
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
|
|
||||||
testBuild:
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- npmci npm prepare
|
|
||||||
- npmci node install stable
|
|
||||||
- npmci npm install
|
|
||||||
- npmci command npm run build
|
|
||||||
coverage: /\d+.?\d+?\%\s*coverage/
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
|
|
||||||
release:
|
|
||||||
stage: release
|
|
||||||
script:
|
|
||||||
- npmci node install stable
|
|
||||||
- npmci npm publish
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
tags:
|
|
||||||
- lossless
|
|
||||||
- docker
|
|
||||||
- notpriv
|
|
||||||
|
|
||||||
# ====================
|
|
||||||
# metadata stage
|
|
||||||
# ====================
|
|
||||||
codequality:
|
|
||||||
stage: metadata
|
|
||||||
allow_failure: true
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
script:
|
|
||||||
- npmci command npm install -g typescript
|
|
||||||
- npmci npm prepare
|
|
||||||
- npmci npm install
|
|
||||||
tags:
|
|
||||||
- lossless
|
|
||||||
- docker
|
|
||||||
- priv
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
stage: metadata
|
|
||||||
script:
|
|
||||||
- npmci trigger
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
tags:
|
|
||||||
- lossless
|
|
||||||
- docker
|
|
||||||
- notpriv
|
|
||||||
|
|
||||||
pages:
|
|
||||||
stage: metadata
|
|
||||||
script:
|
|
||||||
- npmci node install lts
|
|
||||||
- npmci command npm install -g @git.zone/tsdoc
|
|
||||||
- npmci npm prepare
|
|
||||||
- npmci npm install
|
|
||||||
- npmci command tsdoc
|
|
||||||
tags:
|
|
||||||
- lossless
|
|
||||||
- docker
|
|
||||||
- notpriv
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
artifacts:
|
|
||||||
expire_in: 1 week
|
|
||||||
paths:
|
|
||||||
- public
|
|
||||||
allow_failure: true
|
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"@git.zone/cli": {
|
||||||
|
"projectType": "npm",
|
||||||
|
"module": {
|
||||||
|
"githost": "code.foss.global",
|
||||||
|
"gitscope": "push.rocks",
|
||||||
|
"gitrepo": "commitinfo",
|
||||||
|
"shortDescription": "commit metadata generator",
|
||||||
|
"description": "A tool to bake commit information into code for tracking and version control.",
|
||||||
|
"npmPackagename": "@push.rocks/commitinfo",
|
||||||
|
"license": "MIT",
|
||||||
|
"projectDomain": "push.rocks",
|
||||||
|
"keywords": [
|
||||||
|
"version control",
|
||||||
|
"commit information",
|
||||||
|
"typescript",
|
||||||
|
"node.js",
|
||||||
|
"software development",
|
||||||
|
"project management",
|
||||||
|
"code maintenance",
|
||||||
|
"continuous integration",
|
||||||
|
"continuous deployment"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"release": {
|
||||||
|
"registries": [
|
||||||
|
"https://verdaccio.lossless.digital",
|
||||||
|
"https://registry.npmjs.org"
|
||||||
|
],
|
||||||
|
"accessLevel": "public"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@ship.zone/szci": {
|
||||||
|
"npmGlobalTools": [],
|
||||||
|
"npmRegistryUrl": "registry.npmjs.org"
|
||||||
|
},
|
||||||
|
"@git.zone/tsdoc": {
|
||||||
|
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
## 2026-05-01 - 1.0.13 - fix(commitinfo)
|
||||||
|
update project metadata and make commit info generation compatible with current tooling
|
||||||
|
|
||||||
|
- lazily initialize project info before computing the next version to support the updated @push.rocks/projectinfo API
|
||||||
|
- replace smartfile directory and file operations with native fs APIs
|
||||||
|
- add a node-based test that verifies writing the next patch version into generated commit info data
|
||||||
|
- refresh package exports, build/test scripts, TypeScript config, and dependency versions
|
||||||
|
|
||||||
|
## 2026-03-01 - 1.0.12 - maintenance
|
||||||
|
Repository maintenance changes.
|
||||||
|
|
||||||
|
- Removed the legacy GitLab CI configuration file.
|
||||||
|
- Version 1.0.12 release tagging contained no additional user-facing changes beyond prior fixes.
|
||||||
|
|
||||||
|
## 2024-06-23 - 1.0.11 - core
|
||||||
|
Core update release with supporting project maintenance.
|
||||||
|
|
||||||
|
- Applied a core fix/update.
|
||||||
|
- Refreshed project metadata and configuration, including description and TypeScript settings.
|
||||||
|
- Updated npm host metadata.
|
||||||
|
- Included earlier repository organization migration changes.
|
||||||
|
|
||||||
|
## 2022-04-28 - 1.0.2–1.0.10 - core
|
||||||
|
Series of patch releases containing repeated core updates.
|
||||||
|
|
||||||
|
- Versions 1.0.2 through 1.0.10 primarily shipped the same `fix(core): update` change.
|
||||||
|
- Individual version bump commits in this range contained no additional relevant details.
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2022 Lossless GmbH (hello@lossless.com)
|
Copyright (c) 2026 Task Venture Capital GmbH <hello@task.vc>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+12
-4
@@ -1,10 +1,11 @@
|
|||||||
{
|
{
|
||||||
"gitzone": {
|
"@git.zone/cli": {
|
||||||
"projectType": "npm",
|
"projectType": "npm",
|
||||||
"module": {
|
"module": {
|
||||||
"githost": "code.foss.global",
|
"githost": "code.foss.global",
|
||||||
"gitscope": "push.rocks",
|
"gitscope": "push.rocks",
|
||||||
"gitrepo": "commitinfo",
|
"gitrepo": "commitinfo",
|
||||||
|
"shortDescription": "commit metadata generator",
|
||||||
"description": "A tool to bake commit information into code for tracking and version control.",
|
"description": "A tool to bake commit information into code for tracking and version control.",
|
||||||
"npmPackagename": "@push.rocks/commitinfo",
|
"npmPackagename": "@push.rocks/commitinfo",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -20,13 +21,20 @@
|
|||||||
"continuous integration",
|
"continuous integration",
|
||||||
"continuous deployment"
|
"continuous deployment"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"release": {
|
||||||
|
"registries": [
|
||||||
|
"https://verdaccio.lossless.digital",
|
||||||
|
"https://registry.npmjs.org"
|
||||||
|
],
|
||||||
|
"accessLevel": "public"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"npmci": {
|
"@ship.zone/szci": {
|
||||||
"npmGlobalTools": [],
|
"npmGlobalTools": [],
|
||||||
"npmAccessLevel": "public"
|
"npmRegistryUrl": "registry.npmjs.org"
|
||||||
},
|
},
|
||||||
"tsdoc": {
|
"@git.zone/tsdoc": {
|
||||||
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+15
-13
@@ -1,24 +1,25 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/commitinfo",
|
"name": "@push.rocks/commitinfo",
|
||||||
"version": "1.0.12",
|
"version": "1.0.13",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "A tool to bake commit information into code for tracking and version control.",
|
"description": "A tool to bake commit information into code for tracking and version control.",
|
||||||
|
"exports": {
|
||||||
|
".": "./dist_ts/index.js"
|
||||||
|
},
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"author": "Lossless GmbH",
|
"author": "Task Venture Capital GmbH <hello@task.vc>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(tstest test/ --web)",
|
"test": "tstest test/",
|
||||||
"build": "(tsbuild --web --allowimplicitany)"
|
"build": "tsbuild --web"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@git.zone/tsbuild": "^2.1.66",
|
"@git.zone/tsbuild": "^4.4.0",
|
||||||
"@git.zone/tsbundle": "^2.0.8",
|
"@git.zone/tsrun": "^2.0.3",
|
||||||
"@git.zone/tsrun": "^1.2.46",
|
"@git.zone/tstest": "^3.6.3",
|
||||||
"@git.zone/tstest": "^1.0.77",
|
"@types/node": "^25.6.0"
|
||||||
"@push.rocks/tapbundle": "^5.0.8",
|
|
||||||
"@types/node": "^20.14.8"
|
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 1 chrome versions"
|
"last 1 chrome versions"
|
||||||
@@ -32,13 +33,14 @@
|
|||||||
"dist_ts_web/**/*",
|
"dist_ts_web/**/*",
|
||||||
"assets/**/*",
|
"assets/**/*",
|
||||||
"cli.js",
|
"cli.js",
|
||||||
|
".smartconfig.json",
|
||||||
|
"license",
|
||||||
"npmextra.json",
|
"npmextra.json",
|
||||||
"readme.md"
|
"readme.md"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@push.rocks/projectinfo": "^5.0.1",
|
"@push.rocks/projectinfo": "^5.1.0",
|
||||||
"@push.rocks/smartfile": "^10.0.26",
|
"@push.rocks/smartversion": "^3.1.0"
|
||||||
"@push.rocks/smartversion": "^3.0.2"
|
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"version control",
|
"version control",
|
||||||
|
|||||||
Generated
+4817
-3667
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,32 @@
|
|||||||
|
import * as fs from 'fs';
|
||||||
|
import * as path from 'path';
|
||||||
|
|
||||||
|
import { tap } from '@git.zone/tstest/tapbundle';
|
||||||
|
import * as commitinfo from '../ts/index.js';
|
||||||
|
|
||||||
|
tap.test('first test', async () => {
|
||||||
|
const testDir = path.join(process.cwd(), '.nogit', 'commitinfo-test');
|
||||||
|
fs.rmSync(testDir, { recursive: true, force: true });
|
||||||
|
fs.mkdirSync(path.join(testDir, 'ts'), { recursive: true });
|
||||||
|
fs.writeFileSync(
|
||||||
|
path.join(testDir, 'package.json'),
|
||||||
|
JSON.stringify(
|
||||||
|
{
|
||||||
|
name: '@push.rocks/commitinfo-test',
|
||||||
|
version: '1.0.0',
|
||||||
|
description: 'test package',
|
||||||
|
},
|
||||||
|
null,
|
||||||
|
2
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
const testCommitinfo = new commitinfo.CommitInfo(testDir, 'patch');
|
||||||
|
await testCommitinfo.writeIntoPotentialDirs();
|
||||||
|
const commitInfoFile = fs.readFileSync(path.join(testDir, 'ts', '00_commitinfo_data.ts'), 'utf8');
|
||||||
|
if (!commitInfoFile.includes("version: '1.0.1'")) {
|
||||||
|
throw new Error('Expected commitinfo to write the next patch version.');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export default tap.start();
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
|
|
||||||
import * as commitinfo from '../ts/index.js';
|
|
||||||
|
|
||||||
tap.test('first test', async () => {
|
|
||||||
const testCommitinfo = new commitinfo.CommitInfo(process.cwd(), 'patch');
|
|
||||||
await testCommitinfo.writeIntoPotentialDirs();
|
|
||||||
});
|
|
||||||
|
|
||||||
tap.start();
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* autocreated commitinfo by @pushrocks/commitinfo
|
* autocreated commitinfo by @push.rocks/commitinfo
|
||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/commitinfo',
|
name: '@push.rocks/commitinfo',
|
||||||
version: '1.0.12',
|
version: '1.0.13',
|
||||||
description: 'A tool to bake commit information into code for tracking and version control.'
|
description: 'A tool to bake commit information into code for tracking and version control.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,36 +4,49 @@ export class CommitInfo {
|
|||||||
// Instance
|
// Instance
|
||||||
public projectDir: string;
|
public projectDir: string;
|
||||||
public plannedCommitVersionTypeArg: 'patch' | 'minor' | 'major';
|
public plannedCommitVersionTypeArg: 'patch' | 'minor' | 'major';
|
||||||
public projectinfoNpmRef: plugins.projectinfo.ProjectinfoNpm;
|
public projectinfoNpmRef: plugins.projectinfo.ProjectinfoNpm | undefined;
|
||||||
public smartVersionRef: plugins.smartversion.SmartVersion;
|
public smartVersionRef: plugins.smartversion.SmartVersion | undefined;
|
||||||
|
private projectinfoNpmPromise: Promise<plugins.projectinfo.ProjectinfoNpm>;
|
||||||
|
|
||||||
constructor(projectDirArg: string, plannedCommitVersionTypeArg: 'patch' | 'minor' | 'major') {
|
constructor(projectDirArg: string, plannedCommitVersionTypeArg: 'patch' | 'minor' | 'major') {
|
||||||
this.projectDir = projectDirArg;
|
this.projectDir = projectDirArg;
|
||||||
this.plannedCommitVersionTypeArg = plannedCommitVersionTypeArg;
|
this.plannedCommitVersionTypeArg = plannedCommitVersionTypeArg;
|
||||||
this.projectinfoNpmRef = new plugins.projectinfo.ProjectinfoNpm(projectDirArg);
|
this.projectinfoNpmPromise = plugins.projectinfo.ProjectinfoNpm.create(projectDirArg);
|
||||||
this.smartVersionRef = new plugins.smartversion.SmartVersion(this.projectinfoNpmRef.version);
|
}
|
||||||
|
|
||||||
|
private async getProjectinfoNpmRef(): Promise<plugins.projectinfo.ProjectinfoNpm> {
|
||||||
|
if (!this.projectinfoNpmRef) {
|
||||||
|
this.projectinfoNpmRef = await this.projectinfoNpmPromise;
|
||||||
|
}
|
||||||
|
return this.projectinfoNpmRef;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getNextPlannedVersion() {
|
public async getNextPlannedVersion() {
|
||||||
|
const projectinfoNpmRef = await this.getProjectinfoNpmRef();
|
||||||
|
this.smartVersionRef = new plugins.smartversion.SmartVersion(projectinfoNpmRef.version);
|
||||||
return this.smartVersionRef.getNewVersion(this.plannedCommitVersionTypeArg);
|
return this.smartVersionRef.getNewVersion(this.plannedCommitVersionTypeArg);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async writeIntoPotentialDirs(potentialDirs: string[] = ['ts', 'ts_web']) {
|
public async writeIntoPotentialDirs(potentialDirs: string[] = ['ts', 'ts_web']) {
|
||||||
|
const projectinfoNpmRef = await this.getProjectinfoNpmRef();
|
||||||
const expectedDefinitiveVersion = await this.getNextPlannedVersion();
|
const expectedDefinitiveVersion = await this.getNextPlannedVersion();
|
||||||
for (const dir of potentialDirs) {
|
for (const dir of potentialDirs) {
|
||||||
const dirExists = plugins.smartfile.fs.isDirectory(plugins.path.join(this.projectDir, dir));
|
const dirPath = plugins.path.join(this.projectDir, dir);
|
||||||
|
const dirExists = plugins.fs.existsSync(dirPath) && plugins.fs.statSync(dirPath).isDirectory();
|
||||||
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.fs.promises.writeFile(
|
||||||
|
writePath,
|
||||||
`/**
|
`/**
|
||||||
* autocreated commitinfo by @push.rocks/commitinfo
|
* autocreated commitinfo by @push.rocks/commitinfo
|
||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '${this.projectinfoNpmRef.name}',
|
name: '${projectinfoNpmRef.name}',
|
||||||
version: '${expectedDefinitiveVersion.versionString}',
|
version: '${expectedDefinitiveVersion.versionString}',
|
||||||
description: '${this.projectinfoNpmRef.packageJson.description}'
|
description: '${projectinfoNpmRef.packageJson.description}'
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
writePath
|
'utf8'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
// node native
|
// node native
|
||||||
|
import * as fs from 'fs';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
fs,
|
||||||
path
|
path
|
||||||
}
|
}
|
||||||
|
|
||||||
// pushrocks scope
|
// pushrocks scope
|
||||||
import * as projectinfo from '@push.rocks/projectinfo';
|
import * as projectinfo from '@push.rocks/projectinfo';
|
||||||
import * as smartfile from '@push.rocks/smartfile';
|
|
||||||
import * as smartversion from '@push.rocks/smartversion';
|
import * as smartversion from '@push.rocks/smartversion';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
projectinfo,
|
projectinfo,
|
||||||
smartfile,
|
|
||||||
smartversion
|
smartversion
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -5,8 +5,10 @@
|
|||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"module": "NodeNext",
|
"module": "NodeNext",
|
||||||
"moduleResolution": "NodeNext",
|
"moduleResolution": "NodeNext",
|
||||||
|
"noImplicitAny": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"verbatimModuleSyntax": true
|
"verbatimModuleSyntax": true,
|
||||||
|
"types": ["node"]
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"dist_*/**/*.d.ts"
|
"dist_*/**/*.d.ts"
|
||||||
|
|||||||
Reference in New Issue
Block a user