Skip to content

Commit

Permalink
🐛 FIX: Extraneous pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadawais committed Apr 24, 2020
1 parent 4bd2bca commit b4e2db9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
Binary file added .github/show.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,11 @@
"format": "prettier --write \"./**/*.{js,json}\""
},
"dependencies": {
"await-to-js": "^2.1.1",
"chalk": "^4.0.0",
"cli-check-node": "^1.3.0",
"cli-handle-error": "^4.1.0",
"cli-handle-unhandled": "^1.1.0",
"cli-welcome": "^1.4.0",
"meow": "^6.1.0",
"update-notifier": "^4.1.0"
"meow": "^6.1.0"
}
}
8 changes: 1 addition & 7 deletions utils/init.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
const welcome = require('cli-welcome');
const checkNode = require('cli-check-node');
const pkgJSON = require('./../package.json');
const updateNotifier = require('update-notifier');
const unhandledError = require('cli-handle-unhandled');

module.exports = async () => {
unhandledError();
checkNode(`12`);
checkNode(`10`);
welcome(`ramadan-cli`, `by Awais.dev\n${pkgJSON.description}`, {
bgColor: `#81EF96`,
color: `#FFFFFF`,
bold: true,
clear: true,
version: `v${pkgJSON.version}`
});
updateNotifier({
pkg: pkgJSON,
shouldNotifyInNpmScript: true,
updateCheckInterval: 1000 * 60 * 60 * 24 * 7 // 1 week.
}).notify({isGlobal: true});
};

0 comments on commit b4e2db9

Please sign in to comment.