@inlang/paraglide-js 1.0.0-prerelease.13 → 1.0.0-prerelease.15
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/README.md +53 -51
- package/dist/cli/commands/init.d.ts +11 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3398 -49559
- package/dist/services/file-handling/write-output.d.ts +0 -1
- package/dist/services/logger/index.d.ts +21 -0
- package/package.json +12 -10
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
2
|
import type nodeFsPromises from "node:fs/promises";
|
|
4
3
|
export declare function writeOutput(outputDirectory: string, output: Record<string, string>, fs: typeof nodeFsPromises): Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type LoggerOptions = {
|
|
2
|
+
silent: boolean;
|
|
3
|
+
/**
|
|
4
|
+
* If the [paraglide] prefix should be printed before each log message.
|
|
5
|
+
*/
|
|
6
|
+
prefix: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare class Logger {
|
|
9
|
+
private options;
|
|
10
|
+
constructor(options?: LoggerOptions);
|
|
11
|
+
/**
|
|
12
|
+
* Prints an empty line to the console.
|
|
13
|
+
*/
|
|
14
|
+
ln(): Logger;
|
|
15
|
+
log(message: string): Logger;
|
|
16
|
+
info(message: string): Logger;
|
|
17
|
+
success(message: string): Logger;
|
|
18
|
+
warn(message: any, ...args: any[]): Logger;
|
|
19
|
+
error(message: any, ...args: any[]): Logger;
|
|
20
|
+
box(message: any, ...args: any[]): Logger;
|
|
21
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inlang/paraglide-js",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-prerelease.
|
|
4
|
+
"version": "1.0.0-prerelease.15",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -30,8 +30,18 @@
|
|
|
30
30
|
"./dist",
|
|
31
31
|
"./bin"
|
|
32
32
|
],
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@inlang/detect-json-formatting": "1.0.0",
|
|
35
|
+
"commander": "11.1.0",
|
|
36
|
+
"consola": "3.2.3",
|
|
37
|
+
"dedent": "1.5.1",
|
|
38
|
+
"isomorphic-git": "1.24.5",
|
|
39
|
+
"json5": "2.2.3",
|
|
40
|
+
"posthog-node": "3.1.3",
|
|
41
|
+
"@inlang/sdk": "0.19.0",
|
|
42
|
+
"@lix-js/fs": "0.4.0"
|
|
43
|
+
},
|
|
33
44
|
"devDependencies": {
|
|
34
|
-
"@lix-js/fs": "*",
|
|
35
45
|
"@rollup/plugin-terser": "0.4.3",
|
|
36
46
|
"@rollup/plugin-virtual": "3.0.1",
|
|
37
47
|
"@ts-morph/bootstrap": "0.20.0",
|
|
@@ -43,15 +53,7 @@
|
|
|
43
53
|
"rollup": "3.29.1",
|
|
44
54
|
"typescript": "5.2.2",
|
|
45
55
|
"vitest": "0.34.3",
|
|
46
|
-
"@inlang/detect-json-formatting": "1.0.0",
|
|
47
|
-
"commander": "11.1.0",
|
|
48
|
-
"consola": "3.2.3",
|
|
49
|
-
"dedent": "1.5.1",
|
|
50
|
-
"isomorphic-git": "1.24.5",
|
|
51
|
-
"json5": "2.2.3",
|
|
52
|
-
"posthog-node": "3.1.3",
|
|
53
56
|
"@inlang/env-variables": "0.1.0",
|
|
54
|
-
"@inlang/sdk": "0.19.0",
|
|
55
57
|
"@inlang/telemetry": "0.2.1"
|
|
56
58
|
},
|
|
57
59
|
"exports": {
|