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:
parent
31f74180fe
commit
152a2c3566
3 changed files with 2 additions and 10 deletions
|
@ -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);
|
||||
|
|
|
@ -179,10 +179,6 @@ impl NpmCache {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn as_readonly(&self) -> ReadonlyNpmCache {
|
||||
self.readonly.clone()
|
||||
}
|
||||
|
||||
pub async fn ensure_package(
|
||||
&self,
|
||||
id: &NpmPackageId,
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue