Closed lveillard closed 3 months ago
Author: lveillard The Pull Request looks good! Sweep did not find any issues.
This pull request improves schema validation, updates TypeScript configuration, and enhances the build process.
In src/helpers.ts
, the enrichSchema
function was updated to provide more detailed error messages and stricter validation. New checks were added to ensure that non-virtual linkField
objects have valid relations and roles, and that virtual linkField
objects do not target relations. Additionally, a check was added to ensure that linkField
objects have at least one opposite linkField
.
The tsconfig.json
file was updated to use the ESNext module system, enable isolated modules, allow JSON imports, and generate source maps. These changes improve compatibility with modern JavaScript features and enhance debugging capabilities.
The tsup.config.ts
file was modified to prioritize ES module output, clean the output directory before each build, enable tree-shaking, minify the output, and generate source maps. These changes optimize the build process and reduce the final bundle size.
A new version entry, 0.10.16, was added to changelog.md
, documenting fixes for EnrichSchema and Esm config issues.
The .vscode/settings.json
file was updated to recognize "treeshake" as a valid word, preventing it from being marked as a spelling mistake in the editor.
package.json was not reviewed because our filter identified it as typically a non-human-readable (auto-generated) or less important file (e.g., dist files, package.json, images). If this is an error, please let us know.
Summary:
This PR fixes issues with EnrichSchema and ESM configuration, enhances schema validation, and refines the build process.
Key points:
changelog.md
to include fixes for EnrichSchema and ESM configuration issues.package.json
and streamlined build scripts.src/helpers.ts
within theenrichSchema
function.tsup.config.ts
to refine the build process with options likeminify
,treeshake
, andsourcemap
.Generated with :heart: by ellipsis.dev