Skip to content

Instantly share code, notes, and snippets.

View aharris's full-sized avatar

Ashton Harris aharris

View GitHub Profile
@aharris
aharris / package-exact.js
Last active June 12, 2018 15:26 — forked from kentcdodds/package-exact.js
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 at the same level as your package.json and node_modules
* Then simply run: node ./package-strict
$beccapurple: #663399;
$turquoise: #1abc9c;
$greenSea: #16a085;
$emerland: #2ecc71;
$nephritis: #27ae60;
$peterRiver: #3498db;
$belizeHole: #2980b9;
$amethyst: #9b59b6;
$wisteria: #8e44ad;
$wetAsphalt: #34495e;