File tree 4 files changed +26
-5
lines changed
4 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 57
57
"@types/node" : " ^12.6.8" ,
58
58
"@types/prompts" : " 2.0.8" ,
59
59
"@types/tar" : " 4.0.3" ,
60
- "@vercel/ncc" : " ^0.27.0 " ,
60
+ "@vercel/ncc" : " ^0.36.1 " ,
61
61
"babel-jest" : " ^26.0.1" ,
62
62
"chalk" : " 2.4.2" ,
63
63
"commander" : " 2.20.0" ,
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ export async function resolveTemplateArgAsync(
151
151
// @ts -ignore
152
152
repoUrl = new URL ( template ) ;
153
153
} catch ( error ) {
154
+ // @ts -expect-error
154
155
if ( error . code !== 'ERR_INVALID_URL' ) {
155
156
oraInstance . fail ( error ) ;
156
157
process . exit ( 1 ) ;
Original file line number Diff line number Diff line change @@ -30,6 +30,23 @@ class Transformer extends Minipass {
30
30
}
31
31
}
32
32
33
+ // Files and directories that have `_` as their first character in React Native CLI templates
34
+ // These should be transformed to have `.` as the first character
35
+ const UNDERSCORED_DOTFILES = [
36
+ 'buckconfig' ,
37
+ 'eslintrc.js' ,
38
+ 'flowconfig' ,
39
+ 'gitattributes' ,
40
+ 'gitignore' ,
41
+ 'prettierrc.js' ,
42
+ 'watchmanconfig' ,
43
+ 'editorconfig' ,
44
+ 'bundle' ,
45
+ 'ruby-version' ,
46
+ 'node-version' ,
47
+ 'xcode.env' ,
48
+ ] ;
49
+
33
50
export function createEntryResolver ( name : string ) {
34
51
return ( entry : ReadEntry ) => {
35
52
if ( name ) {
@@ -46,6 +63,9 @@ export function createEntryResolver(name: string) {
46
63
// See: https://github.com/npm/npm/issues/1862
47
64
entry . path = entry . path . replace ( / g i t i g n o r e $ / , '.gitignore' ) ;
48
65
}
66
+ for ( const fileName of UNDERSCORED_DOTFILES ) {
67
+ entry . path = entry . path . replace ( `_${ fileName } ` , `.${ fileName } ` ) ;
68
+ }
49
69
} ;
50
70
}
51
71
Original file line number Diff line number Diff line change 1310
1310
semver "^6.3.0"
1311
1311
tsutils "^3.17.1"
1312
1312
1313
- " @vercel/ncc@^0.27.0 " :
1314
- version "0.27.0 "
1315
- resolved "https://registry.yarnpkg.com/@vercel/ncc/-/ncc-0.27.0 .tgz#c0cfeebb0bebb56052719efa4a0ecc090a932c76 "
1316
- integrity sha512-DllIJQapnU2YwewIhh/4dYesmMQw3h2cFtabECc/zSJHqUbNa0eJuEkRa6DXbZvh1YPWBtYQoPV17NlDpBw1Vw ==
1313
+ " @vercel/ncc@^0.36.1 " :
1314
+ version "0.36.1 "
1315
+ resolved "https://registry.yarnpkg.com/@vercel/ncc/-/ncc-0.36.1 .tgz#d4c01fdbbe909d128d1bf11c7f8b5431654c5b95 "
1316
+ integrity sha512-S4cL7Taa9yb5qbv+6wLgiKVZ03Qfkc4jGRuiUQMQ8HGBD5pcNRnHeYM33zBvJE4/zJGjJJ8GScB+WmTsn9mORw ==
1317
1317
1318
1318
abab@^2.0.3 :
1319
1319
version "2.0.3"
You can’t perform that action at this time.
0 commit comments