Compare commits

...

2 commits

Author SHA1 Message Date
coderiaser
fa63b4fe1c chore: cloudcmd: v19.9.12 2026-03-29 12:38:46 +03:00
coderiaser
811a47fd1e feature: cloudcmd: bin: get rid of require 2026-03-29 12:37:36 +03:00
5 changed files with 12 additions and 10 deletions

View file

@ -1,3 +1,8 @@
2026.03.29, v19.9.12
feature:
- 811a47fd cloudcmd: bin: get rid of require
2026.03.29, v19.9.11
feature:

View file

@ -1,4 +1,4 @@
# Cloud Commander v19.9.11
# Cloud Commander v19.9.12
### [Main][MainURL] [Blog][BlogURL] [Support][SupportURL] [Demo][DemoURL]
@ -1114,6 +1114,7 @@ There are a lot of ways to be involved in `Cloud Commander` development:
## Version history
- *2026.03.29*, **[v19.9.12](//github.com/coderaiser/cloudcmd/releases/tag/v19.9.12)**
- *2026.03.29*, **[v19.9.11](//github.com/coderaiser/cloudcmd/releases/tag/v19.9.11)**
- *2026.03.29*, **[v19.9.10](//github.com/coderaiser/cloudcmd/releases/tag/v19.9.10)**
- *2026.03.29*, **[v19.9.9](//github.com/coderaiser/cloudcmd/releases/tag/v19.9.9)**

View file

@ -1,4 +1,4 @@
# Cloud Commander v19.9.11 [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Codacy][CodacyIMG]][CodacyURL] [![Gitter][GitterIMGURL]][GitterURL]
# Cloud Commander v19.9.12 [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Codacy][CodacyIMG]][CodacyURL] [![Gitter][GitterIMGURL]][GitterURL]
### [Main][MainURL] [Blog][BlogURL] [Support][SupportURL] [Demo][DemoURL]

View file

@ -1,7 +1,6 @@
#!/usr/bin/env node
import process from 'node:process';
import {createRequire} from 'node:module';
import {promisify} from 'node:util';
import {tryToCatch} from 'try-to-catch';
import parse from 'yargs-parser';
@ -15,7 +14,6 @@ import Info from '../package.json' with {
};
process.on('unhandledRejection', exit);
const require = createRequire(import.meta.url);
const isUndefined = (a) => typeof a === 'undefined';
@ -30,8 +28,6 @@ const config = createConfig({
configPath,
});
const DIR_SERVER = '../server/';
const maybeRoot = (a) => {
if (a === '.')
return process.cwd();
@ -180,7 +176,7 @@ async function main() {
return exit(error);
if (args.repl)
repl();
await repl();
validate.columns(args.columns);
validate.theme(args.theme);
@ -339,9 +335,9 @@ async function help() {
console.log('\nGeneral help using Cloud Commander: <%s>', url);
}
function repl() {
async function repl() {
console.log('REPL mode enabled (telnet localhost 1337)');
require(`${DIR_SERVER}repl`);
await import('../server/repl.js');
}
async function checkUpdate() {

View file

@ -1,6 +1,6 @@
{
"name": "cloudcmd",
"version": "19.9.11",
"version": "19.9.12",
"type": "module",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
"description": "File manager for the web with console and editor",