@cleocode/cleo 2026.4.106 → 2026.4.107
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/bin/cleo.js +29 -0
- package/dist/cli/index.js +13 -0
- package/dist/cli/index.js.map +1 -1
- package/package.json +11 -11
package/bin/cleo.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* T1138: Wrapper script for the CLEO CLI.
|
|
4
|
+
*
|
|
5
|
+
* This wrapper invokes the actual CLI bundle with Node.js flags to suppress
|
|
6
|
+
* the ExperimentalWarning for node:sqlite. The warning fires during ESM module
|
|
7
|
+
* resolution (before any JS code executes), so it must be suppressed at the
|
|
8
|
+
* Node runtime level, not in application code.
|
|
9
|
+
*
|
|
10
|
+
* See: https://github.com/kryptobaseddev/cleo/issues/XXX (T1138)
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { execFileSync } from 'child_process';
|
|
14
|
+
import { resolve } from 'path';
|
|
15
|
+
import { fileURLToPath } from 'url';
|
|
16
|
+
import { dirname } from 'path';
|
|
17
|
+
|
|
18
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
19
|
+
const cliPath = resolve(__dirname, '../dist/cli/index.js');
|
|
20
|
+
const args = process.argv.slice(2);
|
|
21
|
+
|
|
22
|
+
try {
|
|
23
|
+
execFileSync('node', ['--disable-warning=ExperimentalWarning', cliPath, ...args], {
|
|
24
|
+
stdio: 'inherit',
|
|
25
|
+
cwd: process.cwd(),
|
|
26
|
+
});
|
|
27
|
+
} catch (error) {
|
|
28
|
+
process.exit(error.status || 1);
|
|
29
|
+
}
|
package/dist/cli/index.js
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
(() => {
|
|
3
|
+
const _origEmitWarning = process.emitWarning;
|
|
4
|
+
process.emitWarning = function(warning, type, code, ctor) {
|
|
5
|
+
if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
return _origEmitWarning.call(process, warning, type, code, ctor);
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
2
14
|
var __create = Object.create;
|
|
3
15
|
var __defProp = Object.defineProperty;
|
|
4
16
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -104012,6 +104024,7 @@ var init_cleo = __esm({
|
|
|
104012
104024
|
// packages/core/src/index.ts
|
|
104013
104025
|
var init_src3 = __esm({
|
|
104014
104026
|
"packages/core/src/index.ts"() {
|
|
104027
|
+
"use strict";
|
|
104015
104028
|
init_src();
|
|
104016
104029
|
init_adapters();
|
|
104017
104030
|
init_admin();
|