package.json 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. "name": "postcss-image-set-function",
  3. "description": "Display resolution-dependent images using the image-set() function in CSS",
  4. "version": "4.0.7",
  5. "author": "Jonathan Neal <jonathantneal@hotmail.com>",
  6. "license": "CC0-1.0",
  7. "funding": {
  8. "type": "opencollective",
  9. "url": "https://opencollective.com/csstools"
  10. },
  11. "engines": {
  12. "node": "^12 || ^14 || >=16"
  13. },
  14. "main": "dist/index.cjs",
  15. "module": "dist/index.mjs",
  16. "types": "dist/index.d.ts",
  17. "exports": {
  18. ".": {
  19. "import": "./dist/index.mjs",
  20. "require": "./dist/index.cjs",
  21. "default": "./dist/index.mjs"
  22. }
  23. },
  24. "files": [
  25. "CHANGELOG.md",
  26. "LICENSE.md",
  27. "README.md",
  28. "dist"
  29. ],
  30. "dependencies": {
  31. "postcss-value-parser": "^4.2.0"
  32. },
  33. "peerDependencies": {
  34. "postcss": "^8.2"
  35. },
  36. "scripts": {
  37. "build": "rollup -c ../../rollup/default.js",
  38. "clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"",
  39. "docs": "node ../../.github/bin/generate-docs/install.mjs",
  40. "lint": "npm run lint:eslint && npm run lint:package-json",
  41. "lint:eslint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern",
  42. "lint:package-json": "node ../../.github/bin/format-package-json.mjs",
  43. "prepublishOnly": "npm run clean && npm run build && npm run test",
  44. "test": "node .tape.mjs && npm run test:exports",
  45. "test:exports": "node ./test/_import.mjs && node ./test/_require.cjs",
  46. "test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs"
  47. },
  48. "homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-image-set-function#readme",
  49. "repository": {
  50. "type": "git",
  51. "url": "https://github.com/csstools/postcss-plugins.git",
  52. "directory": "plugins/postcss-image-set-function"
  53. },
  54. "bugs": "https://github.com/csstools/postcss-plugins/issues",
  55. "keywords": [
  56. "background",
  57. "css",
  58. "image",
  59. "image-set",
  60. "negotiation",
  61. "optimization",
  62. "postcss",
  63. "postcss-plugin",
  64. "resolution",
  65. "responsive"
  66. ],
  67. "csstools": {
  68. "exportName": "postcssImageSetFunction",
  69. "humanReadableName": "PostCSS image-set() Function"
  70. },
  71. "volta": {
  72. "extends": "../../package.json"
  73. }
  74. }