Use on-the-fly transpiling with esmo (#562)

This commit is contained in:
Max Isom 2022-03-12 20:38:33 -05:00 committed by GitHub
parent db88e39c76
commit a60bde8d5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 184 additions and 207 deletions

View file

@ -2,7 +2,6 @@
"name": "muse",
"version": "1.5.0",
"description": "🎧 a self-hosted Discord music bot that doesn't suck ",
"exports": "./dist/index.js",
"repository": "git@github.com:codetheweb/muse.git",
"author": "Max Isom <hi@maxisom.me>",
"license": "MIT",
@ -12,25 +11,18 @@
"engines": {
"node": ">=16.0.0"
},
"files": [
"dist",
"dts"
],
"files": ["src"],
"scripts": {
"lint": "eslint \"src/**/*.{ts,tsx}\"",
"lint:fix": "eslint \"src/**/*.{ts,tsx}\" --fix",
"clean": "rm -rf dist dts",
"test": "npm run lint",
"build": "tsc",
"build:watch": "tsc --watch",
"prepack": "npm run clean && npm run build",
"start": "npm run env:set-database-url -- node --experimental-json-modules dist/scripts/migrate-and-start.js",
"cache:clear-key-value": "npm run env:set-database-url node dist/scripts/cache-clear-key-value.js",
"dev": "concurrently nodemon 'tsc --watch'",
"start": "npm run env:set-database-url -- esmo src/scripts/migrate-and-start.ts",
"cache:clear-key-value": "npm run env:set-database-url esmo src/scripts/cache-clear-key-value.ts",
"dev": "nodemon",
"migrations:generate": "npm run prisma:with-env migrate dev",
"migrations:run": "npm run prisma:with-env migrate deploy",
"prisma:with-env": "npm run env:set-database-url prisma",
"env:set-database-url": "node dist/scripts/run-with-database-url.js",
"env:set-database-url": "esmo src/scripts/run-with-database-url.ts",
"release": "release-it"
},
"devDependencies": {
@ -46,7 +38,6 @@
"@types/ws": "^8.2.2",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"concurrently": "^7.0.0",
"eslint": "^7.32.0",
"eslint-config-xo": "^0.39.0",
"eslint-config-xo-typescript": "^0.44.0",
@ -54,7 +45,6 @@
"nodemon": "^2.0.7",
"prisma": "^3.10.0",
"release-it": "^14.11.8",
"ts-node": "^10.5.0",
"type-fest": "^2.8.0",
"typescript": "^4.5.4"
},
@ -77,7 +67,7 @@
},
"husky": {
"hooks": {
"pre-commit": "npm test && yarn build"
"pre-commit": "npm test"
}
},
"dependencies": {
@ -93,6 +83,7 @@
"discord-api-types": "^0.29.0",
"discord.js": "^13.6.0",
"dotenv": "^16.0.0",
"esmo": "0.14.1",
"execa": "^6.1.0",
"fluent-ffmpeg": "^2.1.2",
"fs-capacitor": "^7.0.1",