This file ( 1kB ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
require('corifeus-utils');
const gruntUtil = require('../utils');
const cwd = process.cwd();
const path = require('path');
const upgrade = async (options) => {
const {grunt, gruntThis} = options;
const done = gruntThis.async();
try {
const command = {
cmd: path.resolve(`${cwd}/node_modules/.bin/ncu${gruntUtil.commandAddon}`),
args: [
'--upgradeAll',
`--packageFile ` + path.resolve(`${cwd}/package.json`),
]
}
// grunt.log.writeln(`Executing`, JSON.stringify(command, null, 4))
await gruntUtil.spawn(options, command)
await gruntUtil.spawn(options, {
cmd: `${cwd}/node_modules/.bin/npm${gruntUtil.commandAddon}`,
args: [
'install',
'--non-interactive',
'--verbose',
//'--no-progress',
]
})
done();
} catch (error) {
done(error)
}
}
module.exports = upgrade;