diff --git a/src/main/kotlin/com/nekofar/milad/intellij/remix/cli/RemixCliProjectGenerator.kt b/src/main/kotlin/com/nekofar/milad/intellij/remix/cli/RemixCliProjectGenerator.kt index 44340f8..f7ae3de 100644 --- a/src/main/kotlin/com/nekofar/milad/intellij/remix/cli/RemixCliProjectGenerator.kt +++ b/src/main/kotlin/com/nekofar/milad/intellij/remix/cli/RemixCliProjectGenerator.kt @@ -21,7 +21,8 @@ class RemixCliProjectGenerator: NpmPackageProjectGenerator() { override fun filters(project: Project, baseDir: VirtualFile): Array = emptyArray() - override fun customizeModule(baseDir: VirtualFile, entry: ContentEntry?) { /* Do nothing */ } + override fun customizeModule(baseDir: VirtualFile, entry: ContentEntry?) { /* Do nothing */ + } override fun packageName() = packageName @@ -29,5 +30,8 @@ class RemixCliProjectGenerator: NpmPackageProjectGenerator() { 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 } \ No newline at end of file