fix(publishmodule): Fix incorrect CLI script path during publish module creation
This commit is contained in:
parent
66145c904e
commit
eb21dcc4a4
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-01-02 - 1.9.1 - fix(publishmodule)
|
||||||
|
Fix incorrect CLI script path during publish module creation
|
||||||
|
|
||||||
|
- Updated the `createBinCliSetup` method to correctly adjust the CLI script path.
|
||||||
|
- Replaced path in base64-decoded CLI file content from './dist_ts/index.js' to './dist_<packageSubFolder>/index.js'.
|
||||||
|
|
||||||
## 2025-01-02 - 1.9.0 - feat(core)
|
## 2025-01-02 - 1.9.0 - feat(core)
|
||||||
Refactor gitea asset handling and module initialization
|
Refactor gitea asset handling and module initialization
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tspublish',
|
name: '@git.zone/tspublish',
|
||||||
version: '1.9.0',
|
version: '1.9.1',
|
||||||
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.'
|
||||||
}
|
}
|
||||||
|
@ -223,7 +223,9 @@ export class PublishModule {
|
|||||||
'cli',
|
'cli',
|
||||||
'assets/templates/cli/cli.js'
|
'assets/templates/cli/cli.js'
|
||||||
);
|
);
|
||||||
await plugins.smartfile.memory.toFs(atob(files[0].base64Content), plugins.path.join(this.options.publishModDirFullPath, 'cli.js'));
|
const indexPath = `./dist_${this.options.packageSubFolder}/index.js`;
|
||||||
|
const fileContent = atob(files[0].base64Content).replace('./dist_ts/index.js', indexPath);
|
||||||
|
await plugins.smartfile.memory.toFs(fileContent, plugins.path.join(this.options.publishModDirFullPath, 'cli.js'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public async publish() {
|
public async publish() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user