File tree Expand file tree Collapse file tree 9 files changed +20
-20
lines changed Expand file tree Collapse file tree 9 files changed +20
-20
lines changed Original file line number Diff line number Diff line change 1
1
import figures from 'figures' ;
2
2
3
- import { TaskStatus } from './Task' ;
4
- import { IndicationType , TextSeparator , Theme } from './Theme' ;
3
+ import { TaskStatus } from './Task.js ' ;
4
+ import { IndicationType , TextSeparator , Theme } from './Theme.js ' ;
5
5
6
6
/** Progress in percent by default */
7
7
export enum Progress {
Original file line number Diff line number Diff line change 1
1
import chalkTemplate from 'chalk-template' ;
2
2
3
- import { IProgressBarOptions , Progress , ProgressBar } from './ProgressBar' ;
4
- import { ExitCode , TaskTree } from './TaskTree' ;
5
- import { IndicationType , Theme } from './Theme' ;
3
+ import { IProgressBarOptions , Progress , ProgressBar } from './ProgressBar.js ' ;
4
+ import { ExitCode , TaskTree } from './TaskTree.js ' ;
5
+ import { IndicationType , Theme } from './Theme.js ' ;
6
6
7
7
let uid = 0 ;
8
8
Original file line number Diff line number Diff line change 1
1
import UpdateManager from 'stdout-update' ;
2
2
3
- import { Task } from './Task' ;
4
- import { Theme , ThemeOptions } from './Theme' ;
3
+ import { Task } from './Task.js ' ;
4
+ import { Theme , ThemeOptions } from './Theme.js ' ;
5
5
6
6
export enum ExitCode {
7
7
Success = 0 ,
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import elegantSpinner from 'elegant-spinner';
3
3
import figures from 'figures' ;
4
4
import { Terminal } from 'stdout-update/lib/Terminal' ;
5
5
6
- import { ProgressBar } from './ProgressBar' ;
7
- import { Task , TaskStatus } from './Task' ;
6
+ import { ProgressBar } from './ProgressBar.js ' ;
7
+ import { Task , TaskStatus } from './Task.js ' ;
8
8
9
9
const frame = elegantSpinner ( ) ;
10
10
Original file line number Diff line number Diff line change 1
1
import stripAnsi from 'strip-ansi' ;
2
2
3
- import { IProgressBarOptions , ProgressBar } from '../ProgressBar' ;
4
- import { Theme } from '../Theme' ;
3
+ import { IProgressBarOptions , ProgressBar } from '../ProgressBar.js ' ;
4
+ import { Theme } from '../Theme.js ' ;
5
5
6
6
describe ( 'ProgressBar' , ( ) : void => {
7
7
const template = ':bar :percent :etas :custom' ;
Original file line number Diff line number Diff line change 1
1
import { Terminal } from 'stdout-update/lib/Terminal' ;
2
2
import stripAnsi from 'strip-ansi' ;
3
3
4
- import { IProgressBarOptions } from '../ProgressBar' ;
5
- import { Task , TaskStatus } from '../Task' ;
6
- import { TaskTree } from '../TaskTree' ;
7
- import { Theme , ThemeOptions } from '../Theme' ;
4
+ import { IProgressBarOptions } from '../ProgressBar.js ' ;
5
+ import { Task , TaskStatus } from '../Task.js ' ;
6
+ import { TaskTree } from '../TaskTree.js ' ;
7
+ import { Theme , ThemeOptions } from '../Theme.js ' ;
8
8
9
9
describe ( 'Task' , ( ) : void => {
10
10
const title = 'task' ;
Original file line number Diff line number Diff line change 1
1
import { Terminal } from 'stdout-update/lib/Terminal' ;
2
2
import stripAnsi from 'strip-ansi' ;
3
3
4
- import { Task } from '../Task' ;
5
- import { ITaskTreeOptions , TaskTree } from '../TaskTree' ;
6
- import { Theme , ThemeOptions } from '../Theme' ;
4
+ import { Task } from '../Task.js ' ;
5
+ import { ITaskTreeOptions , TaskTree } from '../TaskTree.js ' ;
6
+ import { Theme , ThemeOptions } from '../Theme.js ' ;
7
7
8
8
describe ( 'TaskTree' , ( ) : void => {
9
9
const options : ITaskTreeOptions = { silent : true , autoClear : false } ;
Original file line number Diff line number Diff line change 1
1
import figures from 'figures' ;
2
2
import stripAnsi from 'strip-ansi' ;
3
3
4
- import { IndicationBadge , IndicationType , Theme } from '../Theme' ;
4
+ import { IndicationBadge , IndicationType , Theme } from '../Theme.js ' ;
5
5
6
6
describe ( 'Theme' , ( ) : void => {
7
7
const text = { input : '\\{\\{\\{t\\}e\\}x{red t}\\}' , output : '{{{t}e}xt}' } ;
Original file line number Diff line number Diff line change 1
- export { default } from './TaskTree' ;
1
+ export { default } from './TaskTree.js ' ;
You can’t perform that action at this time.
0 commit comments