feature: client: key: binder: migrate to ESM

This commit is contained in:
coderiaser 2026-01-28 21:03:53 +02:00
parent d250bf0223
commit f8a63b5a13
4 changed files with 4 additions and 11 deletions

View file

@ -26,12 +26,12 @@ export default {
'build:start': () => run(['build:client', 'start']),
'build:start:dev': () => run(['build:client:dev', 'start:dev']),
'lint:all': () => run('lint:progress'),
'lint': () => 'putout .',
'lint': () => 'redlint scan; putout .',
'lint:progress': () => run('lint', '-f progress'),
'watch:lint': () => 'nodemon -w client -w server -w test -w common -w .webpack -x "putout -s"',
'fresh:lint': () => run('lint', '--fresh'),
'lint:fresh': () => run('lint', '--fresh'),
'fix:lint': () => run('lint', '--fix'),
'fix:lint': async () => `redlint fix && putout --fix .`,
'lint:stream': () => run('lint', '-f stream'),
'test': () => [testEnv, `tape 'test/**/*.{js,mjs}' '{client,static,common,server}/**/*.spec.{js,mjs}' -f fail`],
'test:client': () => `tape 'test/client/**/*.js'`,

View file

@ -1,6 +1,4 @@
'use strict';
module.exports.createBinder = () => {
export const createBinder = () => {
let binded = false;
return {

View file

@ -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();

View file

@ -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();