fix(core): fix lint/type issues and small refactors

This commit is contained in:
2026-01-29 17:46:23 +00:00
parent 165c7d29bb
commit cb34ae5041
15 changed files with 39 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env node
// deno-lint-ignore-file no-unused-vars
/**
* NUPST npm postinstall script
@@ -6,13 +7,14 @@
*/
import { arch, platform } from 'os';
import { chmodSync, existsSync, mkdirSync, unlinkSync, writeFileSync } from 'fs';
import { chmodSync, existsSync, mkdirSync, unlinkSync } from 'fs';
import { dirname, join } from 'path';
import { fileURLToPath } from 'url';
import https from 'https';
import { pipeline } from 'stream';
import { promisify } from 'util';
import { createWriteStream } from 'fs';
import process from "node:process";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);