Skip to content

Conversation

@infomiho
Copy link
Member

@infomiho infomiho commented Dec 15, 2025

Description

Use Wasp compiler version as the lib version. This is great for shipping the libs to our users - the libs are of the same version as the compiler.

This is a bit annoying for us when developing the libs since we need manually bust the npm cache for the libs to test the updated libs code. That's why we implement the ./run libs:bust-cache command.

Related to #2936

Type of change

  • 🔧 Just code/docs improvement
  • 🐞 Bug fix
  • 🚀 New/improved feature
  • 💥 Breaking change

Checklist

  • I tested my change in a Wasp app to verify that it works as intended.

  • 🧪 Tests and apps:

    • I added unit tests for my change.
    • (if you fixed a bug) I added a regression test for the bug I fixed.
    • (if you added/updated a feature) I added/updated e2e tests in examples/kitchen-sink/e2e-tests.
    • (if you added/updated a feature) I updated the starter templates in waspc/data/Cli/templates, as needed.
    • (if you added/updated a feature) I updated the example apps in examples/, as needed.
      • (if you updated examples/tutorials) I updated the tutorial in the docs (and vice versa).
  • 📜 Documentation:

    • (if you added/updated a feature) I added/updated the documentation in web/docs/.
  • 🆕 Changelog: (if change is more than just code/docs improvement)

    • I updated waspc/ChangeLog.md with a user-friendly description of the change.
    • (if you did a breaking change) I added a step to the current migration guide in web/docs/migration-guides/.
    • I bumped the version in waspc/waspc.cabal to reflect the changes I introduced.

@infomiho infomiho marked this pull request as ready for review December 15, 2025 16:58
@infomiho infomiho requested a review from sodic December 15, 2025 17:00
@infomiho infomiho mentioned this pull request Dec 15, 2025
15 tasks
@infomiho infomiho requested a review from cprecioso December 15, 2025 17:01
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 16, 2025

Deploying wasp-docs-on-main with  Cloudflare Pages  Cloudflare Pages

Latest commit: 00b6ea8
Status: ✅  Deploy successful!
Preview URL: https://59930995.wasp-docs-on-main.pages.dev
Branch Preview URL: https://template-to-libs-no-hashes.wasp-docs-on-main.pages.dev

View logs

Comment on lines +20 to +21
lib_name=$(grep '"name"' package.json | cut -d'"' -f4)
lib_version=$(grep '"version"' package.json | cut -d'"' -f4)
Copy link
Member Author

Choose a reason for hiding this comment

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

Not using jq since not all of our CI workflows have it.

wasp-cli)
echo_and_eval "$RUN_CMD"
;;
libs:bust-cache)
Copy link
Member Author

Choose a reason for hiding this comment

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

The "enabler" command, we have a special command we run after each lib build to bust the cache.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 17, 2025

Open in StackBlitz

@wasp.sh/wasp-cli

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli@3501

@wasp.sh/wasp-cli-darwin-arm64-unknown

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli-darwin-arm64-unknown@3501

@wasp.sh/wasp-cli-darwin-x64-unknown

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli-darwin-x64-unknown@3501

@wasp.sh/wasp-cli-linux-x64-glibc

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli-linux-x64-glibc@3501

@wasp.sh/wasp-cli-linux-x64-musl

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli-linux-x64-musl@3501

commit: 5ff8af4

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