hdoc-tools 0.7.10 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hdoc-build.js +2 -2
- package/package.json +1 -1
package/hdoc-build.js
CHANGED
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
|
|
105
105
|
// Copy files from book into _work-docId folder
|
|
106
106
|
try {
|
|
107
|
-
fs.copySync(path.join(source_path, docId), path.join(work_path));
|
|
107
|
+
fs.copySync(path.join(source_path, docId), path.join(work_path, docId));
|
|
108
108
|
//fs.copyFileSync(path.join(source_path, 'hdocbook-project.json'), path.join(work_path, 'hdocbook-project.json'));
|
|
109
109
|
//fs.copyFileSync(path.join(source_path, 'LICENSE'), path.join(work_path, 'LICENSE'));
|
|
110
110
|
//fs.copyFileSync(path.join(source_path, 'README.md'), path.join(work_path, 'README.md'));
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
console.log(` Failed to convert: ${conversion_failed}`);
|
|
126
126
|
|
|
127
127
|
const zip_path = path.join(work_path, docId + '.zip');
|
|
128
|
-
zipper.sync.zip(work_path).compress().save(zip_path);
|
|
128
|
+
zipper.sync.zip(path.join(work_path, docId)).compress().save(zip_path);
|
|
129
129
|
|
|
130
130
|
console.log(` ZIP Creation Success: ${zip_path}\r\n`);
|
|
131
131
|
console.log('Build Complete\r\n');
|