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