UNPKG

4.18 kBJSONView Raw
1{
2 "name": "uuid",
3 "version": "8.1.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 "./package.json": "./package.json",
23 ".": {
24 "require": "./dist/index.js",
25 "import": "./wrapper.mjs"
26 }
27 },
28 "module": "./dist/esm-node/index.js",
29 "browser": {
30 "./dist/md5.js": "./dist/md5-browser.js",
31 "./dist/rng.js": "./dist/rng-browser.js",
32 "./dist/sha1.js": "./dist/sha1-browser.js",
33 "./dist/esm-node/index.js": "./dist/esm-browser/index.js"
34 },
35 "files": [
36 "CHANGELOG.md",
37 "CONTRIBUTING.md",
38 "LICENSE.md",
39 "README.md",
40 "dist",
41 "wrapper.mjs"
42 ],
43 "devDependencies": {
44 "@babel/cli": "7.8.4",
45 "@babel/core": "7.9.0",
46 "@babel/preset-env": "7.9.5",
47 "@commitlint/cli": "8.3.5",
48 "@commitlint/config-conventional": "8.3.4",
49 "@rollup/plugin-node-resolve": "7.1.3",
50 "@wdio/browserstack-service": "6.0.12",
51 "@wdio/cli": "6.0.15",
52 "@wdio/jasmine-framework": "6.0.15",
53 "@wdio/local-runner": "6.0.15",
54 "@wdio/spec-reporter": "6.0.14",
55 "@wdio/static-server-service": "6.0.13",
56 "@wdio/sync": "6.0.15",
57 "babel-eslint": "10.1.0",
58 "bundlewatch": "0.2.6",
59 "eslint": "6.8.0",
60 "eslint-config-prettier": "6.10.1",
61 "eslint-config-standard": "14.1.1",
62 "eslint-plugin-import": "2.20.2",
63 "eslint-plugin-node": "11.1.0",
64 "eslint-plugin-prettier": "3.1.3",
65 "eslint-plugin-promise": "4.2.1",
66 "eslint-plugin-standard": "4.0.1",
67 "husky": "4.2.5",
68 "jest": "25.3.0",
69 "lint-staged": "10.1.3",
70 "npm-run-all": "4.1.5",
71 "prettier": "2.0.4",
72 "rollup": "2.6.1",
73 "rollup-plugin-terser": "5.3.0",
74 "runmd": "1.3.2",
75 "standard-version": "7.1.0"
76 },
77 "scripts": {
78 "examples:browser:webpack:build": "cd examples/browser-webpack && npm install && npm run build",
79 "examples:browser:rollup:build": "cd examples/browser-rollup && npm install && npm run build",
80 "examples:node:commonjs:test": "cd examples/node-commonjs && npm install && npm test",
81 "examples:node:esmodules:test": "cd examples/node-esmodules && npm install && npm test",
82 "lint": "npm run eslint:check && npm run prettier:check",
83 "eslint:check": "eslint src/ test/ examples/ *.js",
84 "eslint:fix": "eslint --fix src/ test/ examples/ *.js",
85 "pretest": "[ -n $CI ] || npm run build",
86 "test": "BABEL_ENV=commonjs node --throw-deprecation node_modules/.bin/jest test/unit/",
87 "pretest:browser": "npm run build && npm-run-all --parallel examples:browser:**",
88 "test:browser": "wdio run ./wdio.conf.js",
89 "pretest:node": "npm run build",
90 "test:node": "npm-run-all --parallel examples:node:**",
91 "test:pack": "./scripts/testpack.sh",
92 "pretest:benchmark": "npm run build",
93 "test:benchmark": "cd examples/benchmark && npm install && npm test",
94 "prettier:check": "prettier --ignore-path .prettierignore --check '**/*.{js,jsx,json,md}'",
95 "prettier:fix": "prettier --ignore-path .prettierignore --write '**/*.{js,jsx,json,md}'",
96 "bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
97 "md": "runmd --watch --output=README.md README_js.md",
98 "docs": "( node --version | grep -q 'v12' ) && ( npm run build && runmd --output=README.md README_js.md )",
99 "docs:diff": "npm run docs && git diff --quiet README.md",
100 "build": "./scripts/build.sh",
101 "prepack": "npm run build",
102 "release": "standard-version --no-verify"
103 },
104 "repository": {
105 "type": "git",
106 "url": "https://github.com/uuidjs/uuid.git"
107 },
108 "husky": {
109 "hooks": {
110 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
111 "pre-commit": "lint-staged"
112 }
113 },
114 "lint-staged": {
115 "*.{js,jsx,json,md}": [
116 "prettier --write"
117 ],
118 "*.{js,jsx}": [
119 "eslint --fix"
120 ]
121 },
122 "standard-version": {
123 "scripts": {
124 "postchangelog": "prettier --write CHANGELOG.md"
125 }
126 }
127}