Menu

One uncommitted deletion took all 21 scripts and the whole installer config out of our app, and the only thing that can notice is a lockfile
📰

One uncommitted deletion took all 21 scripts and the whole installer config out of our app, and the only thing that can notice is a lockfile

DEV Community: node·Daniel Pertu·6 days ago
#LOHyB6QI
#devtonodejs#devto#dev#build#pnpm
Long article (1121 words) — no AI summary yet.
Reading 0:00
15s threshold

Notifio is two things in one repository: an Electron app that runs on your own machine, and the website that sells it. I was measuring something else entirely when git status showed one modified file and I looked at the diff.

app/package.json | 133 +------------------------------------------------------ 1 file changed, 1 insertion(+), 132 deletions(-)

Enter fullscreen mode

Exit fullscreen mode

The committed file is 155 lines and 4,603 bytes. The one in my working tree is 23 lines and 512 bytes , and it ends without a newline, which is how I know a program wrote it rather than me. I have no idea which program. What interests me is the hour I spent afterwards failing to find anything that would have told me.

What left, and what stayed

Still there Gone

name , productName , version all 21 scripts

description , author , license all 14 devDependencies

main: "dist-ts/main.js" the entire build block

6 dependencies 5 keywords

pnpm.approvedBuilds

The build block is the one that matters.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.