Absolute type imports for tests

This commit is contained in:
ADAMJR 2021-12-18 23:20:47 +00:00
parent 6f701043dc
commit 120aed8e47
4 changed files with 22 additions and 82 deletions

View File

@ -8,7 +8,7 @@
"name": "@accord/backend",
"version": "0.0.0",
"dependencies": {
"@accord/backend": "file:../src",
"@accord/backend": "file:./src",
"@accord/ion": "github:accord-dot-app/ion",
"@accord/types": "file:../types",
"body-parser": "^1.19.0",
@ -83,12 +83,17 @@
"../../types": {
"extraneous": true
},
"../src": {},
"../src": {
"extraneous": true
},
"../types": {
"name": "@accord/types"
"name": "@accord/types",
"dependencies": {
"@accord/backend": "file:../backend/src"
}
},
"node_modules/@accord/backend": {
"resolved": "../src",
"resolved": "src",
"link": true
},
"node_modules/@accord/ion": {
@ -6775,13 +6780,14 @@
"node": ">=10"
}
},
"src": {},
"types": {
"extraneous": true
}
},
"dependencies": {
"@accord/backend": {
"version": "file:../src"
"version": "file:src"
},
"@accord/ion": {
"version": "git+ssh://git@github.com/accord-dot-app/ion.git#590fcd2115f5b7b32bb3a0960a96e8ec21db2d13",
@ -6933,7 +6939,10 @@
}
},
"@accord/types": {
"version": "file:../types"
"version": "file:../types",
"requires": {
"@accord/backend": "file:../backend/src"
}
},
"@babel/helper-validator-identifier": {
"version": "7.12.11",

View File

@ -13,7 +13,7 @@
"keywords": [],
"author": "github.com/theadamjr",
"dependencies": {
"@accord/backend": "file:../src",
"@accord/backend": "file:./src",
"@accord/ion": "github:accord-dot-app/ion",
"@accord/types": "file:../types",
"body-parser": "^1.19.0",

View File

@ -6,14 +6,14 @@
"": {
"name": "@accord/types",
"dependencies": {
"@accord/backend": "file:../backend"
"@accord/backend": "file:../backend/src"
}
},
"../backend": {
"name": "@accord/backend",
"version": "0.0.0",
"dependencies": {
"@accord/backend": "file:../src",
"@accord/backend": "file:./src",
"@accord/ion": "github:accord-dot-app/ion",
"@accord/types": "file:../types",
"body-parser": "^1.19.0",
@ -85,84 +85,15 @@
"ts-node-dev": "^1.1.8"
}
},
"../backend/src": {},
"node_modules/@accord/backend": {
"resolved": "../backend",
"resolved": "../backend/src",
"link": true
}
},
"dependencies": {
"@accord/backend": {
"version": "file:../backend",
"requires": {
"@accord/backend": "file:../src",
"@accord/ion": "github:accord-dot-app/ion",
"@accord/types": "file:../types",
"@types/chai": "^4.2.14",
"@types/chai-as-promised": "^7.1.3",
"@types/chai-spies": "^1.0.3",
"@types/chai-things": "^0.0.34",
"@types/colors": "^1.2.1",
"@types/cors": "^2.8.7",
"@types/crypto-js": "^4.0.2",
"@types/deasync": "^0.1.2",
"@types/dotenv": "^8.2.0",
"@types/express": "^4.17.11",
"@types/express-rate-limit": "^5.1.1",
"@types/faker": "^5.1.6",
"@types/jest": "^27.0.1",
"@types/jsonwebtoken": "^8.5.0",
"@types/mocha": "^8.2.3",
"@types/mongoose": "^5.7.36",
"@types/multer": "^1.4.7",
"@types/node": "^14.11.2",
"@types/node-fetch": "^2.5.7",
"@types/nodemailer": "^6.4.1",
"@types/passport": "^1.0.4",
"@types/passport-local": "^1.0.33",
"@types/socket.io": "^2.1.13",
"@types/socket.io-client": "^3.0.0",
"@types/supertest": "^2.0.10",
"body-parser": "^1.19.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"chai-spies": "^1.0.0",
"chai-things": "^0.2.0",
"colors": "^1.4.0",
"cors": "^2.8.5",
"crypto-js": "^4.1.1",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-async-errors": "^3.1.1",
"express-rate-limit": "^5.2.6",
"faker": "^5.4.0",
"got": "^11.7.0",
"helmet": "^4.4.1",
"imghash": "^0.0.9",
"jsonwebtoken": "^8.5.1",
"mocha": "^8.2.1",
"mongodb-memory-server": "^8.0.2",
"mongoose": "^5.10.7",
"mongoose-unique-validator": "^2.0.3",
"multer": "^1.4.3",
"node-fetch": "^2.6.1",
"nodemailer": "^6.5.0",
"nodemailer-pug-engine": "^2.0.0",
"nodemon": "^2.0.14",
"passport": "^0.4.1",
"passport-local": "^1.0.0",
"passport-local-mongoose": "^6.0.1",
"rate-limit-mongo": "^2.3.1",
"re2": "^1.16.0",
"socket.io": "^4.0.0",
"socket.io-client": "^4.0.0",
"striptags": "^3.2.0",
"supertest": "^6.1.3",
"ts-mocha": "^8.0.0",
"ts-node": "^9.1.1",
"ts-node-dev": "^1.1.8",
"typescript": "^4.2.3",
"winston": "^3.3.3"
}
"version": "file:../backend/src"
}
}
}

View File

@ -2,6 +2,6 @@
"name":"@accord/types",
"main":"main.ts",
"dependencies": {
"@accord/backend": "file:../backend"
"@accord/backend": "file:../backend/src"
}
}