This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pnpm -r -c exec 'node /path/to/machette.js' | |
const util = require('util'); | |
const exec = util.promisify(require('child_process').exec); | |
const process = require('process'); | |
const path = require('path'); | |
async function main() { | |
const cwd = process.cwd(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WARNING: This file is auto-generated. | |
use crate::source_location::SourceLocation; | |
use crate::arena; | |
use crate::source_atom_set::SourceAtomSetIndex; | |
use crate::source_slice_list::SourceSliceIndex; | |
#[derive(Debug, PartialEq)] | |
pub enum Void { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -n "$1" ]; then WD="$PWD/$1"; else WD=$PWD; fi | |
run () { | |
(cd "$WD" && eval "$@") | sed 's/[[:space:]].//g' | |
} | |
stats() { | |
SIZE=$(run du -hs) | |
FILES=$(run find node_modules/ -type f \| wc -l) | |
echo "$1: $SIZE ($FILES files)" |