Skip to content

Commit

Permalink
Move bytes to ESM variant
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferbaxter committed Feb 8, 2021
1 parent c08fa7c commit 06a5f21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"@kristoferbaxter/async": "1.0.0",
"@kristoferbaxter/kleur": "4.0.2",
"bytes": "3.1.0",
"@kristoferbaxter/bytes": "0.1.2",
"fast-glob": "3.2.5",
"mri": "1.1.6"
},
Expand All @@ -43,7 +43,6 @@
"@rollup/plugin-commonjs": "17.1.0",
"@rollup/plugin-node-resolve": "11.1.1",
"@rollup/plugin-typescript": "8.1.1",
"@types/bytes": "3.1.0",
"@types/mri": "1.1.0",
"@types/node": "14.14.25",
"@types/tap": "14.10.2",
Expand Down
2 changes: 1 addition & 1 deletion src/log/helpers/bytes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

const bytes = require('bytes');
import bytes from '@kristoferbaxter/bytes';

/**
* Format size into more human readable string.
Expand Down
2 changes: 1 addition & 1 deletion src/validation/File.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { Compression, Context, SizeMapValue, SizeMapValueIndex } from './Condition';
import { resolve, isAbsolute } from 'path';
import { isFile } from '../helpers/fs';
import bytes from 'bytes';
import bytes from '@kristoferbaxter/bytes';

/**
* Format input string to a known Compression Enum Value.
Expand Down

0 comments on commit 06a5f21

Please sign in to comment.