package.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. "name": "@csstools/selector-specificity",
  3. "description": "Determine selector specificity with postcss-selector-parser",
  4. "version": "2.0.2",
  5. "contributors": [
  6. {
  7. "name": "Antonio Laguna",
  8. "email": "antonio@laguna.es",
  9. "url": "https://antonio.laguna.es"
  10. },
  11. {
  12. "name": "Romain Menke",
  13. "email": "romainmenke@gmail.com"
  14. }
  15. ],
  16. "license": "CC0-1.0",
  17. "funding": {
  18. "type": "opencollective",
  19. "url": "https://opencollective.com/csstools"
  20. },
  21. "engines": {
  22. "node": "^12 || ^14 || >=16"
  23. },
  24. "main": "dist/index.cjs",
  25. "module": "dist/index.mjs",
  26. "types": "dist/index.d.ts",
  27. "exports": {
  28. ".": {
  29. "import": "./dist/index.mjs",
  30. "require": "./dist/index.cjs",
  31. "default": "./dist/index.mjs"
  32. }
  33. },
  34. "files": [
  35. "CHANGELOG.md",
  36. "LICENSE.md",
  37. "README.md",
  38. "dist"
  39. ],
  40. "peerDependencies": {
  41. "postcss": "^8.2",
  42. "postcss-selector-parser": "^6.0.10"
  43. },
  44. "devDependencies": {
  45. "postcss-selector-parser": "^6.0.10"
  46. },
  47. "scripts": {
  48. "build": "rollup -c ../../rollup/default.js",
  49. "clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"",
  50. "lint": "npm run lint:eslint && npm run lint:package-json",
  51. "lint:eslint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern",
  52. "lint:package-json": "node ../../.github/bin/format-package-json.mjs",
  53. "prepublishOnly": "npm run clean && npm run build && npm run test",
  54. "stryker": "stryker run --logLevel error",
  55. "test": "npm run test:exports && node ./test/example.mjs && node ./test/test.mjs && node ./test/tests-from-bramus-specificity.mjs && node ./test/tests-from-keeganstreet-specificity.mjs && node ./test/test-compare.mjs",
  56. "test:exports": "node ./test/_import.mjs && node ./test/_require.cjs"
  57. },
  58. "homepage": "https://github.com/csstools/postcss-plugins/tree/main/packages/selector-specificity#readme",
  59. "repository": {
  60. "type": "git",
  61. "url": "https://github.com/csstools/postcss-plugins.git",
  62. "directory": "packages/selector-specificity"
  63. },
  64. "bugs": "https://github.com/csstools/postcss-plugins/issues",
  65. "keywords": [
  66. "css",
  67. "postcss-selector-parser",
  68. "specificity"
  69. ],
  70. "volta": {
  71. "extends": "../../package.json"
  72. }
  73. }