Add startup scripts for Deno and Bun

This commit is contained in:
Cohee 2024-10-18 11:19:11 +00:00
parent a32dd436d7
commit 8d3efcf83d
2 changed files with 11 additions and 0 deletions

8
package-lock.json generated
View File

@ -83,6 +83,7 @@
"@types/cookie-parser": "^1.4.7",
"@types/cookie-session": "^2.0.49",
"@types/cors": "^2.8.17",
"@types/deno": "^2.0.0",
"@types/express": "^4.17.21",
"@types/jquery": "^3.5.29",
"@types/lodash": "^4.17.10",
@ -1219,6 +1220,13 @@
"@types/node": "*"
}
},
"node_modules/@types/deno": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@types/deno/-/deno-2.0.0.tgz",
"integrity": "sha512-O9/jRVlq93kqfkl4sYR5N7+Pz4ukzXVIbMnE/VgvpauNHsvjQ9iBVnJ3X0gAvMa2khcoFD8DSO7mQVCuiuDMPg==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/estree": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz",

View File

@ -87,6 +87,8 @@
"version": "1.12.6",
"scripts": {
"start": "node server.js",
"start:deno": "deno run --allow-run --allow-net --allow-read --allow-write --allow-sys --allow-env server.js",
"start:bun": "bun server.js",
"start:no-csrf": "node server.js --disableCsrf",
"postinstall": "node post-install.js",
"lint": "eslint \"src/**/*.js\" \"public/**/*.js\" ./*.js",
@ -109,6 +111,7 @@
"@types/cookie-parser": "^1.4.7",
"@types/cookie-session": "^2.0.49",
"@types/cors": "^2.8.17",
"@types/deno": "^2.0.0",
"@types/express": "^4.17.21",
"@types/jquery": "^3.5.29",
"@types/lodash": "^4.17.10",