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

Types declaration files are not release package #154

Closed
huynguyentuong opened this issue Nov 19, 2020 · 2 comments
Closed

Types declaration files are not release package #154

huynguyentuong opened this issue Nov 19, 2020 · 2 comments

Comments

@huynguyentuong
Copy link

In version 2.6.0, the package structure is

mocker-api
|--lib
    |--bin
        |--index.js
        |--index.js.map
        |--index.d.ts    

However, for newer versions (from 2.7.0), the structure has been changed to

mocker-api
|--lib
    |--bin
        |--mocker.js
        |--mocker.js.map
    |--src
        |--index.d.ts

Which cannot be understood by Typescript compiler. Adding the following configuration to ts.config.json helps but not very ideal.

{
    ...
     "include": [
         "node_modules/mocker-api/lib/src"
     ]
}
@jaywcjlove
Copy link
Owner

@huynguyentuong Thx! Upgrade + mocker-api@2.7.4

@huynguyentuong
Copy link
Author

Thanks for the super quick fix!

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