feature: cloudcmd: migrate to ESM

This commit is contained in:
coderiaser 2026-02-03 15:03:49 +02:00
parent e8a81c49ea
commit 4533a25c6f
184 changed files with 339 additions and 388 deletions

View file

@ -1,7 +1,9 @@
'use strict';
import path, {dirname} from 'node:path';
import {fileURLToPath} from 'node:url';
import readFilesSync from '@cloudcmd/read-files-sync';
const path = require('node:path');
const readFilesSync = require('@cloudcmd/read-files-sync');
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const templatePath = path.join(__dirname, '..', 'tmpl/fs');
module.exports = readFilesSync(templatePath, 'utf8');
export default readFilesSync(templatePath, 'utf8');