Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 95d766b

Browse files
committed
ignored-names-importer
1 parent d4688cd commit 95d766b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

lib/ignored-names-importer.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export async function ignoredNamesImporter() {
2+
return await import('./ignored-names')
3+
}

lib/tree-view.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import AddDialog from './add-dialog'
1010
import MoveDialog from './move-dialog'
1111
import CopyDialog from './copy-dialog'
1212
IgnoredNames = null # Defer requiring until actually needed
13+
import {ignoredNamesImporter} from './ignored-names-importer.js'
1314

1415
import AddProjectsView from './add-projects-view'
1516

@@ -332,7 +333,7 @@ export default class TreeView
332333
addProjectsViewElement = @element.querySelector('#add-projects-view')
333334
@element.removeChild(addProjectsViewElement) if addProjectsViewElement
334335

335-
IgnoredNames ?= await import('./ignored-names')
336+
IgnoredNames ?= await ignoredNamesImporter()
336337

337338
@roots = for projectPath in projectPaths
338339
stats = fs.lstatSyncNoException(projectPath)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
"atom"
7575
],
7676
"ignore": [
77-
"/spec/fixtures/"
77+
"/spec/fixtures/",
78+
"lib/ignored-names-importer.js"
7879
]
7980
},
8081
"configSchema": {

0 commit comments

Comments
 (0)