Skip to content

Commit 7106211

Browse files
authored
Merge pull request #354 from patrickkabwe/fix/skip-postcodegen-kotlin
fix: skip postcodegen when kotlin is enabled
2 parents f5a307b + 55405d7 commit 7106211

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/generate-nitro-package.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ export class NitroModuleFactory {
181181
...newWorkspacePackageJsonFile.scripts,
182182
build: `${this.config.pm} run typecheck && bob build`,
183183
codegen: `nitrogen --logLevel="debug" && ${this.config.pm} run build${this.config.langs.includes(SupportedLang.KOTLIN) ? ' && node post-script.js' : ''}`,
184-
postcodegen: this.getPostCodegenScript(),
184+
postcodegen: !this.config.langs.includes(SupportedLang.KOTLIN)
185+
? this.getPostCodegenScript()
186+
: undefined,
185187
}
186188

187189
// Resolve and pin latest Nitro tools to concrete versions

0 commit comments

Comments
 (0)