package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. {
  2. "name": "is-lite",
  3. "version": "1.2.1",
  4. "description": "A tiny javascript type testing tool",
  5. "author": "Gil Barbara <gilbarbara@gmail.com>",
  6. "keywords": [
  7. "type",
  8. "check",
  9. "assertion",
  10. "validation",
  11. "test",
  12. "typeguard",
  13. "typeof",
  14. "instanceof"
  15. ],
  16. "license": "MIT",
  17. "repository": {
  18. "type": "git",
  19. "url": "git+https://github.com/gilbarbara/is-lite.git"
  20. },
  21. "bugs": {
  22. "url": "https://github.com/gilbarbara/is-lite/issues"
  23. },
  24. "homepage": "https://github.com/gilbarbara/is-lite#readme",
  25. "main": "./dist/index.js",
  26. "module": "./dist/index.mjs",
  27. "exports": {
  28. ".": {
  29. "import": "./dist/index.mjs",
  30. "require": "./dist/index.js"
  31. },
  32. "./exports": {
  33. "import": "./dist/exports.mjs",
  34. "require": "./dist/exports.js"
  35. }
  36. },
  37. "files": [
  38. "dist",
  39. "src"
  40. ],
  41. "typesVersions": {
  42. "*": {
  43. "exports": [
  44. "dist/exports.d.ts"
  45. ]
  46. }
  47. },
  48. "types": "dist/index.d.ts",
  49. "sideEffects": false,
  50. "devDependencies": {
  51. "@arethetypeswrong/cli": "^0.13.5",
  52. "@gilbarbara/esbuilder": "^0.2.0",
  53. "@gilbarbara/eslint-config": "^0.7.2",
  54. "@gilbarbara/prettier-config": "^1.0.0",
  55. "@gilbarbara/tsconfig": "^0.2.3",
  56. "@size-limit/preset-small-lib": "^11.0.1",
  57. "@types/node": "^20.10.6",
  58. "@vitest/coverage-v8": "^1.1.1",
  59. "del-cli": "^5.1.0",
  60. "happy-dom": "^12.10.3",
  61. "husky": "^8.0.3",
  62. "is-ci-cli": "^2.2.0",
  63. "prettier": "^3.1.1",
  64. "repo-tools": "^0.3.1",
  65. "size-limit": "^11.0.1",
  66. "ts-node": "^10.9.2",
  67. "tsup": "^8.0.1",
  68. "typescript": "^5.3.3",
  69. "vitest": "^1.1.1"
  70. },
  71. "scripts": {
  72. "build": "npm run clean && tsup",
  73. "watch": "tsup --watch",
  74. "clean": "del dist/*",
  75. "lint": "eslint --fix src test",
  76. "test": "is-ci \"test:coverage\" \"test:watch\"",
  77. "typecheck": "tsc",
  78. "typevalidation": "attw -Pq",
  79. "test:coverage": "TZ=UTC vitest run --coverage",
  80. "test:watch": "TZ=UTC vitest watch",
  81. "format": "prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write",
  82. "validate": "npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run typevalidation && npm run size",
  83. "size": "size-limit",
  84. "prepublishOnly": "npm run validate",
  85. "prepare": "husky install"
  86. },
  87. "tsup": {
  88. "cjsInterop": true,
  89. "dts": true,
  90. "entry": [
  91. "src/index.ts",
  92. "src/exports.ts"
  93. ],
  94. "format": [
  95. "cjs",
  96. "esm"
  97. ],
  98. "sourcemap": true,
  99. "splitting": false
  100. },
  101. "eslintConfig": {
  102. "extends": [
  103. "@gilbarbara/eslint-config/base",
  104. "@gilbarbara/eslint-config/vitest"
  105. ]
  106. },
  107. "prettier": "@gilbarbara/prettier-config",
  108. "size-limit": [
  109. {
  110. "name": "commonjs",
  111. "path": "./dist/index.js",
  112. "limit": "1.5 kB"
  113. },
  114. {
  115. "name": "esm",
  116. "path": "./dist/index.mjs",
  117. "limit": "1.5 kB"
  118. },
  119. {
  120. "name": "exports-commonjs",
  121. "path": "./dist/exports.js",
  122. "limit": "2 kB"
  123. },
  124. {
  125. "name": "exports-esm",
  126. "path": "./dist/exports.mjs",
  127. "limit": "2 kB"
  128. }
  129. ]
  130. }