@inlang/core
Advanced tools
Comparing version 0.3.0-prerelease.6 to 0.3.0-prerelease.7
@@ -20,4 +20,12 @@ import type { fs } from "memfs"; | ||
export declare function initialize$import(args: { | ||
/** the path from which the import should be resolved */ | ||
workingDirectory: string; | ||
/** | ||
* The path from which the import should be resolved. | ||
* | ||
* ! Be careful when using this argument, as it can lead to unexpected behavior. | ||
* The working directory for fs is not changed! | ||
* | ||
* @deprecated only use when you absolutely need to (for example in testing). Will likely be removed in the future. | ||
* | ||
*/ | ||
workingDirectory?: string; | ||
/** the fs from which the file can be read */ | ||
@@ -24,0 +32,0 @@ fs: typeof fs.promises; |
@@ -10,3 +10,3 @@ /** | ||
// resembles a native import api | ||
return (uri) => $import(uri, args); | ||
return (uri) => $import(uri, { workingDirectory: "/", ...args }); | ||
} | ||
@@ -13,0 +13,0 @@ /** |
{ | ||
"name": "@inlang/core", | ||
"type": "module", | ||
"version": "0.3.0-prerelease.6", | ||
"version": "0.3.0-prerelease.7", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "publishConfig": { |
@@ -0,1 +1,3 @@ | ||
Developer-first localization infrastructure that is built on git. Your git repository is the single source of truth for localization for collaboration and automation. | ||
<div> | ||
@@ -5,14 +7,9 @@ <p align="center"> | ||
</p> | ||
<h2 align="center"> | ||
Developer-first localization infrastructure built on git | ||
</h2> | ||
<h4 align="center"> | ||
<!-- <a href="https://inlang.dev/docs/getting-started" target="_blank">Get Started</a> | ||
· --> | ||
<a href="https://github.com/inlang/inlang/discussions" target="_blank">Community</a> · <a href="https://twitter.com/inlangHQ" target="_blank">Twitter</a> | ||
<a href="https://github.com/inlang/inlang/discussions" target="_blank">Discussions</a> · <a href="https://twitter.com/inlangHQ" target="_blank">Twitter</a> | ||
</h4> | ||
</div> | ||
Inlang provides developer-first localization infrastructure that is built on git. Your git repository is the single source of truth for localization. The infrastructure consists of dev tools, an editor to manage translations, and automation via CI/CD. | ||
# @inlang/core | ||
@@ -19,0 +16,0 @@ |
26878
705
26