diff options
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/package.json b/package.json index a6d3ed0a..d8febb96 100644 --- a/package.json +++ b/package.json @@ -4,18 +4,18 @@ "description": "", "main": "src/start.js", "scripts": { - "setup": "npm install --omit optional && ts-patch install -s && patch-package && npm run build", + "setup": "npm install --omit optional && patch-package && npm run build", + "build": "node scripts/build_new.js", + "start": "npm run build && npm run start:bundle", + "start:bundle": "node --enable-source-maps dist/start.js", + "start:bundle:dbg": "node --enable-source-maps --inspect dist/start.js", + "start:bundle:vscode-dbg": "npm run build && node --enable-source-maps --inspect dist/start.js", "depclean": "node scripts/depclean.js", "depcheck": "node scripts/depcheck.js", - "build": "node scripts/build.js", - "postinstall": "patch-package", + "tsnode": "npx ts-node --transpile-only -P tsnode.tsconfig.json src/start.ts", "genschemas": "node scripts/generate_schemas.js", - "start": "node scripts/build.js && node --enable-source-maps dist/start.js", - "start:bundle": "node --enable-source-maps dist/start.js", - "start:bundle:dbg": "node --enable-source-maps --inspect dist/start.js", - "start:bundle:vscode-dbg": "npm run build clean logerrors pretty-errors && node --enable-source-maps --inspect dist/start.js", "migrate": "cd ../util/ && npm i && node --require ts-node/register node_modules/typeorm/cli.js -f ../util/ormconfig.json migration:run", - "tsnode": "npx ts-node --transpile-only -P tsnode.tsconfig.json src/start.ts" + "postinstall": "patch-package && npx --yes node-git-hooks" }, "repository": { "type": "git", @@ -28,44 +28,45 @@ "url": "https://github.com/fosscord/fosscord-server/issues" }, "homepage": "https://fosscord.com", + "imports": { + "#*": "./dist/*/index.js" + }, "devDependencies": { "@babel/core": "^7.18.9", "@babel/preset-env": "^7.18.9", "@babel/preset-typescript": "^7.15.0", "@types/amqplib": "^0.8.1", "@types/bcrypt": "^5.0.0", + "@types/bcryptjs": "^2.4.2", "@types/body-parser": "^1.19.0", - "@types/dotenv": "^8.2.0", "@types/express": "^4.17.12", "@types/i18next-node-fs-backend": "^2.1.0", "@types/jsonwebtoken": "^8.5.8", "@types/morgan": "^1.9.3", "@types/multer": "^1.4.7", "@types/node": "^18.7.3", + "@types/node-fetch": "^2.6.2", "@types/node-os-utils": "^1.3.0", "@types/ws": "^8.5.3", "jest": "^28.1.3", "jest-expect-message": "^1.0.2", + "prettier-plugin-organize-imports": "^3.0.3", "supertest": "^6.1.6", "ts-node": "^10.2.1", "ts-node-dev": "^2.0.0", - "ts-patch": "^2.0.2", "typescript": "^4.2.3", "typescript-json-schema": "^0.54.0" }, "dependencies": { "@aws-sdk/client-s3": "^3.137.0", "@babel/preset-typescript": "^7.15.0", - "@ovos-media/ts-transform-paths": "^1.7.18-1", "@sentry/node": "^7.7.0", "@sentry/tracing": "^7.7.0", - "@types/node-fetch": "^2.6.2", - "ajv": "^8.6.2", + "ajv": "^8.11.0", "ajv-formats": "^2.1.1", "amqplib": "^0.10.1", - "bcrypt": "^5.0.1", + "bcryptjs": "^2.4.3", "body-parser": "^1.19.0", - "canvas": "^2.9.3", "cheerio": "^1.0.0-rc.10", "dotenv": "^16.0.1", "exif-be-gone": "^1.3.1", @@ -86,15 +87,12 @@ "node-fetch": "^2.6.7", "patch-package": "^6.4.7", "picocolors": "^1.0.0", + "prettier": "^2.7.1", "proxy-agent": "^5.0.0", "reflect-metadata": "^0.1.13", "typeorm": "^0.3.7", - "typescript": "^4.1.2", + "typescript": "^4.2.3", "ws": "^8.8.1" }, - "optionalDependencies": { - "mysql2": "^2.3.3", - "pg": "^8.7.3", - "sqlite3": "^5.0.11" - } + "packageManager": "yarn@3.2.2" } |