-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathpackage.json
64 lines (64 loc) · 2.42 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"name": "xml-formatter",
"version": "3.6.4",
"repository": "github:chrisbottin/xml-formatter",
"bugs": {
"url": "https://github.com/chrisbottin/xml-formatter/issues"
},
"homepage": "https://github.com/chrisbottin/xml-formatter#readme",
"description": "Converts a XML string into a human readable format (pretty print) while respecting the xml:space attribute",
"author": "Chris Bottin <[email protected]>",
"license": "MIT",
"main": "./dist/cjs/index.js",
"es2015": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"sideEffects": false,
"scripts": {
"lint": "eslint . --ext=js,ts",
"clean": "rm -rf ./dist",
"compile": "npm run clean && npm run lint && npm run compile:commonjs && npm run compile:esnext && npm run compile:types && npm run compile:browser",
"compile:commonjs": "tsc --module commonjs --outDir ./dist/cjs --noEmit false",
"compile:esnext": "tsc --module esnext --outDir ./dist/esm --noEmit false",
"compile:types": "tsc --emitDeclarationOnly --declaration --declarationMap --outDir ./dist/types --noEmit false",
"compile:browser": "mkdir -p ./dist/browser && npm run compile:browser:require && npm run compile:browser:singleton",
"compile:browser:require": "browserify -g [ babelify --presets [ @babel/preset-env ] ] -r ./dist/cjs/index.js:xml-formatter -o ./dist/browser/xml-formatter.js",
"compile:browser:singleton": "browserify -g [ babelify --presets [ @babel/preset-env ] ] -r ./dist/cjs/index.js:xml-formatter -o ./dist/browser/xml-formatter-singleton.js -s xmlFormatter",
"test": "mocha --require=ts-node/register --extension=ts --spec=test",
"prepublishOnly": "echo Please use publish.sh && exit 1"
},
"engines": {
"node": ">= 16"
},
"keywords": [
"xml",
"pretty",
"print",
"pretty-print",
"indent",
"parser",
"formatter",
"xml:space",
"preserve"
],
"dependencies": {
"xml-parser-xo": "^4.1.2"
},
"devDependencies": {
"@babel/core": "^7.15.8",
"@babel/preset-env": "^7.15.8",
"@types/chai": "^4.3.3",
"@types/glob": "^7.2.0",
"@types/mocha": "^7.0.2",
"@types/node": "^14.18.29",
"@typescript-eslint/eslint-plugin": "^5.37.0",
"@typescript-eslint/parser": "^5.37.0",
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"chai": "^4.3.4",
"eslint": "^6.8.0",
"glob": "^7.1.7",
"mocha": "^10.2.0",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
}
}