update-gatsby-dependencies
Advanced tools
Comparing version
@@ -13,8 +13,18 @@ #!/usr/bin/env node | ||
if (argv.install !== undefined || argv.i !== undefined) { | ||
console.log(`installing dependencies...`); | ||
await updater.installDependencies(); | ||
} else if (argv.package !== undefined || argv.p !== undefined) { | ||
console.log(`updating your package.json file...`); | ||
await updater.updatePackageJSON(); | ||
} else { | ||
console.log( | ||
`\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ install command ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~` | ||
); | ||
updater.outputInstallCommand(); | ||
console.log(`add -i or --install to install the dependencies`); | ||
console.log( | ||
`\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~` | ||
); | ||
console.log( | ||
`\n Pro Tip: add -i or --install to install the dependencies automatically` | ||
); | ||
} | ||
@@ -21,0 +31,0 @@ } catch (error) { |
{ | ||
"name": "update-gatsby-dependencies", | ||
"version": "2.0.0-beta", | ||
"version": "2.0.0-beta-1", | ||
"description": "A package that will update gatsby v4 dependencies from alpha to beta", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -79,5 +79,5 @@ const NpmApi = require("npm-api"); | ||
subprocess.on("close", (code) => { | ||
let message = `installation finished`; | ||
let message = `\n~installation complete :)~`; | ||
if (code) | ||
message = `it looks like there may have been some problems in the installation process, check your config and try again`; | ||
message = `\n~it looks like there may have been some problems in the installation process: \n - check your config and try again`; | ||
console.log(message); | ||
@@ -84,0 +84,0 @@ }); |
@@ -24,3 +24,3 @@ const { PACKAGE_FILE } = require("./constants"); | ||
console.log(`updating based on ${version} version`); | ||
console.log(`updating based on ${version}tag`); | ||
const isfindingPackage = Boolean( | ||
@@ -27,0 +27,0 @@ process.env.PACKAGE_NAME || process.env.PACKAGE_TYPE |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9682
4.34%222
4.72%1
-50%