Skip to content

Commit

Permalink
fix: solve project generation issue on version 221.*
Browse files Browse the repository at this point in the history
  • Loading branch information
nekofar committed Apr 12, 2022
1 parent 6982ada commit 616a6ec
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ class RemixCliProjectGenerator: NpmPackageProjectGenerator() {

override fun filters(project: Project, baseDir: VirtualFile): Array<Filter> = emptyArray()

override fun customizeModule(baseDir: VirtualFile, entry: ContentEntry?) { /* Do nothing */ }
override fun customizeModule(baseDir: VirtualFile, entry: ContentEntry?) { /* Do nothing */
}

override fun packageName() = packageName

override fun presentablePackageName() = RemixBundle.message("remix.project.generator.presentable.package.name")

override fun getNpxCommands() = listOf(NpxPackageDescriptor.NpxCommand(packageName, executable))

override fun generatorArgs(project: Project?, dir: VirtualFile?, settings: Settings?) = arrayOf(".")
override fun generatorArgs(project: Project?, dir: VirtualFile?, settings: Settings?) =
project?.let { arrayOf(it.name) }

override fun generateInTemp() = true
}

0 comments on commit 616a6ec

Please sign in to comment.