This PR adds support for the following form of imports:
import { foo } from 'project-name/...'
Currently the only supported import types in the @example blocks are:
import { foo } from 'project-name'
import { foo } from 'project-name/lib/...'
Tests
There are no tests for src/core so I did some manual tests by running in this repo and in fp-ts as well.
CLI output in the Asciicast:
Here is also a Asciicast of a project I have that fails with master but works with the PR:
NOTE: I know this is a tool for your own projects and it aims to be opinionated. I will understand if you don't think the PR should be merged. I decided to create the PR since is a small change in code, instead of asking in an issue.
This PR adds support for the following form of imports:
import { foo } from 'project-name/...'
Currently the only supported import types in the
@example
blocks are:import { foo } from 'project-name'
import { foo } from 'project-name/lib/...'
Tests
There are no tests for
src/core
so I did some manual tests by running in this repo and in fp-ts as well.CLI output in the Asciicast:
Here is also a Asciicast of a project I have that fails with master but works with the PR:
NOTE: I know this is a tool for your own projects and it aims to be opinionated. I will understand if you don't think the PR should be merged. I decided to create the PR since is a small change in code, instead of asking in an issue.