diff --git a/.github/workflows/run-nitrogen-init.yml b/.github/workflows/run-nitrogen-init.yml index bd089007c2..9ff4f6810e 100644 --- a/.github/workflows/run-nitrogen-init.yml +++ b/.github/workflows/run-nitrogen-init.yml @@ -38,3 +38,15 @@ jobs: - name: Run nitrogen init outside the checkout working-directory: ${{ runner.temp }} run: bun run --bun nitrogen init react-native-math + + - name: Check that all template placeholders were replaced + working-directory: ${{ runner.temp }}/react-native-math + run: | + if find . -name '*$$*' | grep .; then + echo "::error::File names above still contain \$\$ template placeholders" + exit 1 + fi + if grep -rnIF '$$' .; then + echo "::error::File contents above still contain \$\$ template placeholders" + exit 1 + fi diff --git a/packages/nitro-core/js/src/HybridObject.ts b/packages/nitro-core/js/src/HybridObject.ts index bb6474d2db..d19f73fc1a 100644 --- a/packages/nitro-core/js/src/HybridObject.ts +++ b/packages/nitro-core/js/src/HybridObject.ts @@ -80,7 +80,7 @@ declare abstract class HybridObject { * @example * ```ts * // Image.nitro.ts - * import { iOS, type HybridObject } from 'nitro-core' + * import { Apple, type HybridObject } from 'nitro-core' * * export * from '#nitro/Image' * diff --git a/packages/nitrogen/src/init.ts b/packages/nitrogen/src/init.ts index cfe0f370c9..f8bb3b52a0 100644 --- a/packages/nitrogen/src/init.ts +++ b/packages/nitrogen/src/init.ts @@ -35,9 +35,9 @@ export async function initNewNitroModule(baseDirectory: string, moduleName: stri } await replaceTemplate(modulePath, `cxxNamespace`, cxxNamespace) - await replaceTemplate(modulePath, `android.namespace`, cxxNamespace) - await replaceTemplate(modulePath, `android.cxxLibName`, camelCaseName) - await replaceTemplate(modulePath, `apple.moduleName`, camelCaseName) + await replaceTemplate(modulePath, `androidNamespace`, cxxNamespace) + await replaceTemplate(modulePath, `androidCxxLibName`, camelCaseName) + await replaceTemplate(modulePath, `appleModuleName`, camelCaseName) await replaceTemplate(modulePath, `packageName`, moduleName) await replaceTemplate(modulePath, `packageDescription`, moduleName) await replaceTemplate(modulePath, `nitroVersion`, NITROGEN_VERSION)