File tree Expand file tree Collapse file tree 3 files changed +4
-171
lines changed Expand file tree Collapse file tree 3 files changed +4
-171
lines changed Original file line number Diff line number Diff line change 4848
4949 - name : Package
5050 run : |
51- node ./out/ build/update-readme.js
51+ node ./build/update-readme.cjs
5252 declare -A targets
5353 targets["win32-x64"]=win32
5454 targets["win32-arm64"]=win32
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33 * Licensed under the MIT License. See LICENSE file in the project root for license information.
44 *-----------------------------------------------------------------------------------------------*/
55
6- import { readFileSync , writeFileSync } from 'fs-extra' ;
6+ const fs = require ( 'fs-extra' ) ;
77
8- const readme = readFileSync ( './README.md' ) ;
8+ const readme = fs . readFileSync ( './README.md' ) ;
99
1010const lines = `${ readme } ` . split ( '\n' ) ;
1111
1212const index = lines . findIndex ( ( line ) => line . includes ( '## Overview' ) ) ;
1313lines . splice ( 0 , index + 1 ) ;
14- writeFileSync ( './README.md' , lines . join ( '\n' ) ) ;
14+ fs . writeFileSync ( './README.md' , lines . join ( '\n' ) ) ;
You can’t perform that action at this time.
0 commit comments