pdf2epub 0.1.0 → 0.1.1
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/lib/cli.js
CHANGED
|
@@ -80,7 +80,12 @@ function runUpstream(args) {
|
|
|
80
80
|
const python = setup.ensureInstalled();
|
|
81
81
|
const res = spawnSync(python, [paths.mainPy, ...args], {
|
|
82
82
|
stdio: 'inherit',
|
|
83
|
-
env: {
|
|
83
|
+
env: {
|
|
84
|
+
...process.env,
|
|
85
|
+
PYTHONUNBUFFERED: process.env.PYTHONUNBUFFERED || '1',
|
|
86
|
+
// The vendored source may live in a read-only global node_modules; keep it pristine.
|
|
87
|
+
PYTHONDONTWRITEBYTECODE: process.env.PYTHONDONTWRITEBYTECODE || '1',
|
|
88
|
+
},
|
|
84
89
|
});
|
|
85
90
|
if (res.error) throw res.error;
|
|
86
91
|
if (res.signal) return 128 + (res.signal === 'SIGINT' ? 2 : 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pdf2epub",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "CLI wrapper that installs and runs overcuriousity/pdf2epub: convert PDF files to structured Markdown and EPUB with AI layout detection (marker-pdf). Bootstraps its own Python environment on first run.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pdf",
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
"bin",
|
|
26
26
|
"lib",
|
|
27
27
|
"vendor",
|
|
28
|
+
"!**/__pycache__",
|
|
29
|
+
"!**/*.pyc",
|
|
28
30
|
"README.md",
|
|
29
31
|
"LICENSE"
|
|
30
32
|
],
|
|
Binary file
|
|
Binary file
|
|
Binary file
|