mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Move to lockfileVersion@1 of npm v5
This commit is contained in:
@ -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'
|
||||
});
|
||||
|
Reference in New Issue
Block a user