refactor(types): Enhance typings structure and module compatibility #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This pull request introduces several improvements and refinements to the
lsfnd
package. The focus is primarily on enhancing the types declaration within thetypes
module, making it more organized and adaptable for future development and make this project supports in TypeScript projects with various modules settings. Additionally, it includes optimizations in the build process to minify thelsTypes
module (forgot to include this module while maintaining #1).Notable Changes
Types Declaration Refactoring (6756665):
types
module for improved maintainability and future development.types
module in the main package entry (index.ts
).declaration
option in thetsconfig.production.json
file to ensure proper TypeScript typings generation and it's crucial for compatibility in TypeScript project with various modules type, especially fornode*
modules.lsfnd
package to be correctly imported and used in TypeScript projects with various module settings, includingnode16
,nodenext
,es5
,esnext
, and others, in addition tocommonjs
, which was supported in the previous release.Build Process Improvement (4d48e06):
lsTypes
module to be minified after transpilation from TypeScript during the build process.Summary
These changes significantly improve the organization and maintainability of the
types
module within thelsfnd
package. By refactoring type declarations and enabling re-exporting, the package is now compatible with a wider range of TypeScript module settings. Additionally, the build process has been enhanced by including thelsTypes
module in the minification step, ensuring a more efficient production build.