Closed sebastianst closed 3 years ago
In particular, we continue using the index.ts
files to collect exports like
// file: src/api/index.ts
export * from "./call";
export * from "./object";
export * from "./result";
export * from "./signature";
because the index should only be concerned with files in the same directory anyways.
We've done this in #18 (3d083357afb5afdc3acf01045983afd7a21c070f)
In #18, a package anchor
#erdstall
in the form of an internalimports
specification inpackage.json
was created. The correspondingpaths
translation was also added totsconfig.json
and all files insrc/test
were updated to already use this new form of import.I propose that we change all (complex) imports, that is, not short ones like
import * from './ledger'
in immediately surrounding files/dirs to use the package anchor.We could also add a second
#test
import spec topackage.json:imports
that points tosrc/test
and also then finally remove thetest->src/test
symlink. Of course, we could also just use#erdstall/test
but since it's just an internal reference, we can spare a second one :)To complete this issue, also remove the dev dependency
tsconfig-paths
and its mocha registration in thetest
script and from thetsconfig.*.json
files.