File tree Expand file tree Collapse file tree 5 files changed +2412
-2120
lines changed
examples/react-native-project Expand file tree Collapse file tree 5 files changed +2412
-2120
lines changed Original file line number Diff line number Diff line change 2
2
"extends" : " @lcdev/tsconfig" ,
3
3
"compilerOptions" : {
4
4
"rootDir" : " ./src" ,
5
- "outDir" : " ./dist"
5
+ "outDir" : " ./dist" ,
6
+ "lib" : [" dom" ]
6
7
},
7
8
"include" : [" src" ],
8
9
"exclude" : [" node_modules" ],
Original file line number Diff line number Diff line change 1
1
import { join } from 'path' ;
2
2
import { Compiler } from 'webpack' ;
3
- import HtmlWebpackPlugin from 'html-webpack-plugin' ;
3
+ import HtmlWebpackPlugin , { HtmlTagObject } from 'html-webpack-plugin' ;
4
4
import type { ConfigLoadingOptions , SchemaLoadingOptions } from '@app-config/main' ;
5
5
6
6
import { regex } from './loader' ;
@@ -91,7 +91,9 @@ export default class AppConfigPlugin implements Options {
91
91
'AppConfigPlugin' ,
92
92
async ( { headTags, ...html } ) => {
93
93
// remove placeholder <script id="app-config"></script> if it exists
94
- const newTags = headTags . filter ( ( { attributes } ) => attributes . id !== 'app-config' ) ;
94
+ const newTags : HtmlTagObject [ ] = headTags . filter (
95
+ ( { attributes } ) => attributes . id !== 'app-config' ,
96
+ ) ;
95
97
96
98
newTags . push ( {
97
99
tagName : 'script' ,
Original file line number Diff line number Diff line change 27
27
"@lcdev/tsconfig" : " 0.1" ,
28
28
"@types/react" : " 16" ,
29
29
"@types/react-native" : " 0.63" ,
30
- "typescript" : " 3 "
30
+ "typescript" : " 4 "
31
31
}
32
32
}
Original file line number Diff line number Diff line change 56
56
"extends" : [
57
57
" @lcdev/commitlint"
58
58
]
59
+ },
60
+ "volta" : {
61
+ "node" : " 16.15.0"
59
62
}
60
63
}
You can’t perform that action at this time.
0 commit comments