File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- import fs from 'fs' ;
2
- import path from 'path' ;
1
+ import fs from 'node: fs' ;
2
+ import path from 'node: path' ;
3
3
4
+ import logger from '@docusaurus/logger' ;
4
5
import { Config } from '@docusaurus/types' ;
5
6
import npm2yarn from '@docusaurus/remark-plugin-npm2yarn' ;
6
7
import { themes as prismThemes } from 'prism-react-renderer' ;
25
26
'utf-8'
26
27
) ;
27
28
} catch {
28
- console . warn ( 'No .sha file found in docs/latest directory' ) ;
29
+ logger . warn ( 'No .sha file found in docs/latest directory' ) ;
29
30
}
30
31
31
32
const config : Config = {
Original file line number Diff line number Diff line change @@ -53,8 +53,7 @@ const start = async (source: string): Promise<void> => {
53
53
destination : DOCS_FOLDER ,
54
54
downloadMatch : '/docs/' ,
55
55
} ) ;
56
-
57
- await fs . writeFile ( path . join ( DOCS_FOLDER , '.sha' ) , source ) ;
56
+ await fs . writeFile ( path . join ( DOCS_FOLDER , '.sha' ) , target ) ;
58
57
} else if ( existsSync ( source ) ) {
59
58
await copy ( {
60
59
target : source ,
You can’t perform that action at this time.
0 commit comments