@holo-js/kernel 0.3.23 → 0.3.24
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/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -81,7 +81,7 @@ function createRuntimeLifecycle(contributions) {
|
|
|
81
81
|
|
|
82
82
|
// src/plugins.ts
|
|
83
83
|
import { createRequire } from "module";
|
|
84
|
-
import { readFile } from "fs/promises";
|
|
84
|
+
import { readFile, realpath } from "fs/promises";
|
|
85
85
|
import { dirname, isAbsolute, join, relative, resolve } from "path";
|
|
86
86
|
import { pathToFileURL } from "url";
|
|
87
87
|
function isRecord(value) {
|
|
@@ -176,7 +176,7 @@ async function loadHoloPluginDefinitions(projectRoot, packageNames, options = {}
|
|
|
176
176
|
}
|
|
177
177
|
const entry = normalizeString(manifest.holo.plugin);
|
|
178
178
|
assertPackageRelativePath(packageName, entry);
|
|
179
|
-
const packageRoot = dirname(packageJsonPath);
|
|
179
|
+
const packageRoot = await realpath(dirname(packageJsonPath));
|
|
180
180
|
const entryPath = resolve(packageRoot, entry);
|
|
181
181
|
const relativeEntry = relative(packageRoot, entryPath);
|
|
182
182
|
if (relativeEntry.startsWith("..") || isAbsolute(relativeEntry)) {
|