Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/run-nitrogen-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion packages/nitro-core/js/src/HybridObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
*
Expand Down
6 changes: 3 additions & 3 deletions packages/nitrogen/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading