mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-05-08 05:00:34 -05:00
Migrate server codebase to ES module and Deno Runtime
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "myspeed",
|
||||
"version": "1.0.9",
|
||||
"exports": "./server/index.js",
|
||||
"tasks": {
|
||||
"client": "cd client && npm run dev",
|
||||
"server": "deno run --allow-all --watch server/index.js",
|
||||
"build": "cd client && npm run build",
|
||||
"dev": "deno task server & deno task client",
|
||||
"compile": "deno compile --allow-all --no-check --include build --output myspeed server/index.js",
|
||||
"compile:linux": "deno compile --allow-all --no-check --include build --target x86_64-unknown-linux-gnu --output myspeed-linux server/index.js",
|
||||
"compile:windows": "deno compile --allow-all --no-check --include build --target x86_64-pc-windows-msvc --output myspeed-windows.exe server/index.js",
|
||||
"compile:macos": "deno compile --allow-all --no-check --include build --target x86_64-apple-darwin --output myspeed-macos server/index.js",
|
||||
"compile:macos-arm": "deno compile --allow-all --no-check --include build --target aarch64-apple-darwin --output myspeed-macos-arm server/index.js"
|
||||
},
|
||||
"imports": {
|
||||
"express": "npm:express@^5.2.1",
|
||||
"sequelize": "npm:sequelize@^6.37.7",
|
||||
"sqlite3": "npm:sqlite3@^5.1.7",
|
||||
"mysql2": "npm:mysql2@^3.16.1",
|
||||
"axios": "npm:axios@^1.13.2",
|
||||
"bcrypt": "npm:bcrypt@^6.0.0",
|
||||
"cron-validator": "npm:cron-validator@^1.4.0",
|
||||
"node-schedule": "npm:node-schedule@^2.1.1",
|
||||
"prom-client": "npm:prom-client@^15.1.3",
|
||||
"satori": "npm:satori@^0.19.1",
|
||||
"satori-html": "npm:satori-html@^0.3.2",
|
||||
"@resvg/resvg-js": "npm:@resvg/resvg-js@^2.6.2",
|
||||
"decompress": "npm:decompress@^4.2.1",
|
||||
"decompress-targz": "npm:decompress-targz@^4.1.1",
|
||||
"decompress-unzip": "npm:decompress-unzip@^4.0.1",
|
||||
"tmp": "npm:tmp@^0.2.5",
|
||||
"moment-timezone": "npm:moment-timezone@^0.5.45"
|
||||
},
|
||||
"nodeModulesDir": "auto",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"checkJs": false
|
||||
},
|
||||
"allowScripts": [
|
||||
"npm:bcrypt@6.0.0",
|
||||
"npm:sqlite3@5.1.7"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user