-
Notifications
You must be signed in to change notification settings - Fork 293
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
Jupyter editor types fix for ipywidget build #7942
Conversation
Codecov Report
@@ Coverage Diff @@
## main #7942 +/- ##
=====================================
Coverage 70% 70%
=====================================
Files 364 364
Lines 22427 22427
Branches 3416 3416
=====================================
Hits 15882 15882
+ Misses 5171 5160 -11
- Partials 1374 1385 +11
|
@@ -19,8 +19,10 @@ function ignoreTypescript4File(relativePath, searchString) { | |||
while (fileContents[searchIndex] != '\n') { | |||
searchIndex--; | |||
} | |||
const newFileContents = `${fileContents.substr(0, searchIndex+1)}\n// @ts-ignore\n${fileContents.substr(searchIndex+1)}`; | |||
fs.writeFileSync(filePath, newFileContents, {encoding: 'utf-8'}); | |||
const newFileContents = `${fileContents.substr(0, searchIndex + 1)}\n// @ts-ignore\n${fileContents.substr( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change seems unnecessary? It's just spacing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably via the linter/formatter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rchiodo that was just prettier formatting the file. Figured that I should keep it formatted in the PR.
For #7935
package-lock.json
has been regenerated by runningnpm install
(if dependencies have changed).