package.json 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "name": "@sanity/image-url",
  3. "version": "1.0.2",
  4. "description": "Tools to generate image urls from Sanity content",
  5. "source": "src/builder.ts",
  6. "main": "lib/node/index.js",
  7. "browser": "lib/browser/image-url.umd.js",
  8. "umd:main": "lib/browser/image-url.umd.js",
  9. "typings": "lib/types/index.d.ts",
  10. "files": [
  11. "lib",
  12. "index.js",
  13. "urlForImage.js"
  14. ],
  15. "sideEffects": false,
  16. "amdName": "SanityImageUrlBuilder",
  17. "scripts": {
  18. "prepublishOnly": "npm run build",
  19. "prebuild": "rimraf lib coverage .rts2*",
  20. "build": "npm run build:node && npm run build:browser",
  21. "build:node": "tsc -m commonjs",
  22. "build:browser": "microbundle build -i src/browser.ts -o lib/browser -f umd,es --no-compress",
  23. "lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
  24. "test": "jest --coverage",
  25. "test:watch": "jest --coverage --watch",
  26. "test:prod": "npm run lint && npm run test -- --no-cache",
  27. "posttest": "npm run lint"
  28. },
  29. "engines": {
  30. "node": ">=10.0.0"
  31. },
  32. "jest": {
  33. "transform": {
  34. ".(ts|tsx)": "ts-jest"
  35. },
  36. "testEnvironment": "node",
  37. "testURL": "http://localhost",
  38. "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
  39. "moduleFileExtensions": [
  40. "ts",
  41. "tsx",
  42. "js"
  43. ],
  44. "coveragePathIgnorePatterns": [
  45. "/node_modules/",
  46. "/test/"
  47. ],
  48. "collectCoverageFrom": [
  49. "src/*.{js,ts}"
  50. ]
  51. },
  52. "prettier": {
  53. "semi": false,
  54. "singleQuote": true,
  55. "bracketSpacing": false,
  56. "printWidth": 100
  57. },
  58. "author": "Sanity.io <hello@sanity.io>",
  59. "license": "MIT",
  60. "publishConfig": {
  61. "access": "public"
  62. },
  63. "devDependencies": {
  64. "@types/jest": "^27.4.0",
  65. "@types/node": "^17.0.18",
  66. "jest": "^27.5.1",
  67. "microbundle": "^0.15.1",
  68. "prettier": "^2.5.1",
  69. "rimraf": "^3.0.2",
  70. "ts-jest": "^27.1.3",
  71. "tslint": "^6.1.3",
  72. "tslint-config-prettier": "^1.15.0",
  73. "typescript": "^4.5.5"
  74. },
  75. "repository": {
  76. "type": "git",
  77. "url": "git+https://github.com/sanity-io/image-url.git"
  78. },
  79. "bugs": {
  80. "url": "https://github.com/sanity-io/image-url/issues"
  81. },
  82. "homepage": "https://www.sanity.io/",
  83. "directories": {
  84. "test": "test"
  85. },
  86. "keywords": [
  87. "sanity",
  88. "cms",
  89. "headless",
  90. "realtime",
  91. "content",
  92. "image-url"
  93. ]
  94. }