@inlang/paraglide-js
Version:
[](https://www.npmjs.com/package/@inlang/paraglide-js) [ {
const require = createRequire(import.meta.url);
const packageJsonPath = require.resolve("typescript/package.json");
const tscJsPath = path.join(path.dirname(packageJsonPath), "lib", "tsc.js");
// `lib/tsc.js` is internal package layout rather than a public export, so
// fail with a pointed error if a future TypeScript version moves it.
if (existsSync(tscJsPath) === false) {
throw new Error(`Paraglide's "emitTsDeclarations" option could not locate TypeScript's "tsc" CLI at ${tscJsPath}. As a workaround, install TypeScript 5 or 6, or disable "emitTsDeclarations".`);
}
return tscJsPath;
}
//# sourceMappingURL=resolve-tsc-js-path.js.map