Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
386504b0fb | |||
a7c631bba1 | |||
5922249742 | |||
274b730492 | |||
5bdc3e8bcc | |||
5389034108 |
15
changelog.md
15
changelog.md
@ -1,5 +1,20 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2024-10-23 - 1.3.3 - fix(core)
|
||||||
|
Fix logging mechanism on existing package version check
|
||||||
|
|
||||||
|
- Changed the error handling mechanism when a package with the same version already exists to use logger and process exit instead of throwing an error.
|
||||||
|
|
||||||
|
## 2024-10-23 - 1.3.2 - fix(core)
|
||||||
|
Corrected file patterns in dynamically created package.json files.
|
||||||
|
|
||||||
|
- Fixed incorrect file pattern from 'ts_web/**/*' to 'ts_*/**/*' in package.json creation process to include all subdirectories starting with 'ts'.
|
||||||
|
|
||||||
|
## 2024-10-23 - 1.3.1 - fix(classes.publishmodule)
|
||||||
|
Fix template string in createPackageJson method for export path
|
||||||
|
|
||||||
|
- Corrected the syntax for template string in the exports path of created package.json
|
||||||
|
|
||||||
## 2024-10-21 - 1.3.0 - feat(core)
|
## 2024-10-21 - 1.3.0 - feat(core)
|
||||||
Add support for multiple registries in the publish process
|
Add support for multiple registries in the publish process
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@git.zone/tspublish",
|
"name": "@git.zone/tspublish",
|
||||||
"version": "1.3.0",
|
"version": "1.3.3",
|
||||||
"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.3.0',
|
version: '1.3.3',
|
||||||
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.'
|
||||||
}
|
}
|
||||||
|
@ -61,9 +61,8 @@ export class PublishModule {
|
|||||||
const availableVersions = packageInfo.allVersions.map((versionArg) => versionArg.version);
|
const availableVersions = packageInfo.allVersions.map((versionArg) => versionArg.version);
|
||||||
logger.log('info', `available versions are: ${availableVersions.toString()}`);
|
logger.log('info', `available versions are: ${availableVersions.toString()}`);
|
||||||
if (availableVersions.includes(this.options.version)) {
|
if (availableVersions.includes(this.options.version)) {
|
||||||
throw new Error(
|
logger.log('error', `package ${this.options.name} already exists with version ${this.options.version}`);
|
||||||
`package ${this.options.name} already exists with version ${this.options.version}`
|
process.exit(1);
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -85,7 +84,7 @@ export class PublishModule {
|
|||||||
description: '',
|
description: '',
|
||||||
exports: {
|
exports: {
|
||||||
'.': {
|
'.': {
|
||||||
import: './dist_${this.options.packageSubFolder}/index.js',
|
import: `./dist_${this.options.packageSubFolder}/index.js`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
scripts: {
|
scripts: {
|
||||||
@ -97,7 +96,7 @@ export class PublishModule {
|
|||||||
},
|
},
|
||||||
files: [
|
files: [
|
||||||
'ts/**/*',
|
'ts/**/*',
|
||||||
'ts_web/**/*',
|
'ts_*/**/*',
|
||||||
'dist/**/*',
|
'dist/**/*',
|
||||||
'dist_*/**/*',
|
'dist_*/**/*',
|
||||||
'dist_ts/**/*',
|
'dist_ts/**/*',
|
||||||
|
Reference in New Issue
Block a user