Skip to content

Commit 5196de4

Browse files
🐛 fixing context
1 parent f028f6f commit 5196de4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

generator/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ module.exports = (api, context) => {
2929
const useLint = api.hasPlugin('eslint')
3030
const usesTypescript = api.hasPlugin('typescript')
3131
const extension = usesTypescript ? 'ts' : 'js'
32-
componentName = camelCase(componentName, { pascalCase: true });
33-
context.componentName = componentName
32+
context.componentName = camelCase(componentName, { pascalCase: true });
3433
const packageName = api.generator.pkg.name
3534
context.packageName = packageName
3635
context.useLint = useLint

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-cli-plugin-component",
3-
"version": "1.10.2",
3+
"version": "1.10.3",
44
"description": "vue-cli 3 plugin to create shareable component",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)