0.0.0 • Published 10 months ago

wireit-cache-validate v0.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Wireit Cache Validate

Validate if Wireit script is fully cached with subsequent runs. Run wireit-cache-validate after your wireit script to check if all files are cached successfully. This helps ensure that your build is consistent and reproducible.

Installation

npm i wireit-cache-validate --save-dev
"scripts": {
  "build": "wireit"
},
"wireit": {
  "build": {
    "command": "tsc",
    "files": [
      "src/index.ts"
    ],
    "output": [
      "dist/index.js"
    ]
  }
},
npm run build && wireit-cache-validate npm run build

Success

āœ… Ran 0 scripts and skipped 1 in 0s.
āœ… Cache validation passed.

Failure

🚫 Cache validation failed. Check .wireit-cache-validate log to verify all scripts are cached correctly.
https://github.com/google/wireit?tab=readme-ov-file#caching

If a cache check fails a .wireit-cache-validate file will be created in the root of your project. This file will contain the logs of the failed cache check. You can use this file to debug why the cache check failed.

0.0.0

10 months ago