@@ -9,21 +9,21 @@ import pLimit from 'p-limit';
9
9
import sharp from 'sharp' ;
10
10
import { optimize as svgoOptimize } from 'svgo' ;
11
11
12
- import { calculateRatio } from './calculate-ratio.js' ;
13
- import { createProgressBarContainer } from './create-progress-bar-container.js' ;
14
- import { formatBytes } from './format-bytes.js' ;
15
- import { getPlural } from './get-plural.js' ;
16
- import { getRelativePath } from './get-relative-path.js' ;
12
+ import { calculateRatio } from './lib/ calculate-ratio.js' ;
13
+ import { createProgressBarContainer } from './lib/ create-progress-bar-container.js' ;
14
+ import { formatBytes } from './lib/ format-bytes.js' ;
15
+ import { getPlural } from './lib/ get-plural.js' ;
16
+ import { getRelativePath } from './lib/ get-relative-path.js' ;
17
17
import {
18
18
LOG_TYPES ,
19
19
log ,
20
20
logProgress ,
21
21
logProgressVerbose ,
22
- } from './log.js' ;
23
- import { optionsToArguments } from './options-to-arguments.js' ;
24
- import { parseImageMetadata } from './parse-image-metadata.js' ;
25
- import { programOptions } from './program-options.js' ;
26
- import { showTotal } from './show-total.js' ;
22
+ } from './lib/ log.js' ;
23
+ import { optionsToArguments } from './lib/ options-to-arguments.js' ;
24
+ import { parseImageMetadata } from './lib/ parse-image-metadata.js' ;
25
+ import { programOptions } from './lib/ program-options.js' ;
26
+ import { showTotal } from './lib/ show-total.js' ;
27
27
28
28
export async function optimize ( { filePaths, config } ) {
29
29
const { isLossless } = programOptions ;
0 commit comments