Files
trezor-suite/scripts/fix-libs.js
Peter Sanderson 5c06608858 fix: bad dependency flow in staking
fix: move stakingTypes into wallet types

after: rebase fix

fix: more bad typing in staking

fix: more types fixies

chore: add script for File Watcher to fix Webstorm libs imports
2026-02-09 13:44:52 +01:00

15 lines
422 B
JavaScript

/**
* This is a utility that is useful for users of Webstorm. It's auto-import adds
* a `/libDev/src` a lot, and it's annoying to fix it manually.
*
* This may be used in as the `File Watchers` script to on-save fix the file automatically.
*/
import fs from 'fs';
const file = process.argv[2];
let text = fs.readFileSync(file, 'utf8');
text = text.replace("/libDev/src';\n", "';\n");
fs.writeFileSync(file, text);