chore: remove deprecated

This commit is contained in:
Mara 2026-06-11 21:27:17 +02:00
parent 8cbb4e8807
commit b585f7e292
3 changed files with 92 additions and 784 deletions

838
bun.lock

File diff suppressed because it is too large Load diff

View file

@ -1,17 +1,17 @@
import builtins from "builtin-modules";
import { builtinModules as builtins } from "node:module";
import { loadEnvFile } from "node:process";
import { Command } from "commander";
import dotenv from "dotenv";
import esbuild from "esbuild";
import * as fs from "fs";
import * as path from "path";
import manifest from "./manifest.json" with { type: "json" };
import packageJson from "./package.json" with { type: "json" };
// Initial configuration
dotenv.config({ path: [".env"] });
//verify that .env exists
if (fs.existsSync(".env")) loadEnvFile();
// Parsing command line arguments
const program = new Command();
// noinspection RequiredAttributes
program
.option("-p, --production", "Production build")
.option("-v, --vault [vault]", "Use vault path", false)
@ -128,11 +128,11 @@ async function buildPlugin() {
logLevel: "info",
sourcemap: isProd ? false : "inline",
treeShaking: true,
minify: isProd,
minifySyntax: isProd,
minifyWhitespace: isProd,
outdir: outDir,
plugins: getPlugins(outDir),
pure: isProd ? ["console.log", "console.trace", "console.debug"] : [],
});
console.log(`🚀 ${isProd ? "Production" : "Development"} build`);

View file

@ -23,28 +23,26 @@
"author": "Mara-Li",
"license": "GPL-3.0-or-later",
"devDependencies": {
"@biomejs/biome": "^2.3.3",
"@types/bun": "^1.3.1",
"@types/node": "^24.10.0",
"builtin-modules": "5.0.0",
"esbuild": "0.25.12",
"i18next": "^25.6.0",
"obsidian": "1.10.0",
"ts-deepmerge": "^7.0.3",
"@biomejs/biome": "^2.4.16",
"@types/bun": "^1.3.14",
"@types/node": "^25.9.3",
"esbuild": "0.28.0",
"i18next": "^26.3.1",
"obsidian": "1.13.1",
"ts-deepmerge": "^8.0.0",
"tslib": "2.8.1",
"typescript": "^5.9.3",
"uniformize": "^2.5.0"
"uniformize": "^2.6.1"
},
"dependencies": {
"@delucis/if-env": "^1.1.2",
"@simonwep/pickr": "^1.9.1",
"ansi-colors": "^4.1.3",
"commander": "^14.0.2",
"commit-and-tag-version": "^12.6.0",
"dedent": "^1.7.0",
"dotenv": "^17.2.3",
"commander": "^15.0.0",
"commit-and-tag-version": "^12.7.3",
"dedent": "^1.7.2",
"dotenv-cli": "^11.0.0",
"obsidian-typings": "4.58.0"
"obsidian-typings": "6.15.0"
},
"trustedDependencies": [
"@biomejs/biome",