-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Refactor snapshot build #2825
Merged
Merged
Refactor snapshot build #2825
Changes from 28 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
3a54c03
Refactor snapshots
ry bbfc2a9
fix test
ry 6b4cd64
fix check in appveyor
ry 1919273
Fix some tests
ry 6f6e995
remove plugins.d.ts
ry 697139b
fix benchmark_test
ry 641c4f1
Fix Deno.build values
ry 2f4540e
lint
ry 98e7819
fix sendAsyncStackTrace
ry b9791f9
Fix Deno.version
ry 907cfbe
Fix Deno.pid and Deno.noColor
ry ea8af48
maybe fix appveyor
ry c1f7c95
appveyor
ry 4908932
Remove old core.d.ts files
ry eef8854
clean up
ry f1a6431
clean up
ry 6bd0952
clean up
ry 5ece610
update lock files
ry 8566443
appveyor: remove abs path check to workaround
ry f65c1db
review comments
ry 26a8ef4
review comments
ry f2cc2e5
Merge branch 'master' into deno_typescript
ry bf7e66c
bartek review comments
ry 82d16a3
Remove ~ 1 million lines of code from node_modules
ry 4331832
Add cli_snapshots readme
ry 6a64183
bert review: use generated_source_dir
ry e9d5622
bert review: Remove commented out code
ry 2298ef6
bert review: add warning re op_id sync
ry 7a98c39
bert review: get_assert2 returns NotFound err
ry f2c4941
bert review: remove unnecessary comments part 2
ry 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
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 |
---|---|---|
|
@@ -3,4 +3,6 @@ members = [ | |
"cli", | ||
"core", | ||
"tools/hyper_hello", | ||
"deno_typescript", | ||
"cli_snapshots", | ||
] |
This file contains 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 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 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,59 +1,8 @@ | ||
static DENO_RUNTIME: &str = include_str!("../js/lib.deno_runtime.d.ts"); | ||
|
||
macro_rules! inc { | ||
($e:expr) => { | ||
Some(include_str!(concat!( | ||
"../third_party/node_modules/typescript/lib/", | ||
$e | ||
))) | ||
}; | ||
} | ||
|
||
pub fn get_source_code(name: &str) -> Option<&'static str> { | ||
match name { | ||
"lib.deno_runtime.d.ts" => Some(DENO_RUNTIME), | ||
"lib.es2015.collection.d.ts" => inc!("lib.es2015.collection.d.ts"), | ||
"lib.es2015.core.d.ts" => inc!("lib.es2015.core.d.ts"), | ||
"lib.es2015.d.ts" => inc!("lib.es2015.d.ts"), | ||
"lib.es2015.generator.d.ts" => inc!("lib.es2015.generator.d.ts"), | ||
"lib.es2015.iterable.d.ts" => inc!("lib.es2015.iterable.d.ts"), | ||
"lib.es2015.promise.d.ts" => inc!("lib.es2015.promise.d.ts"), | ||
"lib.es2015.proxy.d.ts" => inc!("lib.es2015.proxy.d.ts"), | ||
"lib.es2015.reflect.d.ts" => inc!("lib.es2015.reflect.d.ts"), | ||
"lib.es2015.symbol.d.ts" => inc!("lib.es2015.symbol.d.ts"), | ||
"lib.es2015.symbol.wellknown.d.ts" => { | ||
inc!("lib.es2015.symbol.wellknown.d.ts") | ||
} | ||
"lib.es2016.array.include.d.ts" => inc!("lib.es2016.array.include.d.ts"), | ||
"lib.es2016.d.ts" => inc!("lib.es2016.d.ts"), | ||
"lib.es2017.d.ts" => inc!("lib.es2017.d.ts"), | ||
"lib.es2017.intl.d.ts" => inc!("lib.es2017.intl.d.ts"), | ||
"lib.es2017.object.d.ts" => inc!("lib.es2017.object.d.ts"), | ||
"lib.es2017.sharedmemory.d.ts" => inc!("lib.es2017.sharedmemory.d.ts"), | ||
"lib.es2017.string.d.ts" => inc!("lib.es2017.string.d.ts"), | ||
"lib.es2017.typedarrays.d.ts" => inc!("lib.es2017.typedarrays.d.ts"), | ||
"lib.es2018.d.ts" => inc!("lib.es2018.d.ts"), | ||
"lib.es2018.asynciterable.d.ts" => inc!("lib.es2018.asynciterable.d.ts"), | ||
"lib.es2018.intl.d.ts" => inc!("lib.es2018.intl.d.ts"), | ||
"lib.es2018.promise.d.ts" => inc!("lib.es2018.promise.d.ts"), | ||
"lib.es2018.regexp.d.ts" => inc!("lib.es2018.regexp.d.ts"), | ||
"lib.es2019.d.ts" => inc!("lib.es2019.d.ts"), | ||
"lib.es2019.array.d.ts" => inc!("lib.es2019.array.d.ts"), | ||
"lib.es2019.object.d.ts" => inc!("lib.es2019.object.d.ts"), | ||
"lib.es2019.string.d.ts" => inc!("lib.es2019.string.d.ts"), | ||
"lib.es2019.symbol.d.ts" => inc!("lib.es2019.symbol.d.ts"), | ||
"lib.es2020.d.ts" => inc!("lib.es2020.d.ts"), | ||
"lib.es2020.string.d.ts" => inc!("lib.es2020.string.d.ts"), | ||
"lib.es2020.symbol.wellknown.d.ts" => { | ||
inc!("lib.es2020.symbol.wellknown.d.ts") | ||
} | ||
"lib.es5.d.ts" => inc!("lib.es5.d.ts"), | ||
"lib.esnext.d.ts" => inc!("lib.esnext.d.ts"), | ||
"lib.esnext.array.d.ts" => inc!("lib.esnext.array.d.ts"), | ||
"lib.esnext.asynciterable.d.ts" => inc!("lib.esnext.asynciterable.d.ts"), | ||
"lib.esnext.bigint.d.ts" => inc!("lib.esnext.bigint.d.ts"), | ||
"lib.esnext.intl.d.ts" => inc!("lib.esnext.intl.d.ts"), | ||
"lib.esnext.symbol.d.ts" => inc!("lib.esnext.symbol.d.ts"), | ||
_ => None, | ||
_ => deno_typescript::get_asset(name), | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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.
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.
Note existing snapshot infrastructure is removed.