feat: convert commonjs to esm modules

This commit is contained in:
T. R. Bernstein
2025-05-29 15:38:05 +02:00
parent cf7c678136
commit 7a51ed9d07
58 changed files with 248 additions and 219 deletions

View File

@@ -1,10 +1,10 @@
const cwd = require('./cwd').handler
import cwd from './cwd.js'
module.exports = {
export default {
directive: ['CDUP', 'XCUP'],
handler: function (args) {
args.command.arg = '..'
return cwd.call(this, args)
return cwd.handler.call(this, args)
},
syntax: '{{cmd}}',
description: 'Change to Parent Directory'