-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Convert the codebase to modules #51387
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 all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
df89c74
Make a few changes to allow all code to be loaded as one project
jakebailey 7698653
Explicitly reference ts namespace in tsserverlibrary
jakebailey 94724a8
Generated module conversion step - unindent
jakebailey 9a0b85c
Generated module conversion step - explicitify
jakebailey b6c0538
Generated module conversion step - stripNamespaces
jakebailey 07758c0
Generated module conversion step - inlineImports
jakebailey 5f5ccc9
Generated module conversion step - .git-ignore-blame-revs
jakebailey d5274a9
Add gitlens settings suggestion
jakebailey 180554c
Make processDiagnosticMessages generate a module
jakebailey 39e27fb
Fix up linting, make lint clean
jakebailey 8bd5e54
Undo changes needed to load codebase into ts-morph
jakebailey 231fa27
Add JSDoc eslint rule
jakebailey d12116d
Fix all internal JSDoc comments
jakebailey 01e5200
Convert require calls to imports
jakebailey 6dfa429
Remove typescriptServices, protocol.d.ts, typescript_standalone.d.ts
jakebailey 36e2944
Get codebase building pre bundling
jakebailey 4139807
Add build via esbuild
jakebailey c651422
Add dts bundling
jakebailey dc92488
Consolidate checks that test if the current environment is Node
jakebailey 776907c
Add ts to globalThis in run.js for convenience during debugging
jakebailey f45cc45
Rename Gulpfile to Herebyfile for improved git diff
jakebailey 3cd72e7
Change build system to hereby
jakebailey d0db80e
Update baselines for corrected line endings in lib files
jakebailey 394c4ae
Use jsonc-parser instead of LKG compiler in build
jakebailey aec2761
Modernize localize script, use new XML library
jakebailey bbc906d
Don't use needsUpdate for quick tasks
jakebailey acfe7ac
Remove mkdirp
jakebailey 8486229
Export ts namespace from tsserver for hacky-post patching
jakebailey db440d8
Directly import namespaces for improved esbuild output
jakebailey c5a9573
Ensure ts object passed to plugins contains deprecatedCompat declarat…
jakebailey 25a85d1
Move compiler-debug into Debug namespace, which allows the compiler t…
jakebailey 43cf787
Remove Promise redeclaration
jakebailey b9e24ee
Remove globalThisShim and globalThis modification for TypeScriptServi…
jakebailey 8edbf8d
Disable slow CodeQL queries
jakebailey 7988e40
Remove outFiles from launch.json
jakebailey da6f067
Remove dynamicImport and setDynamicImport
jakebailey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
**/node_modules/** | ||
/built/local/** | ||
/built/** | ||
/tests/** | ||
/lib/** | ||
/src/lib/*.generated.d.ts | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Generated module conversion step - inlineImports | ||
07758c08ab72481885e662c98d67a0e3a071b032 | ||
# Generated module conversion step - stripNamespaces | ||
b6c053882696af8ddd94a600429f30584d303d7f | ||
# Generated module conversion step - explicitify | ||
9a0b85ce2a3f85f498ab2c05474b4c0b96b111c9 | ||
# Generated module conversion step - unindent | ||
94724a8c2e68a4c7e267072ca79971f317c45e4a |
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
git config user.email "[email protected]" | ||
git config user.name "TypeScript Bot" | ||
npm ci | ||
gulp LKG | ||
npx hereby LKG | ||
npm test | ||
git diff | ||
git add ./lib | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const cp = require("child_process"); | ||
const path = require("path"); | ||
const chalk = require("chalk"); | ||
|
||
const argv = process.argv.slice(2); | ||
|
||
// --tasks-simple is used by VS Code to infer a task list; try and keep that working. | ||
if (!argv.includes("--tasks-simple")) { | ||
console.error(chalk.yellowBright("Warning: using gulp shim; please consider running hereby directly.")); | ||
} | ||
|
||
const args = [ | ||
...process.execArgv, | ||
path.join(__dirname, "node_modules", "hereby", "bin", "hereby.js"), | ||
...argv, | ||
]; | ||
|
||
const { status } = cp.spawnSync(process.execPath, args, { stdio: "inherit" }); | ||
process.exit(status ?? 1); |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.