Skip to content

Commit a3e182a

Browse files
committed
fix: read config file relative to command path
1 parent 1255133 commit a3e182a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cocreate/docs",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Documentation generator ",
55
"keywords": [
66
"cocreate",

src/html_store.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
const fs = require('fs');
2-
const { sources, socket} = require('../html_config.json');
2+
const path = require('fs');
3+
4+
const { sources, socket} = require(path.resolve(process.cwd(), 'html_config.json'));
35

46
const {CoCreateSocketInit, CoCreateUpdateDocument } = require("./socket_process.js")
57

0 commit comments

Comments
 (0)