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

Dependencies field became required instead of optional #3

Closed
ohana54 opened this issue Jul 9, 2020 · 2 comments
Closed

Dependencies field became required instead of optional #3

ohana54 opened this issue Jul 9, 2020 · 2 comments

Comments

@ohana54
Copy link
Contributor

ohana54 commented Jul 9, 2020

Hi, I think due to this commit the dependencies fields became required.

Code to reproduce:

  const packageJson: IPackageJson = {
    name: 'test',
  }

Error:

Type '{ name: string; }' is not assignable to type 'IPackageJson<any>'.
  Type '{ name: string; }' is missing the following properties from type 'Record<IPackageJsonDependenciesField, IDependency>':
dependencies, devDependencies, optionalDependencies, peerDependencies
@bluelovers
Copy link
Owner

thx, fixed

@ohana54
Copy link
Contributor Author

ohana54 commented Jul 10, 2020

Thanks!!

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