Browse Source

use ld-check-dependencies

Gregg Tavares 5 years ago
parent
commit
9ef4f4651a
1 changed files with 0 additions and 10 deletions
  1. 0 10
      Gruntfile.js

+ 0 - 10
Gruntfile.js

@@ -8,16 +8,6 @@ const semver = require('semver');
 const liveEditor = require('@gfxfundamentals/live-editor');
 const liveEditor = require('@gfxfundamentals/live-editor');
 const liveEditorPath = path.dirname(require.resolve('@gfxfundamentals/live-editor'));
 const liveEditorPath = path.dirname(require.resolve('@gfxfundamentals/live-editor'));
 
 
-function dependenciesNeedUpdating() {
-  const childProcess = require('child_process');
-  const result = JSON.parse(childProcess.execSync('npm install --dry-run --json').toString());
-  return result.added.length > 0 || result.updated.length > 0 || result.removed > 0;
-}
-
-if (dependenciesNeedUpdating()) {
-  throw new Error('dependencies need updating. Please run `npm install`');
-}
-
 module.exports = function(grunt) {
 module.exports = function(grunt) {
 
 
   require('load-grunt-tasks')(grunt);
   require('load-grunt-tasks')(grunt);