Comparing version 0.1.0 to 0.1.1
@@ -7,5 +7,4 @@ #!/usr/bin/env node | ||
const pkg = require('./package.json') | ||
const fs = require('fs') | ||
const operator = require('./src').operator | ||
const api = require('./api') | ||
@@ -20,9 +19,5 @@ program | ||
console.log(chalk.blue('build destination path:'), buildPath) | ||
fs.readFile(JSONPath, (err, data) => { | ||
if (err) throw err | ||
// insert logic | ||
operator(buildPath, JSON.parse(data)) | ||
}) | ||
api(JSONPath, buildPath) | ||
}) | ||
program.parse(process.argv) |
{ | ||
"name": "lazysql", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": | ||
"An unopinionated Sequelize boilerplate builder, with models and associations.", | ||
"main": "index.js", | ||
"main": "api.js", | ||
"repository": "git@github.com:brick-layers/lazySQL.git", | ||
@@ -16,2 +16,5 @@ "author": "brick-layers", | ||
}, | ||
"bin": { | ||
"lazysql": "./index.js" | ||
}, | ||
"devDependencies": { | ||
@@ -18,0 +21,0 @@ "eslint": "^4.10.0", |
43245
14
199