Skip to content

Commit

Permalink
fix(cosmic-swingset): port more scripts to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Aug 13, 2021
1 parent d63810f commit fc062b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
9 changes: 4 additions & 5 deletions packages/cosmic-swingset/calc-gci.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/usr/bin/env node
/* global require */

const fs = require('fs');
const djson = require('deterministic-json');
const { createHash } = require('crypto');
const process = require('process');
import fs from 'fs';
import djson from 'deterministic-json';
import { createHash } from 'crypto';
import process from 'process';

const g = fs.readFileSync(process.argv[2]).toString();
const s = djson.stringify(JSON.parse(g));
Expand Down
7 changes: 3 additions & 4 deletions packages/cosmic-swingset/calc-rpcport.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/usr/bin/env node
/* global require */

// NOTE: Runs outside SES

const process = require('process');
const fs = require('fs');
const toml = require('@iarna/toml');
import process from 'process';
import fs from 'fs';
import toml from '@iarna/toml';

// point this at ~/.ag-cosmos-chain/config/config.toml

Expand Down
File renamed without changes.

0 comments on commit fc062b8

Please sign in to comment.