2 Commits

Author SHA1 Message Date
910cb4c8bf 1.7.5
Some checks failed
Default (tags) / security (push) Failing after 0s
Default (tags) / test (push) Failing after 0s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2024-11-05 00:51:08 +01:00
9bddf09aa7 fix(core): Fix issue with tspublish.json name validation in TsPublish class 2024-11-05 00:51:07 +01:00
4 changed files with 9 additions and 6 deletions

View File

@ -1,5 +1,11 @@
# Changelog
## 2024-11-05 - 1.7.5 - fix(core)
Fix issue with tspublish.json name validation in TsPublish class
- Resolved incorrect JSON parsing and validation for 'name' property in tspublish.json in the TsPublish.publish method.
- Removed redundant JSON parse from plugin.smartfile.fs.toStringSync in publish method.
## 2024-11-05 - 1.7.4 - fix(classes.tspublish)
Refactor getModuleSubDirs method to streamline name validation for publish modules

View File

@ -1,6 +1,6 @@
{
"name": "@git.zone/tspublish",
"version": "1.7.4",
"version": "1.7.5",
"private": false,
"description": "A tool to publish multiple, concise, and small packages from monorepos, specifically for TypeScript projects within a git environment.",
"main": "dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@git.zone/tspublish',
version: '1.7.4',
version: '1.7.5',
description: 'A tool to publish multiple, concise, and small packages from monorepos, specifically for TypeScript projects within a git environment.'
}

View File

@ -18,10 +18,7 @@ export class TsPublish {
}
for (const publishModule of Object.keys(publishModules)) {
// lets check wether there is a name
const tspublishJson = JSON.parse(
plugins.smartfile.fs.toStringSync(plugins.path.join(publishModule, 'tspublish.json')),
);
if (!tspublishJson.name) {
if (!publishModules[publishModule].name) {
logger.log('warn', `no name found in tspublish.json for ${publishModule}. Skipping...`);
continue;
}