package.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "name": "ktx-parse",
  3. "version": "0.5.0",
  4. "description": "KTX 2.0 (.ktx2) parser and serializer.",
  5. "type": "module",
  6. "sideEffects": false,
  7. "source": "./src/index.ts",
  8. "types": "./dist/index.d.ts",
  9. "main": "./dist/ktx-parse.cjs",
  10. "module": "./dist/ktx-parse.esm.js",
  11. "exports": {
  12. "types": "./dist/index.d.ts",
  13. "require": "./dist/ktx-parse.cjs",
  14. "default": "./dist/ktx-parse.modern.js"
  15. },
  16. "repository": "github:donmccurdy/ktx-parse",
  17. "author": "Don McCurdy <dm@donmccurdy.com>",
  18. "license": "MIT",
  19. "scripts": {
  20. "dist": "microbundle --format cjs,esm,modern --no-compress --define PACKAGE_VERSION=$npm_package_version",
  21. "watch": "microbundle watch --format cjs,esm,modern --no-compress --define PACKAGE_VERSION=$npm_package_version",
  22. "test": "ava test/test.ts",
  23. "coverage": "c8 --reporter=lcov --reporter=text ava test/test.ts --tap",
  24. "coverage:report": "c8 report --reporter=text-lcov > coverage/coverage.lcov",
  25. "docs": "typedoc src/index.ts --plugin typedoc-plugin-markdown --out ./docs",
  26. "preversion": "yarn dist && yarn test",
  27. "version": "rimraf dist/* && yarn dist && yarn docs && git add -u",
  28. "postversion": "git push && git push --tags && npm publish && yarn coverage:report"
  29. },
  30. "devDependencies": {
  31. "@typescript-eslint/eslint-plugin": "5.53.0",
  32. "ava": "5.2.0",
  33. "c8": "7.13.0",
  34. "eslint": "8.34.0",
  35. "eslint-config-prettier": "8.6.0",
  36. "glob": "8.1.0",
  37. "glob-promise": "6.0.2",
  38. "microbundle": "0.15.1",
  39. "prettier": "2.8.4",
  40. "rimraf": "4.1.2",
  41. "source-map-support": "0.5.21",
  42. "ts-node": "10.9.1",
  43. "typedoc": "0.23.25",
  44. "typedoc-plugin-markdown": "3.14.0",
  45. "typescript": "4.9.5"
  46. },
  47. "files": [
  48. "dist/",
  49. "src/",
  50. "README.md",
  51. "LICENSE",
  52. "package.json"
  53. ],
  54. "browserslist": [
  55. "defaults",
  56. "not IE 11",
  57. "node >= 14"
  58. ],
  59. "ava": {
  60. "extensions": {
  61. "ts": "module"
  62. },
  63. "nodeArguments": [
  64. "--loader=ts-node/esm"
  65. ]
  66. }
  67. }