package.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "name": "get-nonce",
  3. "version": "1.0.1",
  4. "description": "returns nonce",
  5. "main": "dist/es5/index.js",
  6. "types": "dist/es5/index.d.ts",
  7. "sideEffects": false,
  8. "repository": "git@github.com:theKashey/get-nonce.git",
  9. "homepage": "https://github.com/theKashey/get-nonce",
  10. "author": "Anton Korzunov <thekashey@gmail.com>",
  11. "license": "MIT",
  12. "keywords": [
  13. "webpack",
  14. "nonce",
  15. "__webpack_nonce__"
  16. ],
  17. "devDependencies": {
  18. "@theuiteam/lib-builder": "^0.0.10",
  19. "@size-limit/preset-small-lib": "^2.1.6"
  20. },
  21. "module": "dist/es2015/index.js",
  22. "engines": {
  23. "node": ">=6"
  24. },
  25. "scripts": {
  26. "dev": "lib-builder dev",
  27. "test": "jest",
  28. "test:ci": "jest --runInBand --coverage",
  29. "build": "lib-builder build && yarn size:report",
  30. "release": "yarn build && yarn test",
  31. "size": "npx size-limit",
  32. "size:report": "npx size-limit --json > .size.json",
  33. "lint": "lib-builder lint",
  34. "format": "lib-builder format",
  35. "update": "lib-builder update",
  36. "docz:dev": "docz dev",
  37. "docz:build": "docz build",
  38. "prepublish": "yarn build && yarn changelog",
  39. "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
  40. "changelog:rewrite": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
  41. },
  42. "files": [
  43. "dist"
  44. ],
  45. "husky": {
  46. "hooks": {
  47. "pre-commit": "lint-staged"
  48. }
  49. },
  50. "lint-staged": {
  51. "*.{ts,tsx}": [
  52. "prettier --write",
  53. "tslint --fix",
  54. "git add"
  55. ],
  56. "*.{js,css,json,md}": [
  57. "prettier --write",
  58. "git add"
  59. ]
  60. },
  61. "prettier": {
  62. "printWidth": 120,
  63. "trailingComma": "es5",
  64. "tabWidth": 2,
  65. "semi": true,
  66. "singleQuote": true
  67. }
  68. }