lingo.dev 0.111.12 → 0.111.13
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/build/cli.cjs +93 -93
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +11 -11
- package/build/cli.mjs.map +1 -1
- package/package.json +4 -4
package/build/cli.mjs
CHANGED
|
@@ -3067,7 +3067,6 @@ async function formatDataWithPrettier(data, filePath, options) {
|
|
|
3067
3067
|
import path12 from "path";
|
|
3068
3068
|
import fs9 from "fs/promises";
|
|
3069
3069
|
import { Biome, Distribution } from "@biomejs/js-api";
|
|
3070
|
-
var shownWarnings = /* @__PURE__ */ new Set();
|
|
3071
3070
|
function createBiomeLoader(options) {
|
|
3072
3071
|
return createBaseFormatterLoader(options, async (data, filePath) => {
|
|
3073
3072
|
return await formatDataWithBiome(data, filePath, options);
|
|
@@ -3101,6 +3100,10 @@ async function formatDataWithBiome(data, filePath, options) {
|
|
|
3101
3100
|
const projectKey = openResult.projectKey;
|
|
3102
3101
|
configPath = await findBiomeConfig(filePath);
|
|
3103
3102
|
if (!configPath && !options.alwaysFormat) {
|
|
3103
|
+
console.log();
|
|
3104
|
+
console.log(
|
|
3105
|
+
`\u26A0\uFE0F Biome config not found for ${path12.basename(filePath)} - skipping formatting`
|
|
3106
|
+
);
|
|
3104
3107
|
return data;
|
|
3105
3108
|
}
|
|
3106
3109
|
if (configPath) {
|
|
@@ -3119,15 +3122,12 @@ async function formatDataWithBiome(data, filePath, options) {
|
|
|
3119
3122
|
});
|
|
3120
3123
|
return formatted.content;
|
|
3121
3124
|
} catch (error) {
|
|
3122
|
-
const
|
|
3123
|
-
if (
|
|
3124
|
-
|
|
3125
|
-
console.log();
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
);
|
|
3129
|
-
if (error instanceof Error && error.message) {
|
|
3130
|
-
console.log(` ${error.message}`);
|
|
3125
|
+
const errorMessage = error instanceof Error ? error.message || error.stackTrace?.toString().split("\n")[0] : "";
|
|
3126
|
+
if (errorMessage?.includes("does not exist in the workspace")) {
|
|
3127
|
+
} else {
|
|
3128
|
+
console.log(`\u26A0\uFE0F Biome skipped ${path12.basename(filePath)}`);
|
|
3129
|
+
if (errorMessage) {
|
|
3130
|
+
console.log(` ${errorMessage}`);
|
|
3131
3131
|
}
|
|
3132
3132
|
}
|
|
3133
3133
|
return data;
|
|
@@ -11271,7 +11271,7 @@ async function renderHero2() {
|
|
|
11271
11271
|
// package.json
|
|
11272
11272
|
var package_default = {
|
|
11273
11273
|
name: "lingo.dev",
|
|
11274
|
-
version: "0.111.
|
|
11274
|
+
version: "0.111.13",
|
|
11275
11275
|
description: "Lingo.dev CLI",
|
|
11276
11276
|
private: false,
|
|
11277
11277
|
publishConfig: {
|