Skip to content

Commit

Permalink
convert to esm
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmiei committed Mar 30, 2022
1 parent 2278d97 commit 765f812
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 24 deletions.
13 changes: 6 additions & 7 deletions build/cleanup-old-tags.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"use strict"

const { execSync } = require ('child_process')
const log = require ('ololog').noLocate
const { groupBy } = require ('../ccxt.js')
import { execSync } from 'child_process';
import { noLocate as log } from 'ololog';
import { groupBy } from '../ccxt.js';
const { values } = Object
const assert = require ('assert')
import assert from 'assert';

function cleanupOldTags () {

Expand Down Expand Up @@ -89,6 +88,6 @@ if (require.main === module) {

// ============================================================================

module.exports = {
export default {
cleanupOldTags,
}
};
7 changes: 2 additions & 5 deletions build/git-ignore-generated-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@
*/


"use strict"

const { execSync } = require ('child_process')
const log = require ('ololog')
import { execSync } from 'child_process';
import log from 'ololog';

let files = [

Expand Down
10 changes: 5 additions & 5 deletions build/update-badges.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
// npm run update-badges
// ---------------------------------------------------------------------------

"use strict";

const fs = require ('fs')
const ccxt = require ('../ccxt')
const log = require ('ololog')
const ansi = require ('ansicolor').nice
import fs from 'fs';
import ccxt from '../ccxt';
import log from 'ololog';
import ansicolor from 'ansicolor';

ansicolor.nice
//-----------------------------------------------------------------------------

function updateExchangeCount (fileName) {
Expand Down
5 changes: 2 additions & 3 deletions build/update-links.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use strict"

const { readFileSync } = require ('fs')
, { overwriteFile } = require ('./fs')
import { readFileSync } from 'fs';
import { overwriteFile } from './fs';

const manual = './wiki/Manual.md'
let file = readFileSync (manual).toString ()
Expand Down
2 changes: 0 additions & 2 deletions js/test/base/functions/test.datetime.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

import { ccxt } from '../../../../ccxt.js';
import assert from 'assert.js';
import { ROUND_UP, ROUND_DOWN } from '../../../base/functions/misc.js';
Expand Down
2 changes: 0 additions & 2 deletions js/test/base/functions/test.generic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

/* ------------------------------------------------------------------------ */

import { deepExtend, groupBy, filterBy, omit, sum, sortBy } from '../../../../ccxt.js'
Expand Down

0 comments on commit 765f812

Please sign in to comment.