Skip to content

Commit

Permalink
fix: get plugin package name for config docs (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Feb 7, 2023
1 parent 2e9aa00 commit 864243b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function buildExamples(c: DocsConfigInterface) {
o.push(`In \`capacitor.config.ts\`:`);
o.push(``);
o.push(`\`\`\`ts`);
o.push(`/// <reference types="@capacitor/${slugify(c.name.replace(/([a-z])([A-Z])/g, '$1 $2'))}" />`);
o.push(`/// <reference types="${process.env.npm_package_name}" />`);
o.push(``);
o.push(`import { CapacitorConfig } from '@capacitor/cli';`);
o.push(``);
Expand Down

0 comments on commit 864243b

Please sign in to comment.