Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
9fdbf7f154 | |||
50456fc004 | |||
1cb97cbf95 | |||
f8ceff48b2 | |||
910cb4c8bf | |||
9bddf09aa7 |
17
changelog.md
17
changelog.md
@ -1,5 +1,22 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2024-11-05 - 1.7.7 - fix(core)
|
||||||
|
Fix dependency resolution in package initialization
|
||||||
|
|
||||||
|
- Corrected the resolution of dependencies from tspublish.json against monorepo's package.json.
|
||||||
|
- Ensures unlisted dependencies in monorepo's package.json default to its version.
|
||||||
|
|
||||||
|
## 2024-11-05 - 1.7.6 - fix(tspublish)
|
||||||
|
Fix the logging of the number of found publish modules
|
||||||
|
|
||||||
|
- Corrected the way the number of publish modules is logged by using Object.keys(publishModules).length instead of publishModules.length.
|
||||||
|
|
||||||
|
## 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)
|
## 2024-11-05 - 1.7.4 - fix(classes.tspublish)
|
||||||
Refactor getModuleSubDirs method to streamline name validation for publish modules
|
Refactor getModuleSubDirs method to streamline name validation for publish modules
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@git.zone/tspublish",
|
"name": "@git.zone/tspublish",
|
||||||
"version": "1.7.4",
|
"version": "1.7.7",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "A tool to publish multiple, concise, and small packages from monorepos, specifically for TypeScript projects within a git environment.",
|
"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",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tspublish',
|
name: '@git.zone/tspublish',
|
||||||
version: '1.7.4',
|
version: '1.7.7',
|
||||||
description: 'A tool to publish multiple, concise, and small packages from monorepos, specifically for TypeScript projects within a git environment.'
|
description: 'A tool to publish multiple, concise, and small packages from monorepos, specifically for TypeScript projects within a git environment.'
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,11 @@ export class PublishModule {
|
|||||||
...(() => {
|
...(() => {
|
||||||
const resultDependencies = {};
|
const resultDependencies = {};
|
||||||
for (const dependency of this.options.tsPublishJson.dependencies) {
|
for (const dependency of this.options.tsPublishJson.dependencies) {
|
||||||
resultDependencies[dependency] = monoRepoPackageJson.dependencies[dependency];
|
if (monoRepoPackageJson.dependencies[dependency]) {
|
||||||
|
resultDependencies[dependency] = monoRepoPackageJson.dependencies[dependency];
|
||||||
|
} else {
|
||||||
|
resultDependencies[dependency] = monoRepoPackageJson.version;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return resultDependencies;
|
return resultDependencies;
|
||||||
})(),
|
})(),
|
||||||
|
@ -18,10 +18,7 @@ export class TsPublish {
|
|||||||
}
|
}
|
||||||
for (const publishModule of Object.keys(publishModules)) {
|
for (const publishModule of Object.keys(publishModules)) {
|
||||||
// lets check wether there is a name
|
// lets check wether there is a name
|
||||||
const tspublishJson = JSON.parse(
|
if (!publishModules[publishModule].name) {
|
||||||
plugins.smartfile.fs.toStringSync(plugins.path.join(publishModule, 'tspublish.json')),
|
|
||||||
);
|
|
||||||
if (!tspublishJson.name) {
|
|
||||||
logger.log('warn', `no name found in tspublish.json for ${publishModule}. Skipping...`);
|
logger.log('warn', `no name found in tspublish.json for ${publishModule}. Skipping...`);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -54,7 +51,7 @@ export class TsPublish {
|
|||||||
plugins.smartfile.fs.toStringSync(plugins.path.join(subDir, 'tspublish.json')),
|
plugins.smartfile.fs.toStringSync(plugins.path.join(subDir, 'tspublish.json')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
logger.log('ok', `found ${publishModules.length} publish modules`);
|
logger.log('ok', `found ${Object.keys(publishModules).length} publish modules`);
|
||||||
logger.log('info', `Ordering publish modules...`);
|
logger.log('info', `Ordering publish modules...`);
|
||||||
|
|
||||||
return publishModules;
|
return publishModules;
|
||||||
|
Reference in New Issue
Block a user