Skip to content

Feat: Implementation of Package Entrypoint Entity -> Woocommerce class#12

Merged
Marty-Byrde merged 5 commits intocanaryfrom
package-entrypoint-exports
Feb 24, 2025
Merged

Feat: Implementation of Package Entrypoint Entity -> Woocommerce class#12
Marty-Byrde merged 5 commits intocanaryfrom
package-entrypoint-exports

Conversation

@Marty-Byrde
Copy link
Member

@Marty-Byrde Marty-Byrde commented Feb 24, 2025

✅ Description done
Automatically generated by auto-pr-description

This pull request introduces new exports and improves the build process. It exports functions for getting orders and products and updates the build script to include tsc-alias.

New Exports

  • functions/_exports.ts: This file exports getOrders and getProducts functions.
  • index.ts: Imports all functions from the _exports file and combines them into a single Woocommerce class.

Build process improvements

  • package.json: The build script now includes tsc-alias to handle path aliases during the build process.

Other Changes

  • schemas/WoocommerceCredentials.ts: Removed stripZodDefault type usage.

The re-exported functions in the exports_.ts file are imported and assigned to the class making them accessible to consumers.
@Marty-Byrde Marty-Byrde self-assigned this Feb 24, 2025
@Marty-Byrde Marty-Byrde linked an issue Feb 24, 2025 that may be closed by this pull request
The reason for this is change is to remove path aliases within the package with relative / absolute paths.
@codecov
Copy link

codecov bot commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
schemas/WoocommerceCredentials.ts 100.00% <ø> (ø)

The reason for this change is that by using StripZodDefault on an inferred schema makes the type unaccessible for consumers.
@Marty-Byrde Marty-Byrde merged commit c6972f6 into canary Feb 24, 2025
3 checks passed
@Marty-Byrde Marty-Byrde deleted the package-entrypoint-exports branch February 24, 2025 15:10
@Marty-Byrde
Copy link
Member Author

🎉 This PR is included in version 1.2.0-canary.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@Marty-Byrde
Copy link
Member Author

🎉 This PR is included in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce Root Entry Point (Woocommerce-Class)

1 participant