Skip to content

Instantly share code, notes, and snippets.

View meseck's full-sized avatar
👐

Erik Meseck meseck

👐
View GitHub Profile
@kentcdodds
kentcdodds / package-exact.js
Last active December 7, 2024 14:09
make your package.json dependencies be the exact version that's in your node_modules currently
/* jshint node:true */
/* eslint-env node */
/*
* This will look at the current version of all of your dependencies and update your package.json
* with the specific version that you currently have in node_modules. This will save you from the
* sadness that is: DEPENDENCY MANAGEMENT
*
* Place this file in a folder that's a a sibling to your package.json and node_modules
* Then simply run: node scripts/package-strict