1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

chore: fixups for release

This commit runs the formatter and linter, and also backs
out some changes that build on top of features that are
not included in this release line.
This commit is contained in:
cjihrig 2022-09-15 12:36:46 -04:00
parent 31f74180fe
commit 152a2c3566
No known key found for this signature in database
GPG key ID: 7434390BDBE9B9C5
3 changed files with 2 additions and 10 deletions

View file

@ -132,7 +132,6 @@ fn print_cache_info(
) -> Result<(), AnyError> {
let deno_dir = &state.dir.root;
let modules_cache = &state.file_fetcher.get_http_cache_location();
let npm_cache = &state.npm_cache.as_readonly().get_cache_location();
let typescript_cache = &state.dir.gen_cache.location;
let registry_cache =
&state.dir.root.join(lsp::language_server::REGISTRIES_PATH);

View file

@ -179,10 +179,6 @@ impl NpmCache {
}
}
pub fn as_readonly(&self) -> ReadonlyNpmCache {
self.readonly.clone()
}
pub async fn ensure_package(
&self,
id: &NpmPackageId,

View file

@ -219,10 +219,7 @@ impl ProcState {
let parsed_source_cache =
ParsedSourceCache::new(Some(dir.dep_analysis_db_file_path()));
let registry_url = NpmRegistryApi::default_url();
let npm_cache = NpmCache::from_deno_dir(
&dir,
cli_options.cache_setting(),
);
let npm_cache = NpmCache::from_deno_dir(&dir, cli_options.cache_setting());
let api = NpmRegistryApi::new(
registry_url,
npm_cache.clone(),
@ -235,7 +232,7 @@ impl ProcState {
cli_options.unstable()
// don't do the unstable error when in the lsp
|| matches!(cli_options.sub_command(), DenoSubcommand::Lsp),
cli_options.no_npm(),
false,
);
let emit_options: deno_ast::EmitOptions = ts_config_result.ts_config.into();