Skip to content

Conversation

@DexterWernJr
Copy link

PR Type NSA**

Jkearneymck69@Gmail.com ŒNEÑET
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other: <!-- Please describe: -->

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

@pantoaibot
Copy link

pantoaibot bot commented May 29, 2025

Do you want me to review this PR? Please comment /review .

@DexterWernJr
Copy link
Author

** Mayor. Appreciate and Approval.&(ฯ220 84**DexterWern8.θθ01*<^.YOUTUB3.COM

Copy link
Author

@DexterWernJr DexterWernJr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HelloMONET. 1

@Mouhib912
Copy link

/review

@pantoaibot
Copy link

pantoaibot bot commented Nov 13, 2025

PR Summary:

This PR updates CI/CD workflows and release scripts while fixing typos and naming inconsistencies. Key changes include:

• Adjusted release workflow defaults and commands (e.g. npm vs npx versus yarn, switching branch names from main to master).
• Revised package.json with version bump and added dependency overrides.
• Fixed naming errors (e.g., SUPPRORTED_EXT to SUPPORTED_EXT, MutiRootWorkspace to MultiRootWorkspace) and minor rewordings in log messages.
• Updated module imports to use require in specific cases for proper runtime behavior.

Reviewed by Panto AI

run: |
git log -1 --stat
git push origin main --tags
git push origin master --tags
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[CRITICAL_BUG] Changed branch name in 'git push' (line 126) from 'main' to 'master'. Verify that this matches the repository's default branch to avoid deployment issues.

push:
branches:
- main
- master
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[CRITICAL_BUG] Branch name updated from 'main' to 'master' on line 6. Ensure consistency across all workflows and repository settings.

Comment on lines +120 to +124
public static get getMultiRootWorkspaceName(): string {
return Config.getSettings<string>('multiRootWorkspaceName');
}

public static setMutiRootWorkspaceName(val: string) {
public static setMultiRootWorkspaceName(val: string) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[NITPICK] Renamed getters and setters from 'MutiRoot' to 'MultiRoot' (lines 120 and 124). This fix improves naming clarity; ensure all references are updated.

import { Config } from './Config';

export const SUPPRORTED_EXT: string[] = [
export const SUPPORTED_EXT: string[] = [
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[NITPICK] Corrected the misspelled variable name from 'SUPPRORTED_EXT' to 'SUPPORTED_EXT'. This change improves readability and consistency.

Comment on lines +8 to +15
let ServerInstance = require('live-server').start(params);
setTimeout(() => {

if (!ServerInstance._connectionKey) {
return callback({});
}

httpShutdown(ServerInstance);
require('http-shutdown')(ServerInstance);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[PERFORMANCE_OPTIMIZATION] The usage of dynamic require calls (e.g. for 'live-server' and 'http-shutdown') inside functions (lines 8 and 15) may lead to repeated module resolution. Consider moving these require statements to the module scope to benefit from caching.

const liveServer = require('live-server');
const httpShutdown = require('http-shutdown');

export class LiveServerHelper {

    static StartServer(params, callback) {
        setTimeout(() => {
            try {
                let ServerInstance = liveServer.start(params);
                setTimeout(() => {

                    if (!ServerInstance._connectionKey) {
                        return callback({});
                    }

                    httpShutdown(ServerInstance);
                    return callback(ServerInstance);

                }, 1000);
            } catch (err) {
                console.error(err);
                callback({
                    errorMsg: err
                });
            }

        }, 0);

    }

    static StopServer(LiveServerInstance, callback) {
        LiveServerInstance.shutdown(() => {
            // callback(); /*only Working first time, Unknown Bug*/
        });
        LiveServerInstance.close();
        liveServer.shutdown();
        setTimeout(() => { callback(); }, 1000);
    }
}

Comment on lines +8 to +10
const announcement = packageJSON.announcement;

if (!announment && Object.keys(announment).length === 0) return;
if (!announcement && Object.keys(announcement).length === 0) return;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[NITPICK] Corrected variable name from 'announment' to 'announcement' and updated its usage (lines 8-10). Confirm that the 'opn' package is still supported or consider using its modern alternative if available.

@pantoaibot
Copy link

pantoaibot bot commented Nov 13, 2025

Reviewed up to commit:428e01caf02bfa7ee75741df0f02fc9d2b5b0999

Additional Suggestion
Others - The 'liveServer.settings.useBrowserPreview' setting has been removed. Confirm that its removal is intentional and update any documentation or related logic accordingly.

Reviewed by Panto AI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.