meeshkan / unmock-js

Fuzz test your REST API calls
https://unmock.io
93 stars 8 forks source link

Linting: Disallow imports from src/ directories in cross-package references #386

Closed carolstran closed 4 years ago

carolstran commented 4 years ago

We recently realized (#383) that TypeScript fails to compile when including Unmock as a dependency if there are any imports from src/ directories.

In the case of #383 (fixed in #384), the src directory is not packaged (only the dist one is), unmock-node cannot find unmock-core/src. It'd be good to hoist all imports to a top-level namespace, and having a linting step to check for that would help catch any potential bugs.