@lark-apaas/fullstack-cli 1.1.40-alpha.12 → 1.1.40-alpha.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.
- package/dist/index.js +0 -19
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2152,24 +2152,6 @@ async function parseAndGenerateNestResourceTemplate(options) {
|
|
|
2152
2152
|
|
|
2153
2153
|
// src/commands/db/schema.handler.ts
|
|
2154
2154
|
var require2 = createRequire(import.meta.url);
|
|
2155
|
-
var STALE_RUN_DIR_MAX_AGE_MS = 60 * 60 * 1e3;
|
|
2156
|
-
function sweepStaleRunDirs(rootDir) {
|
|
2157
|
-
try {
|
|
2158
|
-
const now = Date.now();
|
|
2159
|
-
for (const name of fs4.readdirSync(rootDir)) {
|
|
2160
|
-
if (!name.startsWith("run-")) continue;
|
|
2161
|
-
const full = path2.join(rootDir, name);
|
|
2162
|
-
try {
|
|
2163
|
-
const stat = fs4.statSync(full);
|
|
2164
|
-
if (!stat.isDirectory()) continue;
|
|
2165
|
-
if (now - stat.mtimeMs < STALE_RUN_DIR_MAX_AGE_MS) continue;
|
|
2166
|
-
fs4.rmSync(full, { recursive: true, force: true });
|
|
2167
|
-
} catch {
|
|
2168
|
-
}
|
|
2169
|
-
}
|
|
2170
|
-
} catch {
|
|
2171
|
-
}
|
|
2172
|
-
}
|
|
2173
2155
|
async function run(options = {}) {
|
|
2174
2156
|
let exitCode = 0;
|
|
2175
2157
|
const envPath2 = path2.resolve(process.cwd(), ".env");
|
|
@@ -2367,7 +2349,6 @@ async function run(options = {}) {
|
|
|
2367
2349
|
if (fs4.existsSync(OUT_DIR)) {
|
|
2368
2350
|
fs4.rmSync(OUT_DIR, { recursive: true, force: true });
|
|
2369
2351
|
}
|
|
2370
|
-
sweepStaleRunDirs(INTROSPECT_ROOT);
|
|
2371
2352
|
process.exit(exitCode);
|
|
2372
2353
|
}
|
|
2373
2354
|
}
|