@inlang/paraglide-js 1.0.0-prerelease.13 → 1.0.0-prerelease.14

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.
@@ -1,30 +1,31 @@
1
1
  import { Command } from "commander";
2
2
  import { type ProjectSettings } from "@inlang/sdk";
3
+ import { Logger } from "../../services/logger/index.js";
3
4
  export declare const initCommand: Command;
4
- export declare const initializeInlangProject: () => Promise<string>;
5
+ export declare const initializeInlangProject: (logger: Logger) => Promise<string>;
5
6
  export declare const maybeAddVsCodeExtension: (args: {
6
7
  projectPath: string;
7
- }) => Promise<void>;
8
- export declare const addParaglideJsToDevDependencies: () => Promise<void>;
8
+ }, logger: Logger) => Promise<void>;
9
+ export declare const addParaglideJsToDevDependencies: (logger: Logger) => Promise<void>;
9
10
  export declare const findExistingInlangProjectPath: () => Promise<string | undefined>;
10
11
  export declare const existingProjectFlow: (args: {
11
12
  existingProjectPath: string;
12
- }) => Promise<undefined>;
13
- export declare const createNewProjectFlow: () => Promise<undefined>;
13
+ }, logger: Logger) => Promise<undefined>;
14
+ export declare const createNewProjectFlow: (logger: Logger) => Promise<undefined>;
14
15
  export declare const newProjectTemplate: ProjectSettings;
15
- export declare const checkIfPackageJsonExists: () => Promise<undefined>;
16
- export declare const checkIfUncommittedChanges: () => Promise<void>;
16
+ export declare const checkIfPackageJsonExists: (logger: Logger) => Promise<undefined>;
17
+ export declare const checkIfUncommittedChanges: (logger: Logger) => Promise<void>;
17
18
  export declare const addCompileStepToPackageJSON: (args: {
18
19
  projectPath: string;
19
- }) => Promise<undefined>;
20
+ }, logger: Logger) => Promise<undefined>;
20
21
  /**
21
22
  * Ensures that the moduleResolution compiler option is set to "bundler" or similar in the tsconfig.json.
22
23
  *
23
24
  * Otherwise, types defined in `package.exports` are not resolved by TypeScript. Leading to type
24
25
  * errors with Paraglide-JS.
25
26
  */
26
- export declare const maybeChangeTsConfigModuleResolution: () => Promise<void>;
27
+ export declare const maybeChangeTsConfigModuleResolution: (logger: Logger) => Promise<void>;
27
28
  /**
28
29
  * Paraligde JS compiles to JS with JSDoc comments. TypeScript doesn't allow JS files by default.
29
30
  */
30
- export declare const maybeChangeTsConfigAllowJs: () => Promise<void>;
31
+ export declare const maybeChangeTsConfigAllowJs: (logger: Logger) => Promise<void>;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { cli } from "./cli/main.js";
2
2
  export { compile } from "./compiler/compile.js";
3
3
  export { writeOutput } from "./services/file-handling/write-output.js";
4
+ export { Logger, type LoggerOptions } from "./services/logger/index.js";