File tree Expand file tree Collapse file tree 4 files changed +1721
-1711
lines changed Expand file tree Collapse file tree 4 files changed +1721
-1711
lines changed Original file line number Diff line number Diff line change 1+ $files = git ls- files
2+
3+ foreach ($file in $files ) {
4+ $content = Get-Content $file - Raw
5+ $content = $content -replace " `r`n " , " `n "
6+ Set-Content - NoNewline - Path $file - Value $content
7+ }
8+
9+ git add - A
10+ git commit - m " Converted line endings from CRLF to LF"
Original file line number Diff line number Diff line change 1- 'use strict'
2-
3- import analyzer from './module'
4-
5- const appendExportPlugin = ( ) => {
6- return {
7- name : 'append-export-default' ,
8- transform : ( code ) => {
9- return { code : `${ code } \nplugin.default = plugin` }
10- }
11- }
12- }
13-
14- export default {
15- plugins : [
16- analyzer ( ) ,
17- appendExportPlugin ( )
18- ] ,
19- input : 'module.js' ,
20- output : {
21- file : 'index.js' ,
22- format : 'cjs' ,
23- exports : 'default'
24- }
25- }
1+ 'use strict'
2+
3+ import analyzer from './module'
4+
5+ const appendExportPlugin = ( ) => {
6+ return {
7+ name : 'append-export-default' ,
8+ transform : ( code ) => {
9+ return { code : `${ code } \nplugin.default = plugin` }
10+ }
11+ }
12+ }
13+
14+ export default {
15+ plugins : [
16+ analyzer ( ) ,
17+ appendExportPlugin ( )
18+ ] ,
19+ input : 'module.js' ,
20+ output : {
21+ file : 'index.js' ,
22+ format : 'cjs' ,
23+ exports : 'default'
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments