Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About config importedLibraries for module of lerna packages #135

Closed
tianyingchun opened this issue Sep 8, 2020 · 4 comments
Closed

About config importedLibraries for module of lerna packages #135

tianyingchun opened this issue Sep 8, 2020 · 4 comments

Comments

@tianyingchun
Copy link

hi , i have question about the typings imports: consider below sense.

i using lerna to Symlinks node modules @flat/mock, @flat/evolve and with tsconfig.json

 "paths": {
      "@flat/mock": [
        "packages/mock/src"
      ],
   "@flat/evolve": [
        "packages/evolve/src"
      ],

packages

  • mock
  • evolve

i imported some typings from @flat/mock in @flat/evolve, all typings will inline imported from @flat/mock instead using import {xx} from @flat/mock in index.d.ts, even if i have setup
importedLibraries: ['@flatjs/mock'], and disabled followSymlinks

do you have som suggestion about this?

@timocov
Copy link
Owner

timocov commented Sep 14, 2020

Sorry for late reply. Can you please prepare a repro for that?

@tianyingchun
Copy link
Author

sorry for late, i have resolved this issue by reset paths: to an emtpy object {} in compilerOptions for tsconfig.json, it works fine, BTW can you provider some configurations to override default compilerOptions of tsconfig.json likefollowSymlinksinBundlerConfig`

@tianyingchun
Copy link
Author

tianyingchun commented Sep 15, 2020

like:

const dtsBundle = {
  compilationOptions: {
    followSymlinks: false,
    // provider another standand `compilerOptions` to override ` tsconfig.json`
 "compilerOptions": {
    "paths": {},
    "lib": [
      "ES2016"
    ]
  }
  },
  entries: [ ....]
}

@timocov
Copy link
Owner

timocov commented Sep 27, 2020

@tianyingchun I just created #137 for that.

@timocov timocov closed this as completed Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants