Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monorepo setup and fix some inteded bug cases. #1135

Merged
merged 10 commits into from
Dec 7, 2024
Merged

Monorepo setup and fix some inteded bug cases. #1135

merged 10 commits into from
Dec 7, 2024

Conversation

samchon
Copy link
Owner

@samchon samchon commented Dec 7, 2024

This pull request includes several updates to the build and deployment workflows, as well as changes to the package dependencies to use workspace references. The most important changes include adding a new release workflow, updating existing workflows to use pnpm for dependency management, and refactoring deployment scripts for better modularity and maintainability.

Workflow Updates:

  • .github/workflows/release.yml: Added a new release workflow to automate the publishing process when a release is created.
  • .github/workflows/build.yml & .github/workflows/migrate.yaml: Updated to use pnpm for installing dependencies and adjusted paths for testing scripts. [1] [2]
  • .github/workflows/website.yml: Replaced npm with pnpm for dependency installation and build process.

Dependency Management:

  • package.json files across various packages: Updated to use workspace:^ for internal package dependencies, ensuring consistent versions across the monorepo. [1] [2] [3] [4] [5] [6] [7] [8]

Deployment Script Refactoring:

  • deploy/build.js: Introduced a new build script to handle the build process for multiple packages in a modular way.
  • deploy/index.js: Refactored to add a main function that can handle both build and publish commands.
  • deploy/publish.js: Refactored to include a build step before publishing and improved the setup and deploy functions for better readability and maintainability. [1] [2] [3] [4]

Miscellaneous:

  • Removed the old build/index.js script, which was responsible for building and testing all packages. This functionality has been moved to the new modular scripts.
  • Updated package.json scripts to use the new deployment commands. [1] [2]

@samchon samchon added the enhancement New feature or request label Dec 7, 2024
@samchon samchon self-assigned this Dec 7, 2024
Copy link

socket-security bot commented Dec 7, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@trivago/[email protected] Transitive: environment +29 8.47 MB behraang
npm/@types/[email protected] None 0 13.1 kB types
npm/@types/[email protected] None +2 2.3 MB types
npm/@types/[email protected] None +2 2.36 MB types
npm/@types/[email protected] None +1 2.1 MB types
npm/@types/[email protected] None +4 34.6 kB types
npm/@types/[email protected] None +1 2.31 MB types
npm/@typescript-eslint/[email protected] Transitive: environment, eval, filesystem, unsafe +52 13 MB jameshenry
npm/@typescript-eslint/[email protected] Transitive: environment, eval, filesystem, unsafe +46 9.84 MB jameshenry
npm/[email protected] None 0 62.2 kB andidittrich
npm/[email protected] None 0 13.9 kB motdotla
npm/[email protected] None 0 75.8 kB motdotenv, motdotla, scottmotte, ...1 more
npm/[email protected] Transitive: environment, eval, filesystem, unsafe +50 10.6 MB gund
npm/[email protected] None 0 2.46 MB delvedor, eomm, jsumners, ...1 more
npm/[email protected] shell 0 19.4 kB oseymen
npm/[email protected] None 0 87.6 kB sboudrias
npm/[email protected] filesystem Transitive: environment +9 151 kB isaacs
npm/[email protected] environment, filesystem +6 2.9 MB isaacs
npm/[email protected] None +21 49.5 MB eventualbuddha, lukastaegert, rich_harris, ...2 more
npm/[email protected] None +1 27.6 kB sindresorhus
npm/[email protected] filesystem +2 895 kB linusu
npm/[email protected] None +2 11.3 MB scottie1984
npm/[email protected] None 0 1.53 MB nonara

🚮 Removed packages: npm/@eslint/[email protected], npm/@fastify/[email protected], npm/@mui/[email protected], npm/@nestia/[email protected], npm/@nestia/[email protected], npm/@nestia/[email protected], npm/@nestia/[email protected], npm/@nestjs/[email protected], npm/@stackblitz/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@vitejs/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

@samchon samchon added the bug Something isn't working label Dec 7, 2024
Copy link
Owner Author

@samchon samchon left a comment

Choose a reason for hiding this comment

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

Everything is prepared.

@samchon samchon merged commit 332888c into master Dec 7, 2024
7 checks passed
@samchon samchon deleted the feat/mono branch December 7, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant