-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
127 lines (127 loc) · 3.51 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"name": "ltsv",
"description": "LTSV parser, formatter, validator and TransformStream",
"version": "2.0.0",
"author": "sasa+1 <[email protected]>",
"browser": "./dist/ltsv.module.js",
"devDependencies": {
"@tsconfig/strictest": "^2.0.1",
"@types/mocha": "^10.0.1",
"@types/node": "^20.5.1",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-node": "^11.1.0",
"espower-typescript": "^10.0.1",
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"karma": "^6.4.2",
"karma-chrome-launcher": "^3.2.0",
"karma-mocha": "^2.0.1",
"karma-rollup-preprocessor": "^7.0.8",
"lint-staged": "^14.0.0",
"microbundle": "^0.15.1",
"mocha": "^10.2.0",
"npm-run-all": "^4.1.5",
"power-assert": "^1.6.1",
"prettier": "^3.0.2",
"tsx": "^3.12.7",
"typedoc": "^0.24.8",
"typescript": "^5.1.6"
},
"engines": {
"node": ">=8.3"
},
"exports": {
".": {
"browser": "./dist/ltsv.module.mjs",
"default": "./dist/ltsv.modern.mjs",
"require": "./dist/ltsv.cjs",
"types": "./dist/src/ltsv.d.ts",
"umd": "./dist/ltsv.umd.js"
},
"./nodejs_stream": {
"default": "./dist/nodejs_stream/ltsv.modern.mjs",
"require": "./dist/nodejs_stream/ltsv.cjs",
"types": "./dist/src/nodejs_stream.d.ts"
},
"./whatwg_stream": {
"browser": "./dist/whatwg_stream/ltsv.module.mjs",
"default": "./dist/whatwg_stream/ltsv.modern.mjs",
"require": "./dist/whatwg_stream/ltsv.cjs",
"types": "./dist/src/whatwg_stream.d.ts",
"umd": "./dist/whatwg_stream/ltsv.umd.js"
}
},
"files": [
"dist/**/*"
],
"license": "MIT",
"lint-staged": {
"*.{js,ts}": [
"eslint",
"prettier --check"
],
"*.{md,yml}": [
"prettier --check"
],
"!package{,-lock}.json": "prettier --check",
"package.json": [
"npx fixpack --dryRun",
"prettier --check"
]
},
"main": "./dist/ltsv.cjs",
"mocha": {
"extension": [
"ts"
],
"loader": [
"tsx"
],
"spec": [
"test/**/*.ts"
],
"watch-files": [
"src/**/*.ts",
"test/**/*.ts"
]
},
"module": "./dist/ltsv.module.mjs",
"prettier": {
"singleQuote": true,
"trailingComma": "none"
},
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "https://github.com/sasaplus1/ltsv.js.git"
},
"scripts": {
"build": "run-p -l build:*",
"build-documents": "typedoc",
"build:main": "microbundle",
"build:nodejs_stream": "microbundle -i ./src/nodejs_stream.ts -o ./dist/nodejs_stream -f modern,esm,cjs --target node",
"build:whatwg_stream": "microbundle -i ./src/whatwg_stream.ts -o ./dist/whatwg_stream -f modern,esm,cjs,umd --target web",
"fix": "run-s fix:*",
"fix:eslint": "eslint --fix .",
"fix:fixpack": "npx fixpack",
"fix:prettier": "prettier --write './**/*.+(js|md|ts|yml)'",
"lint": "run-s lint:*",
"lint:eslint": "eslint .",
"lint:fixpack": "npx fixpack --dryRun",
"lint:prettier": "prettier --check './**/*.+(js|md|ts|yml)'",
"lint:tsc": "tsc --noEmit",
"prepare": "is-ci || husky install",
"pretest:browser": "run-s build:umd",
"test": "mocha",
"test:browser": "karma start --single-run"
},
"sideEffects": false,
"source": "./src/index.ts",
"type": "module",
"types": "./dist/src/ltsv.d.ts",
"umd:main": "./dist/ltsv.umd.js",
"unpkg": "./dist/ltsv.umd.js"
}