@git.zone/tspublish 1.9.1 → 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/readme.md CHANGED
@@ -1,193 +1,375 @@
1
- # @git.zone/tspublish
1
+ # @git.zone/tspublish 🚀
2
2
 
3
- publish multiple, concise and small packages from monorepos
3
+ > **Effortlessly publish multiple TypeScript packages from your monorepo**
4
4
 
5
- ## Install
5
+ [![npm version](https://img.shields.io/npm/v/@git.zone/tspublish.svg)](https://www.npmjs.com/package/@git.zone/tspublish)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
7
 
7
- To install `@git.zone/tspublish`, you can use npm. To use the latest stable version, run:
8
+ ## 🌟 What is tspublish?
8
9
 
9
- ```bash
10
- npm install @git.zone/tspublish
11
- ```
10
+ `@git.zone/tspublish` is your Swiss Army knife for managing and publishing multiple TypeScript packages from a monorepo. It automates the tedious parts of package publishing while giving you full control over the process. Whether you're maintaining a suite of microservices, a component library, or any collection of related packages, tspublish makes your life easier.
11
+
12
+ ### ✨ Key Features
13
+
14
+ - 📦 **Automatic Package Discovery** - Scans your monorepo for publishable packages
15
+ - 🎨 **Beautiful CLI Output** - Color-coded logging with progress indicators
16
+ - 🔍 **Version Collision Detection** - Prevents accidental overwrites
17
+ - 🏗️ **Build Integration** - Automatically builds TypeScript before publishing
18
+ - 🎯 **Smart Dependency Management** - Inherits dependencies from your monorepo
19
+ - 🌐 **Multi-Registry Support** - Publish to npm, GitHub packages, or private registries
20
+ - ⚡ **Zero Config** - Works out of the box with sensible defaults
12
21
 
13
- Alternatively, if you are using yarn, the equivalent command would be:
22
+ ## 📥 Installation
23
+
24
+ ### As a Development Dependency (Recommended)
14
25
 
15
26
  ```bash
16
- yarn add @git.zone/tspublish
17
- ```
27
+ # Using pnpm (recommended)
28
+ pnpm add -D @git.zone/tspublish
29
+
30
+ # Using npm
31
+ npm install --save-dev @git.zone/tspublish
18
32
 
19
- These commands will add `@git.zone/tspublish` as a dependency in your `package.json` file and install the package into your `node_modules` directory.
33
+ # Using yarn
34
+ yarn add -D @git.zone/tspublish
35
+ ```
20
36
 
21
- ## Usage
37
+ ### Global Installation
22
38
 
23
- `@git.zone/tspublish` is designed to manage the publishing of multiple, small-scale packages within monorepos. The following sections will guide you through its usage, from setting up your environment to effectively publishing packages.
39
+ ```bash
40
+ npm install -g @git.zone/tspublish
41
+ ```
24
42
 
25
- ### Getting Started with TypeScript and Module Setup
43
+ ## 🚀 Quick Start
26
44
 
27
- `@git.zone/tspublish` works with monorepos that are organized using TypeScript. The package structure should follow a convention where each submodule intended for publishing is located in a directory prefixed with `ts`, for example, `tsModuleName`. Each submodule directory should contain a `tspublish.json` file to correctly configure the package to be published separately. This file is critical for the `tspublish` process to identify valid package directories and should also include necessary metadata for the package.
45
+ ### 1️⃣ Structure Your Monorepo
28
46
 
29
- Your monorepo structure might resemble:
47
+ Organize your packages with the `ts` prefix convention:
30
48
 
31
49
  ```
32
- my-monorepo/
33
- ├── ts-package1/
34
- │ ├── src/
35
- │ ├── tspublish.json
36
- ├── ts-package2/
37
- │ ├── src/
38
- │ ├── tspublish.json
50
+ my-awesome-monorepo/
51
+ ├── package.json # Main monorepo package.json
52
+ ├── tsconfig.json # Shared TypeScript config
53
+ ├── ts-core/ # Core package
54
+ │ ├── ts/ # TypeScript source files
55
+ │ ├── readme.md # Package documentation
56
+ │ └── tspublish.json # Publishing configuration
57
+ ├── ts-utils/ # Utilities package
58
+ │ ├── ts/
59
+ │ ├── readme.md
60
+ │ └── tspublish.json
61
+ └── ts-cli/ # CLI package
62
+ ├── ts/
63
+ ├── readme.md
64
+ └── tspublish.json
39
65
  ```
40
66
 
41
- ### Configuring `tspublish.json`
67
+ ### 2️⃣ Configure Each Package
42
68
 
43
- Each submodule must include a `tspublish.json` within its directory. This JSON file should include essential details for your publishable package, including its dependencies. Here's a basic example of what `tspublish.json` could look like:
69
+ Create a `tspublish.json` in each package directory:
44
70
 
45
71
  ```json
46
72
  {
47
- "name": "@myorg/ts-package1",
48
- "dependencies": {
49
- "some-dependency": "^1.0.0"
50
- }
73
+ "name": "@myorg/core",
74
+ "order": 1,
75
+ "dependencies": [
76
+ "@push.rocks/smartpromise",
77
+ "@push.rocks/smartfile"
78
+ ],
79
+ "registries": [
80
+ "registry.npmjs.org:public",
81
+ "npm.pkg.github.com:private"
82
+ ],
83
+ "bin": ["my-cli"]
51
84
  }
52
85
  ```
53
86
 
54
- ### Running the CLI
87
+ #### Configuration Options
55
88
 
56
- `@git.zone/tspublish` includes a CLI that simplifies the publishing process. Begin by importing the CLI runner in a script within your project:
89
+ | Field | Type | Description |
90
+ |-------|------|-------------|
91
+ | `name` | string | Package name (required) |
92
+ | `order` | number | Build order for interdependent packages |
93
+ | `dependencies` | string[] | Dependencies from the monorepo to include |
94
+ | `registries` | string[] | Target registries with access level |
95
+ | `bin` | string[] | CLI executable names |
57
96
 
58
- ```typescript
59
- import { runCli } from '@git.zone/tspublish';
97
+ ### 3️⃣ Run the Publisher
60
98
 
61
- runCli();
99
+ #### Command Line
100
+
101
+ ```bash
102
+ # From your monorepo root
103
+ npx tspublish
62
104
  ```
63
105
 
64
- This function call orchestrates the publishing operation. It reads each directory prefixed with `ts`, looks for a `tspublish.json`, and creates an individual package based on the gathered data.
106
+ #### Programmatic Usage
65
107
 
66
- ### Core Features
108
+ ```typescript
109
+ import { TsPublish } from '@git.zone/tspublish';
67
110
 
68
- #### Publishing Modules
111
+ const publisher = new TsPublish();
112
+ await publisher.publish(process.cwd());
113
+ ```
69
114
 
70
- The core functionality provided by `@git.zone/tspublish` involves processing directories to check for valid submodules that are ready to be published. This occurs via the `publish` method in `TsPublish` class. This method does the following:
115
+ ## 🎯 Advanced Usage
71
116
 
72
- - **Reads all directories** within the specified monorepo path.
73
- - **Identifies directories** that start with `ts` and validates the presence of `tspublish.json`.
74
- - **Logs** information about found packages for user awareness and debugging.
75
- - **Checks for collisions** with existing versions on the npm registry to prevent overriding published versions.
117
+ ### Custom Publishing Pipeline
76
118
 
77
119
  ```typescript
78
- import { TsPublish } from '@git.zone/tspublish';
120
+ import { TsPublish, PublishModule } from '@git.zone/tspublish';
121
+
122
+ // Initialize the publisher
123
+ const publisher = new TsPublish();
79
124
 
80
- const tspublish = new TsPublish();
81
- await tspublish.publish('/path/to/your/monorepo');
125
+ // Get all publishable modules
126
+ const modules = await publisher.getModuleSubDirs('./my-monorepo');
127
+
128
+ // Custom processing for each module
129
+ for (const [name, config] of Object.entries(modules)) {
130
+ const module = new PublishModule(publisher, {
131
+ monoRepoDir: './my-monorepo',
132
+ packageSubFolder: name
133
+ });
134
+
135
+ // Initialize module
136
+ await module.init();
137
+
138
+ // Create publish directory
139
+ await module.createPublishModuleDir();
140
+
141
+ // Custom build step
142
+ console.log(`Building ${config.name}...`);
143
+ await module.build();
144
+
145
+ // Publish to registries
146
+ await module.publish();
147
+ }
82
148
  ```
83
149
 
84
- #### Package Initialization
150
+ ### Registry Configuration
85
151
 
86
- Once valid submodules are identified, the `init` method in the `PublishModule` class initializes the publish module. This includes:
152
+ TSPublish supports multiple registries with different access levels:
87
153
 
88
- - Parsing `tspublish.json` for metadata.
89
- - Constructing full paths for necessary operations.
90
- - Verifying package existence to avoid duplication.
154
+ ```json
155
+ {
156
+ "registries": [
157
+ "registry.npmjs.org:public", // Public npm package
158
+ "npm.pkg.github.com:private", // Private GitHub package
159
+ "my-company.jfrog.io/npm:restricted" // Corporate registry
160
+ ]
161
+ }
162
+ ```
91
163
 
92
- ```typescript
93
- import { PublishModule } from '@git.zone/tspublish';
164
+ ### Build Order Management
165
+
166
+ When packages depend on each other, use the `order` field to ensure correct build sequence:
94
167
 
95
- const publishModule = new PublishModule({
96
- monoRepoDir: '/path/to/monorepo',
97
- packageSubFolder: 'ts-package1',
98
- });
168
+ ```json
169
+ // ts-core/tspublish.json
170
+ {
171
+ "name": "@myorg/core",
172
+ "order": 1,
173
+ "dependencies": []
174
+ }
99
175
 
100
- await publishModule.init();
176
+ // ts-utils/tspublish.json
177
+ {
178
+ "name": "@myorg/utils",
179
+ "order": 2,
180
+ "dependencies": ["@myorg/core"]
181
+ }
101
182
  ```
102
183
 
103
- #### Creating `package.json`
184
+ ### CLI Binary Configuration
104
185
 
105
- Part of the publishing process involves automatically creating a `package.json` tailored to each submodule. This dynamically generated JSON will incorporate dependencies from `tspublish.json` and associate them with the latest version of `tsbuild` from the registry:
186
+ For packages that include CLI tools:
106
187
 
107
- ```typescript
108
- await publishModule.createPackageJson();
188
+ ```json
189
+ {
190
+ "name": "@myorg/cli",
191
+ "bin": ["my-cli", "my-tool"],
192
+ "dependencies": ["commander", "chalk"]
193
+ }
109
194
  ```
110
195
 
111
- This creates a structured `package.json` which includes scripts to build your TypeScript files before publishing.
196
+ This automatically generates the necessary `cli.js` wrapper and configures the package.json `bin` field.
197
+
198
+ ## 🎨 Beautiful Output
199
+
200
+ TSPublish provides rich, colored console output with:
201
+
202
+ - 📊 Progress bars for multi-package operations
203
+ - 🎯 Clear status indicators (ℹ info, ✓ success, ⚠ warning, ✖ error)
204
+ - 📦 Package-specific icons and formatting
205
+ - 🚀 Visual separators between operation phases
206
+
207
+ ## 🔧 How It Works
208
+
209
+ 1. **Discovery Phase** 🔍
210
+ - Scans for directories starting with `ts`
211
+ - Validates `tspublish.json` presence
212
+ - Orders packages by dependency
213
+
214
+ 2. **Preparation Phase** 📋
215
+ - Creates temporary `dist_publish_*` directories
216
+ - Generates package.json from tspublish.json
217
+ - Copies source files and assets
218
+ - Sets up TypeScript configuration
219
+
220
+ 3. **Build Phase** 🔨
221
+ - Runs TypeScript compilation
222
+ - Generates declaration files
223
+ - Prepares distribution bundle
224
+
225
+ 4. **Validation Phase** ✅
226
+ - Checks npm registry for existing versions
227
+ - Prevents accidental overwrites
228
+ - Validates package metadata
229
+
230
+ 5. **Publishing Phase** 🚀
231
+ - Publishes to configured registries
232
+ - Handles authentication
233
+ - Reports success/failure
234
+
235
+ ## 🤝 Integration with CI/CD
236
+
237
+ ### GitHub Actions
238
+
239
+ ```yaml
240
+ name: Publish Packages
241
+
242
+ on:
243
+ push:
244
+ tags:
245
+ - 'v*'
246
+
247
+ jobs:
248
+ publish:
249
+ runs-on: ubuntu-latest
250
+ steps:
251
+ - uses: actions/checkout@v3
252
+
253
+ - uses: pnpm/action-setup@v2
254
+ with:
255
+ version: 8
256
+
257
+ - uses: actions/setup-node@v3
258
+ with:
259
+ node-version: '20'
260
+ cache: 'pnpm'
261
+
262
+ - run: pnpm install
263
+
264
+ - run: pnpm build
265
+
266
+ - run: npx tspublish
267
+ env:
268
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
269
+ ```
112
270
 
113
- #### Constructing Publish-ready Directory
271
+ ### GitLab CI
272
+
273
+ ```yaml
274
+ publish:
275
+ stage: deploy
276
+ image: node:20
277
+ before_script:
278
+ - npm install -g pnpm
279
+ - pnpm install
280
+ script:
281
+ - pnpm build
282
+ - npx tspublish
283
+ only:
284
+ - tags
285
+ ```
114
286
 
115
- After all configurations are verified and the `package.json` is created, the submodule is ready to be published. This step involves setting up a `dist_publish_` directory specific to each module:
287
+ ## 📚 API Reference
288
+
289
+ ### TsPublish Class
116
290
 
117
291
  ```typescript
118
- await publishModule.createPublishModuleDir();
292
+ class TsPublish {
293
+ // Publish all packages in a monorepo
294
+ async publish(monorepoDirPath: string): Promise<void>
295
+
296
+ // Get all publishable module configurations
297
+ async getModuleSubDirs(dirPath: string): Promise<{[key: string]: ITsPublishJson}>
298
+ }
119
299
  ```
120
300
 
121
- The above method ensures that each module's source files are copied and prepared under a dedicated directory meant for packaging and distribution.
301
+ ### PublishModule Class
122
302
 
123
- ### Logging and Debugging
303
+ ```typescript
304
+ class PublishModule {
305
+ // Initialize the module for publishing
306
+ async init(): Promise<void>
307
+
308
+ // Create the publishing directory structure
309
+ async createPublishModuleDir(): Promise<void>
310
+
311
+ // Build the TypeScript package
312
+ async build(): Promise<void>
313
+
314
+ // Publish to configured registries
315
+ async publish(): Promise<void>
316
+ }
317
+ ```
124
318
 
125
- The package includes a structured logging mechanism using `smartlog` which provides insights into the publishing process, helping in runtime debugging and status tracking of operations:
319
+ ### ITsPublishJson Interface
126
320
 
127
321
  ```typescript
128
- import { logger } from '@git.zone/tspublish/logging';
129
-
130
- logger.log('info', 'Publishing process initialized');
322
+ interface ITsPublishJson {
323
+ name: string // Package name
324
+ order: number // Build order
325
+ dependencies: string[] // Dependencies to include
326
+ registries: string[] // Target registries
327
+ bin: string[] // CLI binaries
328
+ }
131
329
  ```
132
330
 
133
- This powerful logging helps in tracking the status of each step and understanding potential issues during the operations.
331
+ ## 🐛 Troubleshooting
134
332
 
135
- ### Testing with tapbundle
333
+ ### Common Issues
136
334
 
137
- To ensure that your publishing workflow is functioning correctly, you can utilize the test suite set up with `tapbundle`. This library facilitates behavior-driven testing for your monorepo. Below is a basic test setup to verify the import and initial function accessibility of `@git.zone/tspublish`:
335
+ **Package already exists with version X.X.X**
336
+ - TSPublish detected a version collision
337
+ - Update your monorepo's package.json version
338
+ - Or unpublish the existing version if appropriate
138
339
 
139
- ```typescript
140
- import { expect, tap } from '@push.rocks/tapbundle';
141
- import * as tspublish from '@git.zone/tspublish';
340
+ **No publish modules found**
341
+ - Ensure your packages follow the `ts-*` naming convention
342
+ - Check that each package has a valid `tspublish.json`
142
343
 
143
- tap.test('Should run the CLI without errors', async () => {
144
- await tspublish.runCli();
145
- expect(tspublish).toBeTruthy();
146
- });
344
+ **Build failures**
345
+ - Verify TypeScript configuration
346
+ - Check that all dependencies are installed
347
+ - Review the build output for specific errors
147
348
 
148
- tap.start();
149
- ```
349
+ ## 🔮 Future Features
150
350
 
151
- ### Comprehensive usage example
351
+ - 🎯 Selective publishing with pattern matching
352
+ - 🔄 Automatic version bumping strategies
353
+ - 📊 Dry-run mode with detailed preview
354
+ - 🏷️ Git tag integration
355
+ - 📝 Changelog generation
356
+ - 🔐 Enhanced authentication handling
152
357
 
153
- Let's combine all the steps into a complete example where you prepare a monorepo, configure each module, and execute the publishing workflow.
358
+ ## License and Legal Information
154
359
 
155
- Suppose you have a project structure as follows:
360
+ This repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository.
156
361
 
157
- ```plaintext
158
- my-monorepo/
159
- ├── ts-package1/
160
- │ ├── src/
161
- │ ├── tspublish.json
162
- ├── ts-package2/
163
- │ ├── src/
164
- │ ├── tspublish.json
165
- ```
362
+ **Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.
166
363
 
167
- Follow these steps:
364
+ ### Trademarks
168
365
 
169
- 1. Ensure each package has `tspublish.json` properly configured with necessary metadata.
170
- 2. Create a CLI script such as `publish.js`:
366
+ This project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.
171
367
 
172
- ```typescript
173
- import { runCli } from '@git.zone/tspublish';
174
-
175
- runCli()
176
- .then(() => {
177
- console.log('Publishing completed successfully');
178
- })
179
- .catch((error) => {
180
- console.error('Error during publishing:', error);
181
- });
182
- ```
368
+ ### Company Information
183
369
 
184
- 3. Execute your CLI script:
185
-
186
- ```bash
187
- node publish.js
188
- ```
370
+ Task Venture Capital GmbH
371
+ Registered at District court Bremen HRB 35230 HB, Germany
189
372
 
190
- Your script will call `runCli`, which will traverse each `ts-package`, verify their publish readiness, and handle individual publishing processes.
373
+ For any legal inquiries or if you require further information, please contact us via email at hello@task.vc.
191
374
 
192
- By following these comprehensive guidelines and utilizing the structured approach provided by `@git.zone/tspublish`, you can efficiently manage and publish multiple sub-packages from within a monorepo, facilitating organized, modular package management in projects of any scale.
193
- undefined
375
+ By using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@git.zone/tspublish',
6
- version: '1.9.1',
6
+ version: '1.10.1',
7
7
  description: 'A tool to publish multiple, concise, and small packages from monorepos, specifically for TypeScript projects within a git environment.'
8
8
  }
@@ -44,37 +44,42 @@ export class GiteaAssets {
44
44
  branch?: string
45
45
  ): Promise<IRepoFile[]> {
46
46
  try {
47
- const response = await plugins.smartrequest.request(
48
- this.baseUrl + `/repos/${owner}/${repo}/contents/${directory}`,
49
- {
50
- headers: this.headers,
51
- method: 'GET',
52
- queryParams: branch ? { ref: branch } : {},
53
- }
54
- )
55
- if (!Array.isArray(response.body) && typeof response.body === 'object') {
56
- response.body = [response.body];
57
- } else if (Array.isArray(response.body)) {
58
- for (const entry of response.body) {
47
+ const requestBuilder = plugins.smartrequest.SmartRequest.create()
48
+ .url(this.baseUrl + `/repos/${owner}/${repo}/contents/${directory}`)
49
+ .headers(this.headers);
50
+
51
+ if (branch) {
52
+ requestBuilder.query({ ref: branch });
53
+ }
54
+
55
+ const response = await requestBuilder.get();
56
+ let responseBody = await response.json();
57
+
58
+ if (!Array.isArray(responseBody) && typeof responseBody === 'object') {
59
+ responseBody = [responseBody];
60
+ } else if (Array.isArray(responseBody)) {
61
+ for (const entry of responseBody) {
59
62
  if (entry.type === 'dir') {
60
63
  continue;
61
64
  } else if (entry.type === 'file') {
62
- const response2 = await plugins.smartrequest.request(
63
- this.baseUrl + `/repos/${owner}/${repo}/contents/${entry.path}`,
64
- {
65
- headers: this.headers,
66
- method: 'GET',
67
- queryParams: branch ? { ref: branch } : {},
68
- }
69
- );
70
- entry.encoding = response2.body.encoding;
71
- entry.content = response2.body.content;
65
+ const requestBuilder2 = plugins.smartrequest.SmartRequest.create()
66
+ .url(this.baseUrl + `/repos/${owner}/${repo}/contents/${entry.path}`)
67
+ .headers(this.headers);
68
+
69
+ if (branch) {
70
+ requestBuilder2.query({ ref: branch });
71
+ }
72
+
73
+ const response2 = await requestBuilder2.get();
74
+ const response2Body = await response2.json();
75
+ entry.encoding = response2Body.encoding;
76
+ entry.content = response2Body.content;
72
77
  }
73
78
  }
74
79
  }
75
80
 
76
81
  // lets map to the IRepoFile interface
77
- response.body = response.body.map((entry: any) => {
82
+ responseBody = responseBody.map((entry: any) => {
78
83
  return {
79
84
  name: entry.name,
80
85
  path: entry.path,
@@ -85,7 +90,7 @@ export class GiteaAssets {
85
90
  };
86
91
  });
87
92
 
88
- return response.body;
93
+ return responseBody;
89
94
  } catch (error) {
90
95
  console.error('Error fetching repository files:', error);
91
96
  throw error;
@@ -1,6 +1,6 @@
1
1
  import * as plugins from './plugins.js';
2
2
  import * as paths from './paths.js';
3
- import { logger } from './logging.js';
3
+ import { logger, logInfo, logSuccess, logWarn, logError, logBuild, logPublish, logOngoing, logStart, logDone } from './logging.js';
4
4
 
5
5
  import { type ITsPublishJson } from './interfaces/index.js';
6
6
  import type { TsPublish } from './classes.tspublish.js';
@@ -66,16 +66,15 @@ export class PublishModule {
66
66
  try {
67
67
  packageInfo = await smartnpmInstance.getPackageInfo(this.options.name);
68
68
  } catch (error) {
69
- logger.log('warn', `package does not yet seem to exist. Proceeding in 10 seconds...`);
69
+ logWarn(`Package ${this.options.name} does not yet seem to exist. Proceeding in 10 seconds...`);
70
70
  await plugins.smartdelay.delayFor(10000);
71
71
  }
72
72
  if (packageInfo) {
73
73
  const availableVersions = packageInfo.allVersions.map((versionArg) => versionArg.version);
74
- logger.log('info', `available versions are: ${availableVersions.toString()}`);
74
+ logInfo(`Available versions for ${this.options.name}: ${availableVersions.join(', ')}`);
75
75
  if (availableVersions.includes(this.options.version)) {
76
- logger.log(
77
- 'error',
78
- `package ${this.options.name} already exists with version ${this.options.version}`
76
+ logError(
77
+ `Package ${this.options.name} already exists with version ${this.options.version}`
79
78
  );
80
79
  process.exit(1);
81
80
  }
@@ -162,6 +161,7 @@ export class PublishModule {
162
161
  }
163
162
 
164
163
  public async createPublishModuleDir() {
164
+ logOngoing(`Creating publish directory for ${this.options.name}`);
165
165
  this.options.publishModDirFullPath = plugins.path.join(
166
166
  this.options.monoRepoDir,
167
167
  `dist_publish_${this.options.packageSubFolder}`
@@ -207,10 +207,12 @@ export class PublishModule {
207
207
  }
208
208
 
209
209
  public async build() {
210
+ logBuild(`Building ${this.options.name}...`);
210
211
  const smartshellInstance = new plugins.smartshell.Smartshell({
211
212
  executor: 'bash',
212
213
  });
213
214
  await smartshellInstance.exec(`cd ${this.options.publishModDirFullPath} && pnpm run build`);
215
+ logSuccess(`Build completed for ${this.options.name}`);
214
216
  }
215
217
 
216
218
  public async createBinCliSetup() {
@@ -229,6 +231,7 @@ export class PublishModule {
229
231
  }
230
232
 
231
233
  public async publish() {
234
+ logPublish(`Publishing ${this.options.name} v${this.options.version}...`);
232
235
  const smartshellInstance = new plugins.smartshell.Smartshell({
233
236
  executor: 'bash',
234
237
  });
@@ -242,5 +245,6 @@ export class PublishModule {
242
245
  } --no-git-checks --registry https://${registryUrl}`
243
246
  );
244
247
  }
248
+ logSuccess(`Successfully published ${this.options.name} v${this.options.version}!`);
245
249
  }
246
250
  }