-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
88 lines (88 loc) · 2.8 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
{
"name": "csv42",
"version": "5.0.3",
"description": "A small and fast CSV parser with support for nested JSON",
"repository": {
"type": "git",
"url": "https://github.com/josdejong/csv42.git"
},
"keywords": [
"csv",
"json",
"csv2json",
"json2csv",
"fast",
"simple",
"nested",
"flatten",
"format",
"parse",
"delimiter",
"header",
"eol",
"fields"
],
"type": "module",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"browser": "lib/umd/csv42.js",
"types": "lib/types/index.d.ts",
"exports": {
".": {
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"browser": "./lib/umd/csv42.js",
"types": "./lib/types/index.d.ts"
}
},
"sideEffects": false,
"scripts": {
"test": "vitest src",
"test-ci": "vitest run src",
"coverage": "vitest run src --coverage",
"lint": "prettier --check src benchmark README.md *.json",
"format": "prettier --write src benchmark README.md *.json",
"build": "npm-run-all build:**",
"build:clean": "del-cli lib",
"build:esm": "babel src --out-dir lib/esm --extensions \".ts\" --source-maps --config-file ./babel.config.json",
"build:cjs": "babel src --out-dir lib/cjs --extensions \".ts\" --source-maps --config-file ./babel-cjs.config.json && cpy tools/cjs/package.json lib/cjs --flat",
"build:umd": "rollup lib/esm/index.js --format umd --name csv42 --sourcemap --output.file lib/umd/csv42.js && cpy tools/cjs/package.json lib/umd --flat",
"build:umd:min": "uglifyjs --compress --mangle --source-map --comments --output lib/umd/csv42.min.js -- lib/umd/csv42.js",
"build:types": "tsc --project tsconfig-types.json",
"build:validate": "vitest run test-lib",
"build-and-test": "npm run test-ci && npm run lint && npm run build",
"release": "npm-run-all release:**",
"release:build-and-test": "npm run build-and-test",
"release:version": "standard-version",
"release:push": "git push && git push --tag",
"release:publish": "npm publish",
"release-dry-run": "npm run build-and-test && standard-version --dry-run",
"prepare": "husky"
},
"devDependencies": {
"@babel/cli": "7.25.9",
"@babel/core": "7.26.0",
"@babel/plugin-transform-typescript": "7.25.9",
"@babel/preset-env": "7.26.0",
"@babel/preset-typescript": "7.26.0",
"@commitlint/cli": "19.5.0",
"@commitlint/config-conventional": "19.5.0",
"@vitest/coverage-v8": "2.1.4",
"cpy-cli": "5.0.0",
"csv-spectrum": "1.0.0",
"del-cli": "6.0.0",
"husky": "9.1.6",
"npm-run-all": "4.1.5",
"prettier": "3.3.3",
"standard-version": "9.5.0",
"typescript": "5.6.3",
"uglify-js": "3.19.3",
"vite": "5.4.10",
"vitest": "2.1.4"
},
"files": [
"README.md",
"LICENSE.md",
"lib"
]
}