Skip to content

eps1lon/ts-monorepo-type-import-paths

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-monorepo-type-import-paths

Steps to reproduce

  1. clone this repository
  2. yarn
  3. yarn start

Expected behavior

import() types use package identifiers.

Actual behavior

import() types use relative paths that are unusable if the packages are published.

Example (removed lines is actual code, added lines is expected code):

packages/lab/dist/ArrowLeft.d.ts

import * as React from "react";
-declare const _default: React.JSXElementConstructor<import("../../core/src/SvgIcon").SvgIconProps>;
+declare const _default: React.JSXElementConstructor<import("@material-ui/core/SvgIcon").SvgIconProps>;
export default _default;
//# sourceMappingURL=ArrowLeft.d.ts.map

Context

Originally reported in mui/material-ui#24112.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published