Skip to content

Commit 3956c40

Browse files
committed
get name from manifest
1 parent 241bdfe commit 3956c40

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import { DOMParser } from '@xmldom/xmldom';
22
import { Transform, type TransformCallback } from 'node:stream';
33
import kleur from 'kleur';
44
import PluginError from 'plugin-error';
5+
import { name as packageName } from '../package.json';
56

67
import type Vinyl from 'vinyl';
78

8-
const packageName = 'gulp-xml-validator';
9-
109
/**
1110
* Gulp plugin to validate XML files using the xmldom library.
1211
* @returns {Transform} A transform stream that validates XML files.

0 commit comments

Comments
 (0)