Initial commit

This commit is contained in:
2025-12-07 14:32:46 +00:00
commit 0a0969b8af
4726 changed files with 536089 additions and 0 deletions

31
node_modules/knex/scripts/clean.js generated vendored Executable file
View File

@@ -0,0 +1,31 @@
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const { execSync } = require('child_process');
function main() {
const repoDir = path.dirname(__dirname);
const gitDir = path.join(repoDir, '.git');
const gitDirExists = doesDirectoryExist(gitDir);
if (!gitDirExists) {
console.log("No .git directory detected so can not clean 'lib/'. Exiting.");
process.exit(0);
}
console.log(
"Cleaning 'lib/' of outputted files from Typescript compilation ..."
);
const cmd = 'git clean -f -X lib/';
const output = execSync(cmd, { cwd: repoDir });
console.log(output.toString('utf8'));
console.log('Done');
}
function doesDirectoryExist(p) {
if (fs.existsSync(p)) {
return fs.lstatSync(p).isDirectory();
}
return false;
}
main();