Skip to content

Commit

Permalink
Delete lockfile instead of global ignore (#1434)
Browse files Browse the repository at this point in the history
* Will allow audit'ing again

Auto-merge
  • Loading branch information
Martii authored Jun 16, 2018
1 parent 33bc509 commit a228ea7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

File renamed without changes.
15 changes: 15 additions & 0 deletions dev/preinit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

// Define some pseudo module globals
var isPro = require('../libs/debug').isPro;
var isDev = require('../libs/debug').isDev;
var isDbg = require('../libs/debug').isDbg;

//
// NOTE: Only use native *node* `require`s in this file
// since dependencies may not be installed yet
//
var fs = require('fs');

console.log('Attempting to delete `package-lock.json`');
fs.unlinkSync('./package-lock.json');
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
"license": "(GPL-3.0 AND GFDL-1.3)",
"scripts": {
"start": "node app.js",
"postinstall": "node dev/init.js"
"preinstall": "node dev/preinit.js",
"postinstall": "node dev/postinit.js"
},
"engines": {
"node": ">=8.9.0 <9.0.0",
Expand Down

0 comments on commit a228ea7

Please sign in to comment.