@locale-labs/miniapp-builder 0.2.0-dev.53.be8dbe4 → 0.2.0-dev.54.7fe6f45
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/dist/index.js +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -57054,10 +57054,10 @@ var import_child_process3 = require("child_process");
|
|
|
57054
57054
|
function check() {
|
|
57055
57055
|
const CWD2 = process.cwd();
|
|
57056
57056
|
let failed = false;
|
|
57057
|
-
const run = (label, cmd, args2) => {
|
|
57057
|
+
const run = (label, cmd, args2, cwd = CWD2) => {
|
|
57058
57058
|
console.log(`
|
|
57059
57059
|
\u{1F4DD} ${label}...`);
|
|
57060
|
-
const res = (0, import_child_process3.spawnSync)(cmd, args2, { stdio: "inherit", cwd
|
|
57060
|
+
const res = (0, import_child_process3.spawnSync)(cmd, args2, { stdio: "inherit", cwd });
|
|
57061
57061
|
if (res.status !== 0) failed = true;
|
|
57062
57062
|
};
|
|
57063
57063
|
run("ESLint", "bunx", ["eslint", "src"]);
|
|
@@ -57066,8 +57066,9 @@ function check() {
|
|
|
57066
57066
|
if (fs4.existsSync(customFunctionsDir)) {
|
|
57067
57067
|
const denoAvailable = (0, import_child_process3.spawnSync)("deno", ["--version"], { stdio: "ignore" }).status === 0;
|
|
57068
57068
|
if (denoAvailable) {
|
|
57069
|
-
|
|
57070
|
-
run("Deno
|
|
57069
|
+
const supabaseDir = path4.join(CWD2, "supabase");
|
|
57070
|
+
run("Deno check (custom functions)", "deno", ["check", "functions/**/*.ts"], supabaseDir);
|
|
57071
|
+
run("Deno lint (custom functions)", "deno", ["lint", "functions/"], supabaseDir);
|
|
57071
57072
|
} else {
|
|
57072
57073
|
console.warn("\u26A0\uFE0F supabase/functions/ existe pero deno no est\xE1 instalado \u2014 skip deno check");
|
|
57073
57074
|
}
|