remove libp2p as type root, process ts from node_modules by ts loader

This commit is contained in:
weboko 2023-01-31 23:56:41 +01:00
parent 52b67b573f
commit 72bb7a4625
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View File

@ -50,7 +50,6 @@ module.exports = function (config) {
{
test: /\.(js|tsx?)$/,
loader: "ts-loader",
exclude: /node_modules|\.d\.ts$/,
options: { configFile: "tsconfig.karma.json" },
},
{

View File

@ -38,7 +38,7 @@
// "emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators. */,
"lib": ["es2020", "dom"],
"types": ["node", "mocha"],
"typeRoots": ["node_modules/@types", "src/@types", "node_modules/@libp2p"]
"typeRoots": ["node_modules/@types", "src/@types"]
},
"include": ["src"],
"exclude": ["src/**/*.spec.ts", "src/test_utils"],