UNPKG

3.78 kBJSONView Raw
1{
2 "name": "uuid",
3 "version": "7.0.1",
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 "module": "dist/esm-node/index.js",
22 "browser": {
23 "./dist/md5.js": "./dist/md5-browser.js",
24 "./dist/rng.js": "./dist/rng-browser.js",
25 "./dist/sha1.js": "./dist/sha1-browser.js",
26 "./dist/esm-node/index.js": "./dist/esm-browser/index.js"
27 },
28 "files": [
29 "CHANGELOG.md",
30 "CONTRIBUTING.md",
31 "LICENSE.md",
32 "README.md",
33 "dist",
34 "v1.js",
35 "v3.js",
36 "v4.js",
37 "v5.js"
38 ],
39 "devDependencies": {
40 "@babel/cli": "7.8.4",
41 "@babel/core": "7.8.4",
42 "@babel/preset-env": "7.8.4",
43 "@commitlint/cli": "8.3.5",
44 "@commitlint/config-conventional": "8.3.4",
45 "@rollup/plugin-node-resolve": "7.1.1",
46 "babel-eslint": "10.0.3",
47 "babel-plugin-add-module-exports": "1.0.2",
48 "browserstack-local": "1.4.5",
49 "bundlewatch": "0.2.5",
50 "eslint": "6.8.0",
51 "eslint-config-prettier": "6.10.0",
52 "eslint-plugin-prettier": "3.1.2",
53 "esm": "3.2.25",
54 "http-server": "0.12.1",
55 "husky": "3.0.9",
56 "jest": "25.1.0",
57 "lint-staged": "10.0.7",
58 "npm-run-all": "4.1.5",
59 "prettier": "1.19.1",
60 "rollup": "1.31.1",
61 "rollup-plugin-terser": "5.2.0",
62 "runmd": "1.3.2",
63 "selenium-webdriver": "3.6.0",
64 "standard-version": "7.1.0"
65 },
66 "scripts": {
67 "examples:browser-webpack:build": "cd examples/browser-webpack && npm install && npm run build",
68 "examples:browser-rollup:build": "cd examples/browser-rollup && npm install && npm run build",
69 "examples:browser-esmodules:build": "cd examples/browser-esmodules && npm install && npm run build",
70 "lint": "npm run eslint:check && npm run prettier:check",
71 "eslint:check": "eslint src/ test/ examples/ *.js",
72 "eslint:fix": "eslint --fix src/ test/ examples/ *.js",
73 "pretest": "npm run build",
74 "test": "BABEL_ENV=commonjs node --throw-deprecation node_modules/.bin/jest test/unit/",
75 "pretest:browser": "npm run build && npm-run-all --parallel examples:**",
76 "test:browser": "BABEL_ENV=commonjs jest --forceExit --verbose test/browser/${BROWSER:-}*",
77 "prettier:check": "prettier --ignore-path .prettierignore --check '**/*.{js,jsx,json,md}'",
78 "prettier:fix": "prettier --ignore-path .prettierignore --write '**/*.{js,jsx,json,md}'",
79 "ci": "npm run lint && npm run test && npm run prettier:check && npm run docs:diff && npm run bundlewatch",
80 "bundlewatch": "( node --version | grep -vq 'v12' ) || ( npm run pretest:browser && CI_REPO_OWNER=uuidjs CI_REPO_NAME=uuid CI_COMMIT_SHA=$GITHUB_SHA CI_BRANCH=${GITHUB_REF##refs/heads/} bundlewatch --config bundlewatch.config.json )",
81 "md": "runmd --watch --output=README.md README_js.md",
82 "docs": "( node --version | grep -q 'v12' ) && ( npm run build && runmd --output=README.md README_js.md )",
83 "docs:diff": "( node --version | grep -vq 'v12' ) || ( npm run docs && git diff --quiet README.md )",
84 "build": "./scripts/build.sh",
85 "release": "standard-version --no-verify"
86 },
87 "repository": {
88 "type": "git",
89 "url": "https://github.com/uuidjs/uuid.git"
90 },
91 "husky": {
92 "hooks": {
93 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
94 "pre-commit": "lint-staged"
95 }
96 },
97 "lint-staged": {
98 "*.{js,jsx,json,md}": [
99 "prettier --write"
100 ],
101 "*.{js,jsx}": [
102 "eslint --fix"
103 ]
104 },
105 "standard-version": {
106 "scripts": {
107 "postchangelog": "prettier --write CHANGELOG.md",
108 "postcommit": "npm run build"
109 }
110 }
111}