Cash is bundled using minipacco, therefore it supports partial builds out of the box.
Replace the content of src/methods.ts
with your custom configuration, basically deleting imports for methods that you don't want, then you can simply rebuild the library with:
npm install
npm run build