package.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. {
  2. "name": "uuid",
  3. "version": "9.0.0",
  4. "description": "RFC4122 (v1, v4, and v5) UUIDs",
  5. "commitlint": {
  6. "extends": [
  7. "@commitlint/config-conventional"
  8. ]
  9. },
  10. "keywords": [
  11. "uuid",
  12. "guid",
  13. "rfc4122"
  14. ],
  15. "license": "MIT",
  16. "bin": {
  17. "uuid": "./dist/bin/uuid"
  18. },
  19. "sideEffects": false,
  20. "main": "./dist/index.js",
  21. "exports": {
  22. ".": {
  23. "node": {
  24. "module": "./dist/esm-node/index.js",
  25. "require": "./dist/index.js",
  26. "import": "./wrapper.mjs"
  27. },
  28. "browser": {
  29. "import": "./dist/esm-browser/index.js",
  30. "require": "./dist/commonjs-browser/index.js"
  31. },
  32. "default": "./dist/esm-browser/index.js"
  33. },
  34. "./package.json": "./package.json"
  35. },
  36. "module": "./dist/esm-node/index.js",
  37. "browser": {
  38. "./dist/md5.js": "./dist/md5-browser.js",
  39. "./dist/native.js": "./dist/native-browser.js",
  40. "./dist/rng.js": "./dist/rng-browser.js",
  41. "./dist/sha1.js": "./dist/sha1-browser.js",
  42. "./dist/esm-node/index.js": "./dist/esm-browser/index.js"
  43. },
  44. "files": [
  45. "CHANGELOG.md",
  46. "CONTRIBUTING.md",
  47. "LICENSE.md",
  48. "README.md",
  49. "dist",
  50. "wrapper.mjs"
  51. ],
  52. "devDependencies": {
  53. "@babel/cli": "7.18.10",
  54. "@babel/core": "7.18.10",
  55. "@babel/eslint-parser": "7.18.9",
  56. "@babel/preset-env": "7.18.10",
  57. "@commitlint/cli": "17.0.3",
  58. "@commitlint/config-conventional": "17.0.3",
  59. "bundlewatch": "0.3.3",
  60. "eslint": "8.21.0",
  61. "eslint-config-prettier": "8.5.0",
  62. "eslint-config-standard": "17.0.0",
  63. "eslint-plugin-import": "2.26.0",
  64. "eslint-plugin-node": "11.1.0",
  65. "eslint-plugin-prettier": "4.2.1",
  66. "eslint-plugin-promise": "6.0.0",
  67. "husky": "8.0.1",
  68. "jest": "28.1.3",
  69. "lint-staged": "13.0.3",
  70. "npm-run-all": "4.1.5",
  71. "optional-dev-dependency": "2.0.1",
  72. "prettier": "2.7.1",
  73. "random-seed": "0.3.0",
  74. "runmd": "1.3.6",
  75. "standard-version": "9.5.0"
  76. },
  77. "optionalDevDependencies": {
  78. "@wdio/browserstack-service": "7.16.10",
  79. "@wdio/cli": "7.16.10",
  80. "@wdio/jasmine-framework": "7.16.6",
  81. "@wdio/local-runner": "7.16.10",
  82. "@wdio/spec-reporter": "7.16.9",
  83. "@wdio/static-server-service": "7.16.6"
  84. },
  85. "scripts": {
  86. "examples:browser:webpack:build": "cd examples/browser-webpack && npm install && npm run build",
  87. "examples:browser:rollup:build": "cd examples/browser-rollup && npm install && npm run build",
  88. "examples:node:commonjs:test": "cd examples/node-commonjs && npm install && npm test",
  89. "examples:node:esmodules:test": "cd examples/node-esmodules && npm install && npm test",
  90. "examples:node:jest:test": "cd examples/node-jest && npm install && npm test",
  91. "prepare": "cd $( git rev-parse --show-toplevel ) && husky install",
  92. "lint": "npm run eslint:check && npm run prettier:check",
  93. "eslint:check": "eslint src/ test/ examples/ *.js",
  94. "eslint:fix": "eslint --fix src/ test/ examples/ *.js",
  95. "pretest": "[ -n $CI ] || npm run build",
  96. "test": "BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/",
  97. "pretest:browser": "optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**",
  98. "test:browser": "wdio run ./wdio.conf.js",
  99. "pretest:node": "npm run build",
  100. "test:node": "npm-run-all --parallel examples:node:**",
  101. "test:pack": "./scripts/testpack.sh",
  102. "pretest:benchmark": "npm run build",
  103. "test:benchmark": "cd examples/benchmark && npm install && npm test",
  104. "prettier:check": "prettier --check '**/*.{js,jsx,json,md}'",
  105. "prettier:fix": "prettier --write '**/*.{js,jsx,json,md}'",
  106. "bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
  107. "md": "runmd --watch --output=README.md README_js.md",
  108. "docs": "( node --version | grep -q 'v16' ) && ( npm run build && runmd --output=README.md README_js.md )",
  109. "docs:diff": "npm run docs && git diff --quiet README.md",
  110. "build": "./scripts/build.sh",
  111. "prepack": "npm run build",
  112. "release": "standard-version --no-verify"
  113. },
  114. "repository": {
  115. "type": "git",
  116. "url": "https://github.com/uuidjs/uuid.git"
  117. },
  118. "lint-staged": {
  119. "*.{js,jsx,json,md}": [
  120. "prettier --write"
  121. ],
  122. "*.{js,jsx}": [
  123. "eslint --fix"
  124. ]
  125. },
  126. "standard-version": {
  127. "scripts": {
  128. "postchangelog": "prettier --write CHANGELOG.md"
  129. }
  130. }
  131. }