package.json 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "name": "ignore",
  3. "version": "7.0.3",
  4. "description": "Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.",
  5. "types": "index.d.ts",
  6. "files": [
  7. "legacy.js",
  8. "index.js",
  9. "index.d.ts",
  10. "LICENSE-MIT"
  11. ],
  12. "scripts": {
  13. "prepublishOnly": "npm run build",
  14. "build": "babel -o legacy.js index.js",
  15. "==================== linting ======================": "",
  16. "lint": "eslint .",
  17. "===================== import ======================": "",
  18. "ts": "npm run test:ts && npm run test:16",
  19. "test:ts": "ts-node ./test/import/simple.ts",
  20. "test:16": "npm run test:ts:16 && npm run test:cjs:16 && npm run test:mjs:16",
  21. "test:ts:16": "ts-node --compilerOptions '{\"moduleResolution\": \"Node16\", \"module\": \"Node16\"}' ./test/import/simple.ts && tsc ./test/import/simple.ts --lib ES6 --moduleResolution Node16 --module Node16 && node ./test/import/simple.js",
  22. "test:cjs:16": "ts-node --compilerOptions '{\"moduleResolution\": \"Node16\", \"module\": \"Node16\"}' ./test/import/simple.cjs",
  23. "test:mjs:16": "ts-node --compilerOptions '{\"moduleResolution\": \"Node16\", \"module\": \"Node16\"}' ./test/import/simple.mjs && babel -o ./test/import/simple-mjs.js ./test/import/simple.mjs && node ./test/import/simple-mjs.js",
  24. "===================== cases =======================": "",
  25. "test:cases": "npm run tap test/*.test.js -- --coverage",
  26. "tap": "tap --reporter classic",
  27. "===================== debug =======================": "",
  28. "test:git": "npm run tap test/git-check-ignore.test.js",
  29. "test:ignore": "npm run tap test/ignore.test.js",
  30. "test:ignore:only": "IGNORE_ONLY_IGNORES=1 npm run tap test/ignore.test.js",
  31. "test:others": "npm run tap test/others.test.js",
  32. "test:no-coverage": "npm run tap test/*.test.js -- --no-check-coverage",
  33. "test": "npm run lint && npm run ts && npm run build && npm run test:cases",
  34. "test:win32": "IGNORE_TEST_WIN32=1 npm run test",
  35. "report": "tap --coverage-report=html"
  36. },
  37. "repository": {
  38. "type": "git",
  39. "url": "git@github.com:kaelzhang/node-ignore.git"
  40. },
  41. "keywords": [
  42. "ignore",
  43. ".gitignore",
  44. "gitignore",
  45. "npmignore",
  46. "rules",
  47. "manager",
  48. "filter",
  49. "regexp",
  50. "regex",
  51. "fnmatch",
  52. "glob",
  53. "asterisks",
  54. "regular-expression"
  55. ],
  56. "author": "kael",
  57. "license": "MIT",
  58. "bugs": {
  59. "url": "https://github.com/kaelzhang/node-ignore/issues"
  60. },
  61. "devDependencies": {
  62. "@babel/cli": "^7.22.9",
  63. "@babel/core": "^7.22.9",
  64. "@babel/preset-env": "^7.22.9",
  65. "@typescript-eslint/eslint-plugin": "^8.19.1",
  66. "codecov": "^3.8.3",
  67. "debug": "^4.3.4",
  68. "eslint": "^8.46.0",
  69. "eslint-config-ostai": "^3.0.0",
  70. "eslint-plugin-import": "^2.28.0",
  71. "mkdirp": "^3.0.1",
  72. "pre-suf": "^1.1.1",
  73. "rimraf": "^6.0.1",
  74. "spawn-sync": "^2.0.0",
  75. "tap": "^16.3.9",
  76. "tmp": "0.2.3",
  77. "ts-node": "^10.9.2",
  78. "typescript": "^5.6.2"
  79. },
  80. "engines": {
  81. "node": ">= 4"
  82. }
  83. }