Skip to content

Commit 107bd0d

Browse files
committed
chore(option): require package.json
1 parent 6340124 commit 107bd0d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/options.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"use strict";
99
const logger = require("winston-color");
1010
const path = require("path");
11-
const cfg = require("../package").gitbook.properties;
11+
const cfg = require("../package.json").gitbook.properties;
1212

1313
export const defaultTemplateMap = Object.freeze({
1414
default: path.join(__dirname, "..", "templates", "default-template.hbs"),
@@ -48,20 +48,20 @@ export const defaultKeyValueMap = Object.freeze({
4848
unindent: defaultBookOptionsMap.unindent
4949
});
5050

51-
/**
51+
/**
5252
* Convert string value to value type.
5353
* @param {string} valtype
5454
*/
5555
export function convertValue(valstr, valtype){
5656
// remove quotes
57-
if ((valtype === "boolean") || (valtype === "number")) {
57+
if ((valtype === "boolean") || (valtype === "number")) {
5858
return JSON.parse(valstr);
5959
}
6060
return valstr;
6161
}
6262

6363
/**
64-
* Check that maps types equal to default key value map.
64+
* Check that maps types equal to default key value map.
6565
* @param {object} kvMap
6666
* @param {string} funcLabel
6767
*/
@@ -79,7 +79,7 @@ export function checkMapTypes(kvMap, funcLabel) {
7979
}
8080

8181
/**
82-
* Check that maps types equal to default key value map.
82+
* Check that maps types equal to default key value map.
8383
* @param {{template?: string}} options
8484
* @return {object} kvMap
8585
*/

0 commit comments

Comments
 (0)