Skip to content

Commit 864243b

Browse files
authored
fix: get plugin package name for config docs (#45)
1 parent 2e9aa00 commit 864243b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/output.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function buildExamples(c: DocsConfigInterface) {
248248
o.push(`In \`capacitor.config.ts\`:`);
249249
o.push(``);
250250
o.push(`\`\`\`ts`);
251-
o.push(`/// <reference types="@capacitor/${slugify(c.name.replace(/([a-z])([A-Z])/g, '$1 $2'))}" />`);
251+
o.push(`/// <reference types="${process.env.npm_package_name}" />`);
252252
o.push(``);
253253
o.push(`import { CapacitorConfig } from '@capacitor/cli';`);
254254
o.push(``);

0 commit comments

Comments
 (0)