Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker-scripts.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
import { execSync } from "child_process";
import packageJson from "./package.json" with { type: "json" };
const { execSync } = require("child_process");
const packageJson = require("./package.json");

const version = packageJson.version;
const command = process.argv[2];
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
"version": "2.2.8",
"description": "A Discord bot that plays music",
"main": "index.js",
"type": "module",
"engines": {
"node": ">=20.x"
},
"scripts": {
"dev": "tsx watch src/index.ts",
"start": "node dist/index.js",
"build": "tsup src/index.ts --format esm --minify --external unfetch,ffmpeg-static",
"build": "tsup src/index.ts --minify --external unfetch,ffmpeg-static",
"docker-build": "node docker-scripts.js build",
"docker-save": "node docker-scripts.js save",
"build-prod": "npm run build && npm run docker-build && npm run docker-save",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { config } from "@/config";
import fs from "fs";
import path from "path";
import { fileURLToPath } from "url";

const __dirname = path.dirname(fileURLToPath(import.meta.url));

/**
* Handles YouTube cookies by reading from environment variables,
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "esnext",
"moduleResolution": "bundler",
"module": "nodenext",
"moduleResolution": "nodenext",
"rootDir": "./src",
"outDir": "./dist",
"removeComments": true,
Expand Down