0.2.6-dev: merge PR #547 by Xinglan233 — the scene-asset test resolves the repository root with fileURLToPath (on Windows the URL pathname doubled the drive letter)

This commit is contained in:
sganggs committed 2026-10-13 01:43:55 +08:00
commit 1d55c93e3a
1 file changed
+2 -1
+2 -1
View File
@@ -8,10 +8,11 @@ import assert from 'node:assert/strict';
import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { artPlan, formatSummary, isPlayerFile, isRefused } from '../tools/package.mjs';
import { localGaps, sceneInstallPlan } from '../tools/setup.mjs';
const ROOT = path.resolve(path.dirname(new URL(import.meta.url).pathname), '..');
const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
test('sceneInstallPlan: fetch only with a client and extractor deps; otherwise the metal board', () => {
const present = sceneInstallPlan({ hasScenes: true, client: false });