summaryrefslogtreecommitdiff
path: root/packages/create-astro/src
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2021-07-08 14:31:05 -0400
committerGravatar GitHub <noreply@github.com> 2021-07-08 14:31:05 -0400
commit5570bf7958a767db97f435c4b912a5e1879b593a (patch)
tree4c850e8daf00b74932098a0a198dd1c75f51d992 /packages/create-astro/src
parentb2428b399918bac582b1bc757740726d64d4e0da (diff)
downloadastro-5570bf7958a767db97f435c4b912a5e1879b593a.tar.gz
astro-5570bf7958a767db97f435c4b912a5e1879b593a.tar.zst
astro-5570bf7958a767db97f435c4b912a5e1879b593a.zip
Use new client:visible syntax in create-astro (#633)
Diffstat (limited to 'packages/create-astro/src')
-rw-r--r--packages/create-astro/src/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts
index d5fd05eab..c072399a6 100644
--- a/packages/create-astro/src/index.ts
+++ b/packages/create-astro/src/index.ts
@@ -152,7 +152,7 @@ export async function main() {
const componentName = path.basename(component.filename, path.extname(component.filename));
const absFileLoc = path.resolve(cwd, component.filename);
importStatements.push(`import ${componentName} from '${component.filename.replace(/^src/, '..')}';`);
- components.push(`<${componentName}:visible />`);
+ components.push(`<${componentName} client:visible />`);
await fs.promises.writeFile(absFileLoc, component.content);
})
);