@inlang/core
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -15,3 +15,3 @@ /** | ||
*/ | ||
metadata?: unknown; | ||
metadata?: any; | ||
}; | ||
@@ -56,3 +56,3 @@ /** | ||
* The node is planned to obey to [IETF BCP 47 language tags](https://en.wikipedia.org/wiki/IETF_language_tag). | ||
* For now, only a name that acts as an ID can be set. See | ||
* For now, only a name that acts as an ID can be set. See | ||
* https://github.com/inlang/inlang/issues/296 | ||
@@ -59,0 +59,0 @@ */ |
@@ -26,11 +26,7 @@ /** | ||
// http imports yet like VSCode. | ||
let moduleAsText; | ||
if (uri.startsWith("http")) { | ||
moduleAsText = await (await _fetch(uri)).text(); | ||
} | ||
else { | ||
moduleAsText = (await environment.fs.readFile(`${environment.workingDirectory}/${uri}`, "utf-8")); | ||
} | ||
const moduleAsText = uri.startsWith("http") | ||
? await (await _fetch(uri)).text() | ||
: (await environment.fs.readFile(`${environment.workingDirectory}/${uri}`, "utf-8")); | ||
const moduleWithMimeType = "data:application/javascript;base64," + btoa(moduleAsText); | ||
return await import(/* @vite-ignore */ moduleWithMimeType); | ||
} |
{ | ||
"name": "@inlang/core", | ||
"type": "module", | ||
"version": "0.3.0", | ||
"private": false, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"exports": { | ||
"./ast": { | ||
"types": "./dist/ast/index.d.ts", | ||
"import": "./dist/ast/index.js" | ||
}, | ||
"./config": { | ||
"types": "./dist/config/index.d.ts", | ||
"import": "./dist/config/index.js" | ||
}, | ||
"./query": { | ||
"types": "./dist/query/index.d.ts", | ||
"import": "./dist/query/index.js" | ||
}, | ||
"./utilities": { | ||
"types": "./dist/utilities/index.d.ts", | ||
"import": "./dist/utilities/index.js" | ||
} | ||
}, | ||
"files": [ | ||
"./dist" | ||
], | ||
"scripts": { | ||
"build": "tsc --build ./tsconfig.build.json", | ||
"dev": "tsc --watch", | ||
"test": "vitest run --passWithNoTests --coverage", | ||
"format": "prettier ./src/** -w --config ../../.prettierrc.json", | ||
"clean": "rm -r -f ./dist ./.turbo ./coverage ./node_modules" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"memfs": "^3.4.11" | ||
} | ||
"name": "@inlang/core", | ||
"type": "module", | ||
"version": "0.3.1", | ||
"private": false, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"exports": { | ||
"./ast": { | ||
"types": "./dist/ast/index.d.ts", | ||
"import": "./dist/ast/index.js" | ||
}, | ||
"./config": { | ||
"types": "./dist/config/index.d.ts", | ||
"import": "./dist/config/index.js" | ||
}, | ||
"./query": { | ||
"types": "./dist/query/index.d.ts", | ||
"import": "./dist/query/index.js" | ||
}, | ||
"./utilities": { | ||
"types": "./dist/utilities/index.d.ts", | ||
"import": "./dist/utilities/index.js" | ||
} | ||
}, | ||
"files": [ | ||
"./dist" | ||
], | ||
"scripts": { | ||
"build": "tsc --build ./tsconfig.build.json", | ||
"dev": "tsc --watch", | ||
"test": "vitest run --passWithNoTests --coverage", | ||
"format": "prettier ./src/** -w --config ../../.prettierrc.json", | ||
"clean": "rm -r -f ./dist ./.turbo ./coverage ./node_modules" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"memfs": "^3.4.11" | ||
} | ||
} |
26683
698