mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
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
15 lines
422 B
JavaScript
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);
|