multiplane 0.3.10 → 0.3.13
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/package.json +1 -1
- package/src/events.mjs +3 -1
package/package.json
CHANGED
package/src/events.mjs
CHANGED
|
@@ -153,7 +153,9 @@ export async function runCommand(command, shot, options, action, job = true) {
|
|
|
153
153
|
if (job || ['lint', 'inspect'].includes(command)) {
|
|
154
154
|
if (typeof shot !== 'string' || !shot.trim()) throw invalidOption('shot', 'Provide a shot HTML path.');
|
|
155
155
|
if (options.root !== undefined && typeof options.root !== 'string') throw invalidOption('--root', '--root must be a path.');
|
|
156
|
-
|
|
156
|
+
// Persist the cwd-relative root before desktop consumers lose the original cwd.
|
|
157
|
+
options.root = path.resolve(options.root ?? process.cwd());
|
|
158
|
+
shot = path.resolve(options.root, shot);
|
|
157
159
|
}
|
|
158
160
|
const positive = ['scale', 'render-scale', 'fps', 'workers', 'motion-blur', 'max-motion-blur', 'every', 'max-bitrate'];
|
|
159
161
|
for (const key of [...positive, 'from', 'to', 'shutter', 'grain', 'adaptive-blur', 'audio-offset', 'wait']) {
|