create-tether-app 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -412,7 +412,10 @@ async function removeExampleComponents(targetDir) {
|
|
|
412
412
|
if (await fs2.pathExists(appPath)) {
|
|
413
413
|
let content = await fs2.readFile(appPath, "utf-8");
|
|
414
414
|
content = content.replace(/import.*Chat.*from.*\n?/g, "");
|
|
415
|
-
content = content.replace(
|
|
415
|
+
content = content.replace(
|
|
416
|
+
/\s*\{status === "connected" && <Chat\s*\/>\}/g,
|
|
417
|
+
""
|
|
418
|
+
);
|
|
416
419
|
await fs2.writeFile(appPath, content);
|
|
417
420
|
}
|
|
418
421
|
}
|