mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-16 21:22:59 +05:30
Move to lockfileVersion@1 of npm v5
This commit is contained in:
parent
8654b04db4
commit
36b7f4459c
5884
npm-shrinkwrap.json → package-lock.json
generated
5884
npm-shrinkwrap.json → package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||
|
@ -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'
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user