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

Updated NPM Script To Add Specmatic.jar Before Packaging #150

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

burdeamit
Copy link
Member

@burdeamit burdeamit commented Mar 13, 2024

What:

This PR modifies the download sequence of specmatic.jar in the Specmatic NPM package. Instead of downloading specmatic.jar after the package installation (using a postinstall script), the jar file is now downloaded before the package is packed (using a prepack script).

Why:

The modification ensures that specmatic.jar is bundled within the package at the time of packing. This approach helps to avoid potential issues where the jar file might not be correctly included when the package is installed.

How:

The implementation involved switching from a postinstall script to a prepack script in the package.json file. This script handles the downloading of specmatic.jar and ensures it is added to the correct directory before the package is packed.

@burdeamit burdeamit requested a review from jaydeepk March 13, 2024 07:19
Copy link
Collaborator

@jaydeepk jaydeepk left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks @burdeamit

@jaydeepk jaydeepk merged commit 98bc4a7 into master Mar 13, 2024
2 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.

2 participants