package.json 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {
  2. "_from": "baseline-browser-mapping@^2.9.0",
  3. "_id": "baseline-browser-mapping@2.10.7",
  4. "_inBundle": false,
  5. "_integrity": "sha512-1ghYO3HnxGec0TCGBXiDLVns4eCSx4zJpxnHrlqFQajmhfKMQBzUGDdkMK7fUW7PTHTeLf+j87aTuKuuwWzMGw==",
  6. "_location": "/baseline-browser-mapping",
  7. "_phantomChildren": {},
  8. "_requested": {
  9. "type": "range",
  10. "registry": true,
  11. "raw": "baseline-browser-mapping@^2.9.0",
  12. "name": "baseline-browser-mapping",
  13. "escapedName": "baseline-browser-mapping",
  14. "rawSpec": "^2.9.0",
  15. "saveSpec": null,
  16. "fetchSpec": "^2.9.0"
  17. },
  18. "_requiredBy": [
  19. "/browserslist"
  20. ],
  21. "_resolved": "https://registry.npmmirror.com/baseline-browser-mapping/-/baseline-browser-mapping-2.10.7.tgz",
  22. "_shasum": "2c017adffe4f7bbe93c2e55526cc1869d36f588c",
  23. "_spec": "baseline-browser-mapping@^2.9.0",
  24. "_where": "E:\\git\\2021项目\\安科院大屏\\node_modules\\browserslist",
  25. "bin": {
  26. "baseline-browser-mapping": "dist/cli.cjs"
  27. },
  28. "bugs": {
  29. "url": "https://github.com/web-platform-dx/baseline-browser-mapping/issues"
  30. },
  31. "bundleDependencies": false,
  32. "deprecated": false,
  33. "description": "A library for obtaining browser versions with their maximum supported Baseline feature set and Widely Available status.",
  34. "devDependencies": {
  35. "@mdn/browser-compat-data": "^7.3.6",
  36. "@rollup/plugin-terser": "^1.0.0",
  37. "@rollup/plugin-typescript": "^12.1.3",
  38. "@types/node": "^22.15.17",
  39. "eslint-plugin-new-with-error": "^5.0.0",
  40. "jasmine": "^5.8.0",
  41. "jasmine-browser-runner": "^3.0.0",
  42. "jasmine-spec-reporter": "^7.0.0",
  43. "prettier": "^3.5.3",
  44. "rollup": "^4.44.0",
  45. "tslib": "^2.8.1",
  46. "typescript": "^5.7.2",
  47. "typescript-eslint": "^8.35.0",
  48. "web-features": "^3.20.0"
  49. },
  50. "engines": {
  51. "node": ">=6.0.0"
  52. },
  53. "exports": {
  54. ".": {
  55. "require": "./dist/index.cjs",
  56. "types": "./dist/index.d.ts",
  57. "default": "./dist/index.js"
  58. },
  59. "./legacy": {
  60. "require": "./dist/index.cjs",
  61. "types": "./dist/index.d.ts"
  62. }
  63. },
  64. "files": [
  65. "dist/*",
  66. "!dist/scripts/*",
  67. "LICENSE.txt",
  68. "README.md"
  69. ],
  70. "homepage": "https://github.com/web-platform-dx/baseline-browser-mapping#readme",
  71. "jsdelivr": "./dist/index.js",
  72. "license": "Apache-2.0",
  73. "main": "./dist/index.cjs",
  74. "name": "baseline-browser-mapping",
  75. "repository": {
  76. "type": "git",
  77. "url": "git+https://github.com/web-platform-dx/baseline-browser-mapping.git"
  78. },
  79. "scripts": {
  80. "build": "rm -rf dist; npx prettier . --write; rollup -c; rm -rf ./dist/scripts/expose-data.d.ts ./dist/cli.d.ts",
  81. "check-data-changes": "git diff --name-only | grep -q '^src/data/data.js$' && echo 'changes-available=TRUE' || echo 'changes-available=FALSE'",
  82. "fix-cli-permissions": "output=$(npx baseline-browser-mapping 2>&1); path=$(printf '%s\n' \"$output\" | sed -n 's/^.*: \\(.*\\): Permission denied$/\\1/p; t; s/^\\(.*\\): Permission denied$/\\1/p'); if [ -n \"$path\" ]; then echo \"Permission denied for: $path\"; echo \"Removing $path ...\"; rm -rf \"$path\"; else echo \"$output\"; fi",
  83. "refresh-downstream": "npx tsx scripts/refresh-downstream.ts",
  84. "refresh-static": "npx tsx scripts/refresh-static.ts",
  85. "test": "npm run build && npm run fix-cli-permissions && npm run test:format && npm run test:lint && npm run test:jasmine && npm run test:jasmine-browser",
  86. "test:format": "npx prettier --check .",
  87. "test:jasmine": "npx jasmine",
  88. "test:jasmine-browser": "npx jasmine-browser-runner runSpecs --config ./spec/support/jasmine-browser.js",
  89. "test:legacy-test": "node spec/legacy-tests/legacy-test.cjs; node dist/cli.cjs",
  90. "test:lint": "npx eslint .",
  91. "update-data-dependencies": "npm i @mdn/browser-compat-data@latest web-features@latest -D",
  92. "update-data-file": "npx tsx scripts/update-data-file.ts; npx prettier ./src/data/data.js --write"
  93. },
  94. "type": "module",
  95. "types": "./dist/index.d.ts",
  96. "version": "2.10.7"
  97. }