Closed
Description
TypeScript Version: 3.0.0-dev.20180628
Search Terms: import path
, relative
Code
- clone https://github.com/fimbullinter/wotan
yarn
- creates a symlink
node_modules/@fimbul/<name>
for eachpackages/<name>
- creates a symlink
- create a new file
packages/mimir/src/test.ts
and paste the following content:expressionNeedsParensWhenReplacingNode; getWrappedNodeAtPosition; AbstractRule;
- add imports for all identifiers using quick fixes
Expected behavior:
import { expressionNeedsParensWhenReplacingNode } from "./utils";
import { getWrappedNodeAtPosition } from 'tsutils';
import { AbstractRule } from '@fimbul/ymir';
expressionNeedsParensWhenReplacingNode;
getWrappedNodeAtPosition;
AbstractRule;
Actual behavior:
import { expressionNeedsParensWhenReplacingNode } from "@fimbul/mimir/src/utils";
import { getWrappedNodeAtPosition } from '../../../node_modules/tsutils';
import { AbstractRule } from '../../../node_modules/@fimbul/ymir/src';
expressionNeedsParensWhenReplacingNode;
getWrappedNodeAtPosition;
AbstractRule;
Playground Link:
Related Issues:
#25029