We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f78398c commit 70b88acCopy full SHA for 70b88ac
lib/commands.ts
@@ -150,13 +150,11 @@ export async function uninstall(
150
}
151
} else if (lockfile?.[name]) {
152
// if not, remove the dependency from the lockfile
153
- // @ts-expect-error Type 'undefined' is not assignable to type 'VendorLock'
154
- lockfile[name] = undefined;
+ delete lockfile[name];
155
await fs.writeFile(lockfilePath, JSON.stringify(lockfile, null, 2));
156
157
158
- // @ts-expect-error Type 'undefined' is not assignable to type 'VendorDependency'
159
- configFile.vendorDependencies[name] = undefined;
+ delete configFile.vendorDependencies[name];
160
161
await writeConfig({
162
configFile,
0 commit comments