mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
feature: cloudcmd: migrate to ESM
This commit is contained in:
parent
e8a81c49ea
commit
4533a25c6f
184 changed files with 339 additions and 388 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue