@inlang/core
Advanced tools
Comparing version 0.3.0-prerelease.4 to 0.3.0-prerelease.5
@@ -20,4 +20,4 @@ import type { fs } from "memfs"; | ||
export declare function initialize$import(args: { | ||
/** the directory from which the import should be resolved */ | ||
basePath: string; | ||
/** the path from which the import should be resolved */ | ||
workingDirectory: string; | ||
/** the fs from which the file can be read */ | ||
@@ -37,4 +37,4 @@ fs: typeof fs.promises; | ||
declare function $import(uri: string, environment: { | ||
/** current working directory from which the import should be resolved */ | ||
basePath: string; | ||
/** directory from which the import should be resolved */ | ||
workingDirectory: string; | ||
/** the fs from which the file can be read */ | ||
@@ -41,0 +41,0 @@ fs: typeof fs.promises; |
@@ -29,3 +29,3 @@ /** | ||
else { | ||
moduleAsText = (await environment.fs.readFile(`${environment.basePath}/${uri}`, "utf-8")); | ||
moduleAsText = (await environment.fs.readFile(`${environment.workingDirectory}/${uri}`, "utf-8")); | ||
} | ||
@@ -32,0 +32,0 @@ const moduleWithMimeType = "data:application/javascript;base64," + btoa(moduleAsText); |
{ | ||
"name": "@inlang/core", | ||
"type": "module", | ||
"version": "0.3.0-prerelease.4", | ||
"version": "0.3.0-prerelease.5", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "publishConfig": { |
26621