Move to lockfileVersion@1 of npm v5

This commit is contained in:
SleepWalker 2017-08-01 20:26:20 +03:00
parent 8654b04db4
commit 36b7f4459c
3 changed files with 2902 additions and 3151 deletions

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,6 @@
"start": "npm run clean && npm run build:dll && webpack-dev-server --progress --colors",
"clean": "rm -rf dist/",
"up": "npm update",
"lockDeps": "npm shrinkwrap --dev",
"test": "npm run build:dll && karma start ./karma.conf.js",
"lint": "eslint ./src",
"flow": "flow",

View File

@ -11,14 +11,14 @@ const webpackConfig = require('../webpack.dll.config.js');
const compiler = webpack(webpackConfig);
Promise.all([
stat(__dirname + '/../npm-shrinkwrap.json'),
stat(__dirname + '/../package-lock.json'),
stat(__dirname + '/../dll/vendor.json')
])
.then(function(stats) {
const shrinkwrap = new Date(stats[0].mtime);
const lockFile = new Date(stats[0].mtime);
const dll = new Date(stats[1].mtime);
if (dll < shrinkwrap) {
if (dll < lockFile) {
return Promise.reject({
code: 'OUTDATED'
});