From ec368e051b549d55d3b5691b36bc39f7e49b0cb4 Mon Sep 17 00:00:00 2001 From: Munir I Said Date: Wed, 4 Sep 2024 23:48:13 +0300 Subject: [PATCH] chore: change "" to //g in creating dynamic capacitor.config.js This is to generate correct path for both android and ios --- runcap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runcap.js b/runcap.js index 3166af6..f545a39 100644 --- a/runcap.js +++ b/runcap.js @@ -42,7 +42,7 @@ const CAPACITOR_CONFIG_FILE = 'capacitor.config.ts'; // Create the bare capacitor.config.ts for the given project fs.writeFileSync( CAPACITOR_CONFIG_FILE, - capacitorConfig.replace("", args.project) + capacitorConfig.replace(//g, args.project) ); // Copy the project specific capacitor config file into