diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-18 01:50:20 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-18 01:50:20 +0200 |
commit | 1e331b7c9d74cc4a0c532ebe8562986547d388ca (patch) | |
tree | 640fb5851f68f4338abc7366858e53ccf9d5222e /api/package.json | |
parent | :sparkles: generate test responses (diff) | |
download | server-1e331b7c9d74cc4a0c532ebe8562986547d388ca.tar.xz |
:art: use typescript plugin that converts to relative paths
Diffstat (limited to 'api/package.json')
-rw-r--r-- | api/package.json | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/api/package.json b/api/package.json index ad959e57..c54dc0e9 100644 --- a/api/package.json +++ b/api/package.json @@ -5,16 +5,18 @@ "main": "dist/Server.js", "types": "dist/Server.d.ts", "scripts": { - "test:only": "node -r ./scripts/tsconfig-paths-bootstrap.js node_modules/.bin/jest --coverage --verbose --forceExit ./tests", + "prepare": "ts-patch install -s", + "test:only": "jest --coverage --verbose --forceExit ./tests", "test": "npm run build && npm run test:only", "test:watch": "jest --watch", - "start": "npm run build && node -r ./scripts/tsconfig-paths-bootstrap.js dist/start", + "start": "npm run build && node dist/start", "build": "npx tsc -b .", "build-docker": "tsc -p tsconfig-docker.json", "dev": "tsnd --respawn src/start.ts", "patch": "npx patch-package", "postinstall": "npm run patch", "generate:docs": "ts-node scripts/generate_openapi_schema.ts", + "generate:test": "ts-node scripts/generate_test_schema.ts", "generate:schema": "ts-node scripts/generate_body_schema.ts" }, "repository": { @@ -36,6 +38,9 @@ }, "homepage": "https://fosscord.com", "devDependencies": { + "@babel/core": "^7.15.5", + "@babel/preset-env": "^7.15.6", + "@babel/preset-typescript": "^7.15.0", "@types/amqplib": "^0.8.1", "@types/bcrypt": "^5.0.0", "@types/express": "^4.17.9", @@ -49,14 +54,17 @@ "@types/multer": "^1.4.5", "@types/node": "^14.17.9", "@types/node-fetch": "^2.5.7", + "@types/supertest": "^2.0.11", "@zerollup/ts-transform-paths": "^1.7.18", "0x": "^4.10.2", + "babel-jest": "^27.2.0", "caxa": "^2.1.0", "image-size": "^1.0.0", "jest": "^26.6.3", "saslprep": "^1.0.3", "ts-node": "^9.1.1", "ts-node-dev": "^1.1.6", + "ts-patch": "^1.4.4", "typescript": "^4.4.2", "typescript-json-schema": "0.50.1" }, @@ -96,7 +104,7 @@ "setupFiles": [ "<rootDir>/jest/setup.js" ], - "globalSetup": "<rootDir>/scripts/globalSetup.js", + "globalSetup": "<rootDir>/jest/globalSetup.js", "verbose": true } } |