@marko/language-tools 2.1.3 → 2.1.4
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 +2 -10
- package/dist/index.mjs +2 -10
- package/dist/util/project.d.ts +1 -38
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3088,16 +3088,8 @@ function getMeta(dir) {
|
|
|
3088
3088
|
function loadMeta(dir) {
|
|
3089
3089
|
let cached = metaByDir.get(dir);
|
|
3090
3090
|
if (!cached) {
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
try {
|
|
3094
|
-
configPath = require2.resolve("@marko/compiler/config");
|
|
3095
|
-
} catch {
|
|
3096
|
-
require2 = (0, import_module.createRequire)(
|
|
3097
|
-
import_path2.default.dirname(require2.resolve("marko/package.json"))
|
|
3098
|
-
);
|
|
3099
|
-
configPath = require2.resolve("@marko/compiler/config");
|
|
3100
|
-
}
|
|
3091
|
+
const require2 = (0, import_module.createRequire)(import_path2.default.join(dir, "_.js"));
|
|
3092
|
+
const configPath = require2.resolve("@marko/compiler/config");
|
|
3101
3093
|
cached = metaByCompiler.get(configPath);
|
|
3102
3094
|
if (!cached) {
|
|
3103
3095
|
const compiler = require2(import_path2.default.dirname(configPath));
|
package/dist/index.mjs
CHANGED
|
@@ -3056,16 +3056,8 @@ function getMeta(dir) {
|
|
|
3056
3056
|
function loadMeta(dir) {
|
|
3057
3057
|
let cached = metaByDir.get(dir);
|
|
3058
3058
|
if (!cached) {
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
try {
|
|
3062
|
-
configPath = require2.resolve("@marko/compiler/config");
|
|
3063
|
-
} catch {
|
|
3064
|
-
require2 = createRequire(
|
|
3065
|
-
path2.dirname(require2.resolve("marko/package.json"))
|
|
3066
|
-
);
|
|
3067
|
-
configPath = require2.resolve("@marko/compiler/config");
|
|
3068
|
-
}
|
|
3059
|
+
const require2 = createRequire(path2.join(dir, "_.js"));
|
|
3060
|
+
const configPath = require2.resolve("@marko/compiler/config");
|
|
3069
3061
|
cached = metaByCompiler.get(configPath);
|
|
3070
3062
|
if (!cached) {
|
|
3071
3063
|
const compiler = require2(path2.dirname(configPath));
|
package/dist/util/project.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type TS from "typescript/lib/tsserverlibrary";
|
|
3
2
|
import type { TaglibLookup } from "@marko/babel-utils";
|
|
4
3
|
import type * as Compiler from "@marko/compiler";
|
|
@@ -23,43 +22,7 @@ interface TypeLibs {
|
|
|
23
22
|
declare const defaultTypeLibs: Partial<TypeLibs>;
|
|
24
23
|
export declare function getCompiler(dir?: string): typeof Compiler;
|
|
25
24
|
export declare function getCache(dir?: string): Map<any, any>;
|
|
26
|
-
export declare function getConfig(dir?: string): Omit<{
|
|
27
|
-
output?: "source" | "html" | "dom" | "hydrate" | "migrate" | undefined;
|
|
28
|
-
errorRecovery?: boolean | undefined;
|
|
29
|
-
applyFixes?: Map<number, unknown> | undefined;
|
|
30
|
-
stripTypes?: boolean | undefined;
|
|
31
|
-
runtimeId?: string | null | undefined;
|
|
32
|
-
ast?: boolean | undefined;
|
|
33
|
-
code?: boolean | undefined;
|
|
34
|
-
writeVersionComment?: boolean | undefined;
|
|
35
|
-
ignoreUnrecognizedTags?: boolean | undefined;
|
|
36
|
-
sourceMaps?: boolean | "inline" | "both" | undefined;
|
|
37
|
-
translator?: any;
|
|
38
|
-
fileSystem?: typeof import("fs") | undefined;
|
|
39
|
-
modules?: "esm" | "cjs" | undefined;
|
|
40
|
-
resolveVirtualDependency?: ((filename: string, dep: {
|
|
41
|
-
virtualPath: string;
|
|
42
|
-
code: string;
|
|
43
|
-
map?: any;
|
|
44
|
-
}) => string) | null | undefined;
|
|
45
|
-
hydrateIncludeImports?: RegExp | ((request: string) => boolean) | undefined;
|
|
46
|
-
optimize?: boolean | undefined;
|
|
47
|
-
cache?: Map<unknown, unknown> | undefined;
|
|
48
|
-
hot?: boolean | undefined;
|
|
49
|
-
meta?: boolean | undefined;
|
|
50
|
-
babelConfig?: {
|
|
51
|
-
[x: string]: unknown;
|
|
52
|
-
ast?: boolean | null | undefined;
|
|
53
|
-
code?: boolean | null | undefined;
|
|
54
|
-
comments?: boolean | null | undefined;
|
|
55
|
-
compact?: boolean | "auto" | null | undefined;
|
|
56
|
-
caller?: {
|
|
57
|
-
[x: string]: unknown;
|
|
58
|
-
name?: string | undefined;
|
|
59
|
-
} | undefined;
|
|
60
|
-
minified?: boolean | null | undefined;
|
|
61
|
-
} | undefined;
|
|
62
|
-
}, "cache" | "translator"> & {
|
|
25
|
+
export declare function getConfig(dir?: string): Omit<Compiler.Config, "cache" | "translator"> & {
|
|
63
26
|
cache: Map<any, any>;
|
|
64
27
|
translator: {
|
|
65
28
|
[x: string]: unknown;
|
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.1.
|
|
4
|
+
"version": "2.1.4",
|
|
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"
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@babel/code-frame": "^7.22.5",
|
|
17
|
-
"@marko/compiler": "^5.31.
|
|
17
|
+
"@marko/compiler": "^5.31.2",
|
|
18
18
|
"@marko/translator-default": "^5.29.2",
|
|
19
19
|
"@types/babel__code-frame": "^7.0.3",
|
|
20
20
|
"@types/babel__helper-validator-identifier": "^7.15.0",
|
|
21
|
-
"@typescript/vfs": "^1.
|
|
21
|
+
"@typescript/vfs": "^1.5.0",
|
|
22
22
|
"marko": "^5.29.2",
|
|
23
23
|
"mitata": "^0.1.6",
|
|
24
24
|
"tsx": "^3.12.7"
|