fix(publishmodule): Fix incorrect CLI script path during publish module creation
This commit is contained in:
		| @@ -1,5 +1,11 @@ | ||||
| # 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) | ||||
| Refactor gitea asset handling and module initialization | ||||
|  | ||||
|   | ||||
| @@ -3,6 +3,6 @@ | ||||
|  */ | ||||
| export const commitinfo = { | ||||
|   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.' | ||||
| } | ||||
|   | ||||
| @@ -223,7 +223,9 @@ export class PublishModule { | ||||
|       'cli', | ||||
|       '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() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user