Commit 4dbbbb4c authored by manhvu's avatar manhvu 😅

fix: 🚑 fix logger

1. fix logger
2.add rimraf package
parent 026cbe45
......@@ -5,12 +5,16 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"up-version": "yarn lerna version --conventional-commits"
"up-version": "yarn lerna version --conventional-commits",
"prebuild": "yarn rimraf **/*/dist",
"build": "echo 'build'"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"lerna": "^3.22.1"
}
"lerna": "^3.22.1",
"rimraf": "^3.0.2"
},
"dependencies": {}
}
'use strict';
module.exports = logger;
module.exports = createLogger;
function logger() {
// TODO
function createLogger() {
return {
log: (...p) => console.log(...p),
info: (...p) => console.info(...p),
debug: (...p) => console.debug(...p),
warn: (...p) => console.warn(...p),
error: (...p) => console.error(...p),
}
}
......@@ -4194,6 +4194,13 @@ rimraf@^2.5.4, rimraf@^2.6.2, rimraf@^2.6.3:
dependencies:
glob "^7.1.3"
rimraf@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
dependencies:
glob "^7.1.3"
run-async@^2.2.0:
version "2.4.1"
resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment