Skip to content

restructure ts package#1

Merged
dmytrotkk merged 5 commits into
mainfrom
restructure-ts-package
Apr 2, 2026
Merged

restructure ts package#1
dmytrotkk merged 5 commits into
mainfrom
restructure-ts-package

Conversation

@dmytrotkk
Copy link
Copy Markdown
Contributor

This pull request reorganizes the TypeScript codebase into a monorepo structure using workspaces, renames the CLI package, and refactors imports throughout the CLI code to reference shared code in a new core package. The changes also update the GitHub Actions workflow to match the new structure and improve type sharing across packages.

Monorepo and Workspace Setup

  • Added a root-level package.json with workspace configuration for packages/*, enabling a monorepo structure for better dependency management and code sharing.

Package Renaming and Directory Restructuring

  • Renamed the typescript directory and package to packages/cli and updated the package name from @skalenetwork/smartclaws-cli to @smartclaws/cli in package.json.
  • Moved all CLI source files and tests from typescript/ to packages/cli/, updating relative imports accordingly. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16]

Refactoring for Shared Core Package

Workflow and CI Updates

  • Updated the GitHub Actions workflow in .github/workflows/typescript.yml to use the new packages/** path, install dependencies at the workspace root, and run linting, type checks, and tests in the new package locations. [1] [2]

Type Sharing Improvements

  • Removed duplicate type definitions from the CLI and re-exported them from the shared core package, reducing code duplication and improving maintainability. [1] [2] [3]

These changes lay the foundation for a scalable monorepo, improve code sharing, and streamline development workflows.

@dmytrotkk dmytrotkk merged commit 3637a8d into main Apr 2, 2026
8 checks passed
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.

1 participant