Skip to content

Commit 71452cc

Browse files
committed
Make main file more important than any other file
1 parent 4620e38 commit 71452cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common/src/templates/template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ export default class Template {
151151
return [
152152
configurationFiles.package &&
153153
this.getMainFromPackage(configurationFiles.package.parsed),
154+
...(this.mainFile || []),
154155
'/index.' + (this.isTypescript ? 'ts' : 'js'),
155156
'/src/index.' + (this.isTypescript ? 'ts' : 'js'),
156157
'/src/index.ts',
@@ -163,7 +164,6 @@ export default class Template {
163164
'/index.tsx',
164165
'/README.md',
165166
'/package.json',
166-
...(this.mainFile || []),
167167
].filter(x => x);
168168
}
169169

0 commit comments

Comments
 (0)