File tree 6 files changed +14
-20
lines changed
6 files changed +14
-20
lines changed Original file line number Diff line number Diff line change 1
- /* eslint-disable import/no-duplicates */
2
-
3
1
declare module '*.vue' {
4
2
import type { defineComponent } from 'vue'
5
3
const Component : ReturnType < typeof defineComponent >
Original file line number Diff line number Diff line change 1
- /* eslint-disable @typescript-eslint/no-var-requires */
2
-
3
1
const ScriptSetup = require ( 'unplugin-vue2-script-setup/webpack' )
4
2
const Icons = require ( 'unplugin-icons/webpack' )
5
3
const IconsResolver = require ( 'unplugin-icons/resolver' )
Original file line number Diff line number Diff line change 3
3
"version" : " 0.19.8" ,
4
4
"packageManager" : " pnpm@7.1.5" ,
5
5
"description" : " Components auto importing for Vue" ,
6
- "homepage" : " https://github.com/antfu/unplugin-vue-components" ,
7
- "bugs" : " https://github.com/antfu/unplugin-vue-components/issues" ,
8
- "license" : " MIT" ,
9
6
"author" : " antfu <anthonyfu117@hotmail.com>" ,
7
+ "license" : " MIT" ,
8
+ "funding" : " https://github.com/sponsors/antfu" ,
9
+ "homepage" : " https://github.com/antfu/unplugin-vue-components" ,
10
10
"repository" : {
11
11
"type" : " git" ,
12
12
"url" : " https://github.com/antfu/unplugin-vue-components"
13
13
},
14
- "funding" : " https://github.com/sponsors/antfu" ,
15
- "main" : " dist/index.js" ,
16
- "module" : " dist/index.mjs" ,
17
- "types" : " index.d.ts" ,
14
+ "bugs" : " https://github.com/antfu/unplugin-vue-components/issues" ,
18
15
"exports" : {
19
16
"." : {
20
17
"require" : " ./dist/index.js" ,
50
47
"import" : " ./dist/esbuild.mjs"
51
48
}
52
49
},
53
- "files " : [
54
- " dist"
55
- ] ,
50
+ "main " : " dist/index.js " ,
51
+ "module" : " dist/index.mjs " ,
52
+ "types" : " index.d.ts " ,
56
53
"typesVersions" : {
57
54
"*" : {
58
55
"*" : [
59
56
" ./dist/*"
60
57
]
61
58
}
62
59
},
60
+ "files" : [
61
+ " dist"
62
+ ],
63
+ "engines" : {
64
+ "node" : " >=14"
65
+ },
63
66
"scripts" : {
64
67
"build" : " tsup && esno scripts/postbuild.ts" ,
65
68
"dev" : " tsup --watch src" ,
118
121
"vite" : " ^2.9.12" ,
119
122
"vitest" : " ^0.15.0" ,
120
123
"vue" : " 3.2.37"
121
- },
122
- "engines" : {
123
- "node" : " >=14"
124
124
}
125
125
}
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ async function run() {
10
10
cwd : resolve ( __dirname , '../dist' ) ,
11
11
} )
12
12
for ( const file of files ) {
13
- // eslint-disable-next-line no-console
14
13
console . log ( '[postbuild]' , basename ( file ) )
15
14
let code = await fs . readFile ( file , 'utf8' )
16
15
code = code . replace ( 'exports.default =' , 'module.exports =' )
Original file line number Diff line number Diff line change @@ -170,7 +170,6 @@ export class Context {
170
170
. forEach ( ( path ) => {
171
171
const name = pascalCase ( getNameFromFilePath ( path , this . options ) )
172
172
if ( this . _componentNameMap [ name ] && ! this . options . allowOverrides ) {
173
- // eslint-disable-next-line no-console
174
173
console . warn ( `[unplugin-vue-components] component "${ name } "(${ path } ) has naming conflicts with other components, ignored.` )
175
174
return
176
175
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function searchComponents(ctx: Context) {
16
16
} )
17
17
18
18
if ( ! files . length && ! ctx . options . resolvers ?. length )
19
- // eslint-disable-next-line no-console
19
+
20
20
console . warn ( '[unplugin-vue-components] no components found' )
21
21
22
22
debug ( `${ files . length } components found.` )
You can’t perform that action at this time.
0 commit comments