{
  "compilerOptions": {
    "sourceMap": true,
    "declaration": true,
    "esModuleInterop": true,
    "lib": ["esnext", "dom"],
    "target": "es6",
    "moduleResolution": "node",
    "allowSyntheticDefaultImports": true,
    "module": "commonjs",
    "outDir": "../dist",
    "paths": {
      "truffle-db": ["../src"],
      "truffle-db/*": ["../src/*"],
      "test/*": ["../test/*"]
    },
    "rootDir": "../src",
    "baseUrl": ".",
    "types": [
      "express",
      "jest",
      "node",
      "pouchdb"
    ]
  },
  "include": [
    "src/**/*",
    "test/**/*"
  ],
  "exclude": [
    "node_modules"
  ]
}

{
  "compilerOptions": {
    "sourceMap": true,
    "declaration": true,
    "esModuleInterop": true,
    "lib": ["esnext", "dom"],
    "target": "es6",
    "moduleResolution": "node",
    "allowSyntheticDefaultImports": true,
    "module": "commonjs",
    "outDir": "../dist",
    "paths": {
      "truffle-db": ["../src"],
      "truffle-db/*": ["../src/*"],
      "test/*": ["../test/*"]
    },
    "rootDir": "..",
    "baseUrl": ".",
    "types": [
      "express",
      "jest",
      "node",
      "pouchdb"
    ]
  },
  "include": [
    "src/**/*",
    "test/**/*"
  ],
  "exclude": [
    "node_modules"
  ]
}

Make truffle-db TS use package root as rootDir
Make truffle-db TS use package root as rootDir
