Skip to content

Commit 6c5ea3e

Browse files
fix: update version to 1.2.3 in package.json and refine function type definitions in init.ts
1 parent c461bf3 commit 6c5ea3e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tools/nx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@firemono/nx",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "Nx plugin for Firebase development with proper architecture - Functions as Nx apps building to dist, live reloading, and auto-persisted emulator data",
55
"author": "Johannes Firemono",
66
"license": "MIT",

tools/nx/src/generators/init-app/init.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ export default defineConfig(() => ({
393393
reporters: ['default'],
394394
coverage: {
395395
reportsDirectory: '../../../coverage/${functionsAppRoot}',
396-
provider: 'v8' as const,
396+
provider: 'v8',
397397
},
398398
},
399399
}));`;
@@ -646,7 +646,8 @@ export default async function (tree: Tree, schema: GeneratorOptions) {
646646
if (tree.exists(firebaseJsonPath)) {
647647
const firebaseConfig = JSON.parse(tree.read(firebaseJsonPath, 'utf8') || '{}');
648648
if (firebaseConfig.functions && Array.isArray(firebaseConfig.functions)) {
649-
firebaseConfig.functions = firebaseConfig.functions.map((func: any) => {
649+
firebaseConfig.functions = firebaseConfig.functions.map((func: { predeploy?: string; source?: string; [key: string]: unknown }) => {
650+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
650651
const { predeploy, ...rest } = func;
651652
return {
652653
...rest,

0 commit comments

Comments
 (0)