handle null lockfiles better

This commit is contained in:
Ruben Fiszel
2024-02-07 22:15:42 +01:00
parent bf48ce423a
commit 31fb948c35
4 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1 @@
-- Add down migration script here

View File

@@ -0,0 +1 @@
-- Add up migration script here

View File

@@ -291,6 +291,13 @@ where
Ok(None)
}
fn visit_unit<E>(self) -> Result<Self::Value, E>
where
E: serde::de::Error,
{
Ok(None)
}
fn visit_seq<A>(self, mut seq: A) -> Result<Self::Value, A::Error>
where
A: serde::de::SeqAccess<'de>,

View File

@@ -72,7 +72,7 @@ async function push(opts: PushOptions, filePath: string) {
await requireLogin(opts);
const globalDeps = await findGlobalDeps();
await handleFile(filePath, workspace, [], undefined, false, opts, globalDeps);
await handleFile(filePath, workspace, [], undefined, opts, globalDeps);
log.info(colors.bold.underline.green(`Script ${filePath} pushed`));
}