-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Build: Output package type declarations #18942
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
d1ec2b8
Add tsconfigs for packages
sirreal 38814d0
Update TypeScript package
sirreal 9c238dd
Add types
sirreal d6c5808
Gitignore types output
sirreal 152ce84
Clean build-types
sirreal cd066a3
Add missing Parameters utility type
sirreal 48cf167
Fix PriorityQueue types
sirreal d970cb3
Add sprintf-js types
sirreal 62d2023
Type plural_forms function
sirreal 8645170
Allow i18n implicit any for untyped dependencies
sirreal 77c3835
Add include
sirreal fb52cee
Add tsbuildinfo locations
sirreal 124a8b3
Clean the right directories
sirreal fcbff69
Remove root tsconfig
sirreal eb26707
Add build-types
sirreal bee32b5
Disable token-list types
sirreal af14a3e
Remove ts cache from cleanup
sirreal a10f1a5
Include build-types in files
sirreal d9141ec
Use "build" over "b"
sirreal 9754612
Remove lint-types from lint
sirreal d6a20ea
Clean caches, some config cleanup
sirreal 4cfe893
Remove redundant resolve
sirreal ba8e7c5
No async, no catch
sirreal 214e1ff
Use default .tsbuildinfo location
sirreal 1042f71
Clean up tsconfig
sirreal 0cca987
"Fix" token-list
sirreal 71b0dd8
Use eslint dis/enable no-console pair
sirreal 1268c2f
Move types built to build:packages
sirreal 80c0a02
Add TypeScript to packages/README
sirreal adbb0dd
Ignore cli input
sirreal 973f5fb
Add build:package-types to lint-staged
sirreal 09c9955
Add travis job
sirreal 2e3bdce
Add and use lint-staged-typecheck bin
sirreal 7c277f4
Update bin/packages/lint-staged-typecheck.js
sirreal d11fe6a
Restructure is-shallow-equal
sirreal 384c78e
Bump to TS 3.8.3
sirreal 36d4649
Type TokenList
sirreal 7e71ee6
Add project-management-automation to typed packages
sirreal 5ab371b
Use lib for uncompiled published code
sirreal 8fc3c0e
Fix implicit any type
sirreal 7dc9a43
Disable noImplicitAny for pma
sirreal 94b9451
Exclude react-native
sirreal 3230e83
Restore native checking, relax implicit any
sirreal 47b24c3
Improve is-shallow-equal structure
sirreal 448fd2f
Proposal: Use root ts project
sirreal ad9f5bc
Use double quotes in package scripts
sirreal 7e9a6e1
Only clean types on publish
sirreal e2d8f86
Run lint-stage via npm script
sirreal 9151cd1
Remove is-shallow-equal/{arrays,objects} support
sirreal 70b1c2e
Proposal: Check all types on lint-staged
sirreal ad17ba1
Drop tsc verbose build
sirreal 1251ec6
Fix types in token-list
sirreal 8dffe92
Explain lint-staged script with a comment
sirreal 0236148
Restore bin typechecking
sirreal 89a0540
Comment cache outdir
sirreal 9c5782c
Remove redundant entry from is-shallow-equal files
sirreal c4516f3
Disable declarationMap for bin
sirreal adb7a78
Add types to package.json lint
sirreal a213ca9
Update is-shallow-equal benchmarks
sirreal 6ee66b5
Update is-shallow-equal tests
sirreal 4d95dc0
Revert "Explain lint-staged script with a comment"
sirreal bc0eac3
Revert "Proposal: Check all types on lint-staged"
sirreal 3fbe6f2
Revert "Run lint-stage via npm script"
sirreal a9c8577
Log type errors with lint-staged
sirreal dfd2bc1
Update changelog for affected packages
sirreal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Drop tsc verbose build
- Loading branch information
commit ad17ba1322280a857b8c8d418c9f858f7aaf7795
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Shouldn’t it be part of clean:packages that is executed as prebuild:packages?
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.
There's some conversation around this in the thread here: #18942 (comment)
In summary, there's enormous benefit to having a warm TypeScript cache and I don't believe there's any reason to clean it except to remove outdated declaration files from packages before they will be published.
In particular, we'll want to keep the caches warm for typechecking as part of lint staged.