diff --git a/package.json b/package.json index 15d708a..01905d3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "npmize", "description": "Let's create an npm package without worrying about anything.", - "version": "1.0.1", + "version": "1.0.2", "bin": "./dist/index.js", "scripts": { "lab": "nodemon ./src/__lab.ts", diff --git a/src/__lab.ts b/src/__lab.ts index 9fe4fb8..a25968e 100644 --- a/src/__lab.ts +++ b/src/__lab.ts @@ -2,8 +2,6 @@ console.clear() import app from './main' -app.start(['-v']) - // app.start(['init', '--name', '../npmize-test']) // app.start(['dev', '../npmize-test', '--node']) // app.start(['build', '../npmize-test']) diff --git a/src/utils.ts b/src/utils.ts index a5ae9c9..d818ab7 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -14,10 +14,7 @@ export function cleanDir(dir: string, createDir = true) { } export function getVersion() { - const { version } = packageJSON.read(path.join(__dirname, '../')) - - if (version) console.log(`v${version}`) - else console.log('No version found in package.json') + return packageJSON.read(path.join(__dirname, '../')).version } export function moveFiles(