Skip to content

Commit b0490ed

Browse files
committed
feat: rename .unimport-components.json to .components-info.json
1 parent eef2e0b commit b0490ed

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ node_modules
22
.DS_Store
33
dist
44
.idea
5-
.unimport-components.json
5+
.components-info.json
66
components.d.ts

src/core/context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class Context {
4545

4646
if (this.options.dumpComponentsInfo) {
4747
const dumpComponentsInfo = this.options.dumpComponentsInfo === true
48-
? './.unimport-components.json'
48+
? './.components-info.json'
4949
: this.options.dumpComponentsInfo ?? false
5050

5151
this.dumpComponentsInfoPath = dumpComponentsInfo
@@ -312,7 +312,7 @@ export class Context {
312312
if (!Object.keys(this._componentNameMap).length)
313313
return
314314

315-
debug.components('generating components.json')
315+
debug.components('generating components-info')
316316
return writeComponentsJson(this, removeUnused)
317317
}
318318

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export interface Options {
210210
* Save unimport components into a JSON file for other tools to consume.
211211
* Provide a filepath to save the JSON file.
212212
*
213-
* When set to `true`, it will save to `./.unimport-components.json`
213+
* When set to `true`, it will save to `./.components-info.json`
214214
*
215215
* @default false
216216
*/

0 commit comments

Comments
 (0)