Skip to content

Commit

Permalink
fix: fix json packages and ensure consistent order of its fields
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjoDiaz committed Aug 17, 2022
1 parent 1b27389 commit 0b0ce1e
Show file tree
Hide file tree
Showing 9 changed files with 175 additions and 130 deletions.
37 changes: 20 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "json2csv",
"version": "6.0.0",
"private": true,
"description": "Fast and highly configurable JSON to CSV converter",
"keywords": [
"json",
Expand All @@ -10,17 +11,29 @@
"convert",
"parse"
],
"author": {
"name": "Juanjo Díaz",
"email": "juanjo.diazmo@gmail.com"
"homepage": "http://juanjodiaz.github.io/json2csv",
"bugs": {
"url": "https://github.com/juanjoDiaz/json2csv/issues"
},
"license": "MIT",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/juanjodiaz/json2csv"
},
"homepage": "http://juanjodiaz.github.io/json2csv",
"license": "MIT",
"author": {
"name": "Juanjo Díaz",
"email": "[email protected]"
},
"workspaces": [
"packages/cli",
"packages/formatters",
"packages/node",
"packages/parsers",
"packages/test-helpers",
"packages/transforms",
"packages/whatwg",
"packages/test-performance"
],
"scripts": {
"docs:prebuild": "esbuild docs/docs-export.js --bundle --outfile=docs/json2csv.js",
"docs:preview": "docsify serve docs",
Expand Down Expand Up @@ -50,15 +63,5 @@
},
"volta": {
"node": "14.17.0"
},
"workspaces": [
"packages/cli",
"packages/formatters",
"packages/node",
"packages/parsers",
"packages/test-helpers",
"packages/transforms",
"packages/whatwg",
"packages/test-performance"
]
}
}
35 changes: 21 additions & 14 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,37 @@
"name": "@json2csv/cli",
"version": "6.0.0",
"description": "Command Line Interface to convert JSON to CSV.",
"keywords": [ "json", "to", "csv", "export", "convert", "parse"],
"type": "module",
"bin": {
"json2csv": "./bin/json2csv.js"
},
"scripts": {
"lint": "eslint bin test",
"test:raw": "node test",
"test": "npm run test:raw | tap-spec",
"test-with-coverage": "c8 --reporter=text npm test"
"keywords": [
"json",
"to",
"csv",
"export",
"convert",
"parse"
],
"homepage": "http://juanjodiaz.github.io/json2csv",
"bugs": {
"url": "https://github.com/juanjoDiaz/json2csv/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/juanjoDiaz/json2csv.git"
},
"license": "MIT",
"author": {
"name": "Juanjo Díaz",
"email": "[email protected]"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/juanjoDiaz/json2csv/issues"
"type": "module",
"bin": {
"json2csv": "./bin/json2csv.js"
},
"scripts": {
"lint": "eslint bin test",
"test": "npm run test:raw | tap-spec",
"test-with-coverage": "c8 --reporter=text npm test",
"test:raw": "node test"
},
"homepage": "http://juanjodiaz.github.io/json2csv",
"dependencies": {
"commander": "^9.3.0"
}
Expand Down
35 changes: 21 additions & 14 deletions packages/formatters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,35 @@
"name": "@json2csv/formatters",
"version": "6.0.0",
"description": "json2csv built-in formatters. A formatter is a function that receives the raw js value of a given type and formats it as a valid CSV cell.",
"keywords": [ "json", "to", "csv", "export", "convert", "parse"],
"type": "module",
"main": "src/index.js",
"exports": {
"./*": "./src/*.js",
".": "./src/index.js"
},
"scripts": {
"lint": "eslint src",
"test": "echo \"Error: no test specified\" && exit 1"
"keywords": [
"json",
"to",
"csv",
"export",
"convert",
"parse"
],
"homepage": "http://juanjodiaz.github.io/json2csv",
"bugs": {
"url": "https://github.com/juanjoDiaz/json2csv/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/juanjoDiaz/json2csv.git"
},
"license": "MIT",
"author": {
"name": "Juanjo Díaz",
"email": "[email protected]"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/juanjoDiaz/json2csv/issues"
"type": "module",
"exports": {
"./*": "./src/*.js",
".": "./src/index.js"
},
"homepage": "http://juanjodiaz.github.io/json2csv",
"main": "src/index.js",
"scripts": {
"lint": "eslint src",
"test": "echo \"Error: no test specified\" && exit 1"
}
}
39 changes: 23 additions & 16 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,37 @@
"name": "@json2csv/node",
"version": "6.0.0",
"description": "Node.js Transform and Async interface to convert JSON into CSV.",
"keywords": [ "json", "to", "csv", "export", "convert", "parse"],
"type": "module",
"main": "src/index.js",
"exports": {
"./*": "./src/*.js",
".": "./src/index.js"
},
"scripts": {
"lint": "eslint src test",
"test:raw": "node test",
"test": "npm run test:raw | tap-spec",
"test-with-coverage": "c8 --reporter=text npm test"
"keywords": [
"json",
"to",
"csv",
"export",
"convert",
"parse"
],
"homepage": "http://juanjodiaz.github.io/json2csv",
"bugs": {
"url": "https://github.com/juanjoDiaz/json2csv/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/juanjoDiaz/json2csv.git"
},
"license": "MIT",
"author": {
"name": "Juanjo Díaz",
"email": "[email protected]"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/juanjoDiaz/json2csv/issues"
"type": "module",
"exports": {
"./*": "./src/*.js",
".": "./src/index.js"
},
"homepage": "http://juanjodiaz.github.io/json2csv",
"main": "src/index.js",
"scripts": {
"lint": "eslint src test",
"test": "npm run test:raw | tap-spec",
"test-with-coverage": "c8 --reporter=text npm test",
"test:raw": "node test"
}
}
39 changes: 23 additions & 16 deletions packages/parsers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,39 @@
"name": "@json2csv/parsers",
"version": "6.0.0",
"description": "Pure Javascript JSON to CSV converter.",
"keywords": [ "json", "to", "csv", "export", "convert", "parse"],
"type": "module",
"main": "src/index.js",
"exports": {
"./*": "./src/*.js",
".": "./src/index.js"
},
"scripts": {
"lint": "eslint src test",
"test:raw": "node test",
"test": "npm run test:raw | tap-spec",
"test-with-coverage": "c8 --reporter=text npm test"
"keywords": [
"json",
"to",
"csv",
"export",
"convert",
"parse"
],
"homepage": "http://juanjodiaz.github.io/json2csv",
"bugs": {
"url": "https://github.com/juanjoDiaz/json2csv/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/juanjoDiaz/json2csv.git"
},
"license": "MIT",
"author": {
"name": "Juanjo Díaz",
"email": "[email protected]"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/juanjoDiaz/json2csv/issues"
"type": "module",
"exports": {
"./*": "./src/*.js",
".": "./src/index.js"
},
"main": "src/index.js",
"scripts": {
"lint": "eslint src test",
"test": "npm run test:raw | tap-spec",
"test-with-coverage": "c8 --reporter=text npm test",
"test:raw": "node test"
},
"homepage": "http://juanjodiaz.github.io/json2csv",
"dependencies": {
"@streamparser/json": "^0.0.7",
"lodash.get": "^4.4.2"
Expand Down
16 changes: 8 additions & 8 deletions packages/test-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
"name": "@json2csv/test-helpers",
"version": "6.0.0",
"description": "Test helper to test the json2csv libraries",
"devDependencies": {},
"scripts": {
"lint": "eslint **/*.js",
"test": "echo \"Error: no test specified\" && exit 1"
"homepage": "http://juanjodiaz.github.io/json2csv",
"bugs": {
"url": "https://github.com/juanjoDiaz/json2csv/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/juanjoDiaz/json2csv.git"
},
"license": "MIT",
"author": {
"name": "Juanjo Díaz",
"email": "[email protected]"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/juanjoDiaz/json2csv/issues"
"scripts": {
"lint": "eslint **/*.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"homepage": "http://juanjodiaz.github.io/json2csv",
"devDependencies": {}
}
30 changes: 15 additions & 15 deletions packages/test-performance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@
"convert",
"parse"
],
"type": "module",
"main": "index.js",
"devDependencies": {
"0x": "^5.3.1",
"benchmark": "^2.1.4"
},
"scripts": {
"lint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1",
"benchmark": "cd benchmarks && node",
"flamegraph": "0x --output-dir flamegraphs/results --open flamegraphs/flamegraph.js"
"homepage": "http://juanjodiaz.github.io/json2csv",
"bugs": {
"url": "https://github.com/juanjoDiaz/json2csv/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/juanjoDiaz/json2csv.git"
},
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/juanjoDiaz/json2csv/issues"
"author": "",
"type": "module",
"main": "index.js",
"scripts": {
"benchmark": "cd benchmarks && node",
"flamegraph": "0x --output-dir flamegraphs/results --open flamegraphs/flamegraph.js",
"lint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
},
"homepage": "http://juanjodiaz.github.io/json2csv",
"devDependencies": {
"0x": "^5.3.1",
"benchmark": "^2.1.4"
}
}
35 changes: 21 additions & 14 deletions packages/transforms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,37 @@
"name": "@json2csv/transforms",
"version": "6.0.0",
"description": "json2csv built-in transforms. A transform is a function that receives a data recod and returns a transformed record. Transforms are executed in order before converting the data record into a CSV row.",
"keywords": [ "json", "to", "csv", "export", "convert", "parse"],
"type": "module",
"main": "src/index.js",
"exports": {
"./*": "./src/*.js",
".": "./src/index.js"
},
"scripts": {
"lint": "eslint src",
"test": "echo \"Error: no test specified\" && exit 1"
"keywords": [
"json",
"to",
"csv",
"export",
"convert",
"parse"
],
"homepage": "http://juanjodiaz.github.io/json2csv",
"bugs": {
"url": "https://github.com/juanjoDiaz/json2csv/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/juanjoDiaz/json2csv.git"
},
"license": "MIT",
"author": {
"name": "Juanjo Díaz",
"email": "[email protected]"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/juanjoDiaz/json2csv/issues"
"type": "module",
"exports": {
"./*": "./src/*.js",
".": "./src/index.js"
},
"main": "src/index.js",
"scripts": {
"lint": "eslint src",
"test": "echo \"Error: no test specified\" && exit 1"
},
"homepage": "http://juanjodiaz.github.io/json2csv",
"dependencies": {
"lodash.get": "^4.4.2"
}
Expand Down
Loading

0 comments on commit 0b0ce1e

Please sign in to comment.