Files
bun.sh/test/cli/install/migration/complex-workspace/reset.ts
dave caruso 1bf28e0d77 feat(install): automatically migrate package-lock.json to bun.lockb (#6352)
* work so far

* stuff

* a

* basics work

* stuff

* yoo

* build lockfile

* correct

* f

* a

* install fixture havent tested

* i made it worse

* lol

* be more reasonable

* make the test easier to pass because bun install doesn't handle obscure lockfile edge cases :/

* a

* works now

* ok

* a

* a

* cool

* nah

* fix stuff

* l

* a

* idfk

* LAME

* prettier errors

* does this fix tests?

* Add more safety checks to Integrity

* Add another check

* More careful lifetime handling

* Fix linux debugger issue

* a

* tmp dir and snapshot test

---------

Co-authored-by: Jarred SUmner <jarred@jarredsumner.com>
2023-10-11 02:27:07 -07:00

10 lines
559 B
TypeScript

import fs from "fs";
fs.rmSync("bun.lockb", { recursive: true, force: true });
fs.rmSync("node_modules", { recursive: true, force: true });
fs.rmSync("packages/body-parser/node_modules", { recursive: true, force: true });
fs.rmSync("packages/lol-package/node_modules", { recursive: true, force: true });
fs.rmSync("packages/second/node_modules", { recursive: true, force: true });
fs.rmSync("packages/with-postinstall/node_modules", { recursive: true, force: true });
fs.rmSync("packages/with-postinstall/postinstall.txt", { recursive: true, force: true });