@inlang/paraglide-js
Advanced tools
Comparing version 1.2.0 to 1.2.1
import { Command } from "commander"; | ||
import { type ProjectSettings } from "@inlang/sdk"; | ||
import { Logger } from "../../services/logger/index.js"; | ||
import { type Repository } from "@lix-js/client"; | ||
import type { NodeishFilesystem } from "@lix-js/fs"; | ||
type Context = { | ||
logger: Logger; | ||
repo: Repository; | ||
}; | ||
export declare const initCommand: Command; | ||
export declare const initializeInlangProject: (logger: Logger) => Promise<string>; | ||
export declare const initializeInlangProject: (ctx: Context) => Promise<string>; | ||
export declare const maybeAddVsCodeExtension: (args: { | ||
projectPath: string; | ||
}, logger: Logger) => Promise<void>; | ||
export declare const addParaglideJsToDevDependencies: (logger: Logger) => Promise<void>; | ||
export declare const findExistingInlangProjectPath: () => Promise<string | undefined>; | ||
}, ctx: Context) => Promise<void>; | ||
export declare const addParaglideJsToDevDependencies: (ctx: Context) => Promise<void>; | ||
export declare const findExistingInlangProjectPath: (ctx: Context) => Promise<string | undefined>; | ||
export declare const existingProjectFlow: (args: { | ||
existingProjectPath: string; | ||
}, logger: Logger) => Promise<undefined>; | ||
export declare const createNewProjectFlow: (logger: Logger) => Promise<undefined>; | ||
}, ctx: Context) => Promise<undefined>; | ||
export declare const createNewProjectFlow: (ctx: Context) => Promise<undefined>; | ||
export declare const newProjectTemplate: ProjectSettings; | ||
export declare const checkIfPackageJsonExists: (logger: Logger) => Promise<undefined>; | ||
export declare const checkIfUncommittedChanges: (logger: Logger) => Promise<void>; | ||
export declare const checkIfPackageJsonExists: (ctx: Context) => Promise<undefined>; | ||
export declare const checkIfUncommittedChanges: (ctx: Context) => Promise<void>; | ||
export declare const addCompileStepToPackageJSON: (args: { | ||
projectPath: string; | ||
}, logger: Logger) => Promise<undefined>; | ||
}, ctx: Context) => Promise<undefined>; | ||
/** | ||
@@ -27,6 +33,8 @@ * Ensures that the moduleResolution compiler option is set to "bundler" or similar in the tsconfig.json. | ||
*/ | ||
export declare const maybeChangeTsConfigModuleResolution: (logger: Logger) => Promise<void>; | ||
export declare const maybeChangeTsConfigModuleResolution: (ctx: Context) => Promise<void>; | ||
/** | ||
* Paraligde JS compiles to JS with JSDoc comments. TypeScript doesn't allow JS files by default. | ||
*/ | ||
export declare const maybeChangeTsConfigAllowJs: (logger: Logger) => Promise<void>; | ||
export declare const maybeChangeTsConfigAllowJs: (ctx: Context) => Promise<void>; | ||
export declare function fileExists(filePath: string, nodeishFs: NodeishFilesystem): Promise<boolean>; | ||
export {}; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
import type nodeFsPromises from "node:fs/promises"; | ||
export declare function writeOutput(outputDirectory: string, output: Record<string, string>, fs: typeof nodeFsPromises): Promise<void>; | ||
import type { NodeishFilesystem } from "@lix-js/fs"; | ||
export declare function writeOutput(outputDirectory: string, output: Record<string, string>, fs: NodeishFilesystem): Promise<void>; |
{ | ||
"name": "@inlang/paraglide-js", | ||
"type": "module", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"license": "Apache-2.0", | ||
@@ -40,4 +40,4 @@ "publishConfig": { | ||
"posthog-node": "3.1.3", | ||
"@inlang/language-tag": "1.3.0", | ||
"@inlang/detect-json-formatting": "1.0.0" | ||
"@inlang/detect-json-formatting": "1.0.0", | ||
"@inlang/language-tag": "1.4.0" | ||
}, | ||
@@ -49,2 +49,3 @@ "devDependencies": { | ||
"@types/minimist": "1.2.3", | ||
"@types/node": "^20.11.2", | ||
"@vitest/coverage-v8": "0.34.3", | ||
@@ -57,7 +58,8 @@ "cross-env": "^7.0.3", | ||
"vitest": "0.34.3", | ||
"@inlang/env-variables": "0.2.0", | ||
"@inlang/sdk": "0.23.0", | ||
"@inlang/telemetry": "0.3.4", | ||
"@lix-js/client": "0.5.0", | ||
"@inlang/env-variables": "0.2.0", | ||
"@inlang/telemetry": "0.3.3", | ||
"@inlang/sdk": "0.22.0", | ||
"@lix-js/fs": "0.5.0" | ||
"@lix-js/fs": "0.5.0", | ||
"@inlang/plugin-message-format": "2.0.0" | ||
}, | ||
@@ -64,0 +66,0 @@ "exports": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1153617
29907
18
+ Added@inlang/language-tag@1.4.0(transitive)
+ Addedaxios@1.7.8(transitive)
- Removed@inlang/language-tag@1.3.0(transitive)
- Removedaxios@1.7.7(transitive)
Updated@inlang/language-tag@1.4.0