Skip to content

Commit

Permalink
Read version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwlange committed Jan 31, 2019
1 parent e05271b commit fe3c036
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@
*/
'use strict';

const fs = require('fs');
const path = require('path');
const fs = require('fs')
const path = require('path')
const package_json = require('../package.json')

(() => {
;(() => {
const pkg = {
scripts: {
server: "node node_modules/liquidcore-cli/lib/cli.js server",
bundler: "node node_modules/liquidcore-cli/lib/cli.js bundle"
},
dependencies: {
"react-native": "0.56.0",
"liquidcore-cli": "^0.4.2",
"liquidcore-cli": "^" + package_json.version,
"babel-preset-env": "^1.7.0",
"babel-polyfill": "^6.26.0"
}
Expand Down

0 comments on commit fe3c036

Please sign in to comment.