From f2e30a6f7999fa6ce4ab789266927e3abbb48e3f Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Tue, 8 Aug 2023 10:07:29 -0700 Subject: refactor(cli): move `snapshot_from_lockfile` function to `deno_npm` (#20024) This commit moves `snapshot_from_lockfile` function to [deno_npm crate](https://github.com/denoland/deno_npm). This allows this function to be called outside Deno CLI (in particular, Deno Deploy). --- cli/tests/integration/npm_tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/tests') diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs index c44335efc..fb8d88dca 100644 --- a/cli/tests/integration/npm_tests.rs +++ b/cli/tests/integration/npm_tests.rs @@ -1915,7 +1915,8 @@ fn reload_info_not_found_cache_but_exists_remote() { "error: failed reading lockfile '[WILDCARD]deno.lock'\n", "\n", "Caused by:\n", - " Could not find '@denotest/esm-basic@1.0.0' specified in the lockfile.\n" + " 0: Could not find '@denotest/esm-basic@1.0.0' specified in the lockfile.\n", + " 1: Could not find version '1.0.0' for npm package '@denotest/esm-basic'.\n", )); output.assert_exit_code(1); -- cgit v1.2.3