@marko/language-tools 2.5.41 → 2.5.42
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.js +9 -1
- package/dist/index.mjs +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3713,7 +3713,15 @@ function loadMeta(dir) {
|
|
|
3713
3713
|
let cached = metaByDir.get(dir);
|
|
3714
3714
|
if (!cached) {
|
|
3715
3715
|
const require2 = (0, import_module.createRequire)(import_path2.default.join(dir, "_.js"));
|
|
3716
|
-
const configPath =
|
|
3716
|
+
const configPath = (() => {
|
|
3717
|
+
try {
|
|
3718
|
+
return require2.resolve("@marko/compiler/config");
|
|
3719
|
+
} catch {
|
|
3720
|
+
return (0, import_module.createRequire)(require2.resolve("marko/package.json")).resolve(
|
|
3721
|
+
"@marko/compiler/config"
|
|
3722
|
+
);
|
|
3723
|
+
}
|
|
3724
|
+
})();
|
|
3717
3725
|
const config = interopDefault(require2(configPath));
|
|
3718
3726
|
const translatorPath = require2.resolve(config.translator);
|
|
3719
3727
|
cached = metaByTranslator.get(translatorPath);
|
package/dist/index.mjs
CHANGED
|
@@ -3676,7 +3676,15 @@ function loadMeta(dir) {
|
|
|
3676
3676
|
let cached = metaByDir.get(dir);
|
|
3677
3677
|
if (!cached) {
|
|
3678
3678
|
const require2 = createRequire(path2.join(dir, "_.js"));
|
|
3679
|
-
const configPath =
|
|
3679
|
+
const configPath = (() => {
|
|
3680
|
+
try {
|
|
3681
|
+
return require2.resolve("@marko/compiler/config");
|
|
3682
|
+
} catch {
|
|
3683
|
+
return createRequire(require2.resolve("marko/package.json")).resolve(
|
|
3684
|
+
"@marko/compiler/config"
|
|
3685
|
+
);
|
|
3686
|
+
}
|
|
3687
|
+
})();
|
|
3680
3688
|
const config = interopDefault(require2(configPath));
|
|
3681
3689
|
const translatorPath = require2.resolve(config.translator);
|
|
3682
3690
|
cached = metaByTranslator.get(translatorPath);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/language-tools",
|
|
3
3
|
"description": "Marko Language Tools",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.42",
|
|
5
5
|
"bugs": "https://github.com/marko-js/language-server/issues/new?template=Bug_report.md",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@marko/compiler": "^5.28.4"
|