Skip to content

Conversation

@thymikee
Copy link
Member

Summary:

Noticed that type defs were not built properly for packages/cli. The reason was "include": "../package.json" in TS config, which resulted in TS happily passing everything. Seems like a bug in TS, present on both 3.7 and 3.8.

Test Plan:

Type defs are there in build/ dirs

import loadConfig from './tools/config';

import pkgJson from '../package.json';
const pkgJson = require('../package.json');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TS is able to resolve package.json, but with a require. This is the actual fix, rest is errors that accumulated since the bug started happening

{"path": "../cli-types"},
{"path": "../debugger-ui"}
],
"include": ["../package.json"]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this broke type defs

@thymikee thymikee merged commit 8424029 into master Feb 23, 2020
@thymikee thymikee deleted the fix/ts branch February 23, 2020 20:08
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

Successfully merging this pull request may close these issues.

2 participants