mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
feature: client: key: binder: migrate to ESM
This commit is contained in:
parent
d250bf0223
commit
f8a63b5a13
4 changed files with 4 additions and 11 deletions
|
|
@ -1,6 +1,4 @@
|
|||
'use strict';
|
||||
|
||||
module.exports.createBinder = () => {
|
||||
export const createBinder = () => {
|
||||
let binded = false;
|
||||
|
||||
return {
|
||||
|
|
@ -6,7 +6,7 @@ import * as Buffer from '../dom/buffer.mjs';
|
|||
import * as KEY from './key.mjs';
|
||||
import _vim from './vim/index.js';
|
||||
import setCurrentByChar from './set-current-by-char.js';
|
||||
import {createBinder} from './binder.js';
|
||||
import {createBinder} from './binder.mjs';
|
||||
|
||||
const Chars = fullstore();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
const {join} = require('node:path');
|
||||
const {test, stub} = require('supertape');
|
||||
|
||||
const dir = '../';
|
||||
|
||||
const pathVim = join(dir, 'vim');
|
||||
|
||||
const {getDOM, getCloudCmd} = require('./globals.fixture');
|
||||
|
||||
globalThis.DOM = getDOM();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue