turf/package.json
James Beard 4469661e09
Replace ts-node with tsx in doc and test related build scripts (#2489)
* MRL configuration changes to replace ts-node with tsx, a more robust TS runtime. Will run MRL --fix and commit per-package changes next.

* JS projects can also rely on tsx to run scripts that used to be run by node.

* Need to keep ts-node around (at the monorepo level at least) for monorepolint.

* Almost entirely MRL automatic fixes for tsx dev dependencies, bench, doc, and test:tape. Hand edited last-checks scripts in packages/turf/
2023-09-10 20:15:59 -04:00

73 lines
2.0 KiB
JSON

{
"private": true,
"workspaces": [
"packages/*"
],
"funding": "https://opencollective.com/turf",
"scripts": {
"lint": "npm-run-all lint:*",
"lint:eslint": "eslint packages",
"lint:prettier": "prettier --check .",
"lint:mrl": "mrl check",
"lint:escheck-require": "es-check es8 packages/*/dist/js/index.js packages/turf/turf.min.js",
"lint:escheck-esm": "es-check --module es8 packages/*/dist/es/index.js",
"lint:escheck-es5": "es-check es5 packages/turf/turf.min.js",
"postlint": "documentation lint packages/turf-*/index.js",
"prepare": "lerna bootstrap && lerna run build && node ./scripts/add-import-extensions.js",
"pretest": "npm run lint",
"test": "lerna run test",
"posttest": "lerna run --scope @turf/turf last-checks",
"docs": "node ./scripts/generate-readmes"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"package.json": [
"mrl check --paths"
],
"**/*.{js,ts}": [
"eslint --fix",
"prettier --write"
],
"packages/*/index.{js,ts}": [
"./scripts/generate-readmes"
],
"**/*": "prettier --write --ignore-unknown"
},
"devDependencies": {
"@types/geojson": "7946.0.8",
"@types/node": "^17.0.2",
"@typescript-eslint/eslint-plugin": "^4.8.0",
"@typescript-eslint/parser": "^4.8.0",
"acorn": "^7.4.1",
"camelcase": "*",
"d3-queue": "*",
"decamelize": "*",
"dependency-tree": "^8.1.2",
"documentation": "^13.2.5",
"es-check": "^5.1.4",
"eslint": "~7.13.0",
"eslint-config-prettier": "^6.15.0",
"esm": "^3.2.25",
"fs-extra": "*",
"husky": "^4.2.3",
"lerna": "^4.0.0",
"lint-staged": "^10.0.8",
"load-json-file": "*",
"meow": "*",
"monorepolint": "^0.5.0-alpha.20",
"npm-run-all": "^4.1.5",
"prettier": "^2.1.2",
"progress": "*",
"rollup": "^2.34.2",
"tape": "*",
"ts-node": "^9.0.0",
"tsx": "^3.12.8",
"typescript": "^3.8.3",
"yamljs": "*"
}
}