|
1 | 1 | { |
2 | 2 | "name": "react-input-verification-code", |
3 | | - "version": "1.0.2", |
4 | | - "description": "A verification code input, autocompletion friendly", |
5 | | - "author": "ugogo", |
6 | | - "license": "MIT", |
| 3 | + "version": "2.0.0-1", |
| 4 | + "description": "A React Verification Code Input, Autocompletion Friendly", |
7 | 5 | "repository": "ugogo/react-input-verification-code", |
8 | | - "main": "dist/index.js", |
9 | | - "module": "dist/index.modern.js", |
10 | | - "source": "src/index.tsx", |
| 6 | + "main": "lib/cjs/index.js", |
| 7 | + "module": "lib/esm/index.js", |
| 8 | + "types": "lib/esm/index.d.ts", |
| 9 | + "files": [ |
| 10 | + "lib" |
| 11 | + ], |
11 | 12 | "engines": { |
12 | 13 | "node": ">=10" |
13 | 14 | }, |
14 | 15 | "publishConfig": { |
15 | 16 | "access": "public", |
16 | 17 | "registry": "https://registry.npmjs.org/" |
17 | 18 | }, |
| 19 | + "keywords": [ |
| 20 | + "react", |
| 21 | + "verify", |
| 22 | + "verification", |
| 23 | + "code", |
| 24 | + "pin-code", |
| 25 | + "authentication-code", |
| 26 | + "input", |
| 27 | + "autocompletion", |
| 28 | + "otp", |
| 29 | + "otp-code", |
| 30 | + "one-time-password" |
| 31 | + ], |
18 | 32 | "release-it": { |
| 33 | + "hooks": { |
| 34 | + "before:init": [ |
| 35 | + "npm run build" |
| 36 | + ], |
| 37 | + "after:release": "npm run storybook:deploy" |
| 38 | + }, |
19 | 39 | "git": { |
20 | | - "commitMessage": "v${version}" |
| 40 | + "commitMessage": "v${version}", |
| 41 | + "requireUpstream": false |
21 | 42 | }, |
22 | 43 | "github": { |
23 | 44 | "release": true, |
24 | 45 | "releaseName": "v${version}" |
25 | 46 | } |
26 | 47 | }, |
27 | 48 | "scripts": { |
28 | | - "build": "microbundle-crl --no-compress --format modern,cjs --css-modules false", |
29 | | - "start": "microbundle-crl watch --no-compress --format modern,cjs --css-modules false", |
30 | | - "start:playground": "npm start --prefix playground", |
31 | | - "dev": "run-p start start:playground", |
32 | | - "prepare": "run-s build", |
33 | | - "test": "run-s test:unit test:lint test:build", |
34 | | - "test:build": "run-s build", |
35 | | - "test:lint": "eslint \"./src/**/*.+(ts|tsx)\"", |
36 | | - "test:unit": "cross-env CI=1 react-scripts test --env=jsdom", |
37 | | - "test:watch": "react-scripts test --env=jsdom", |
38 | | - "release": "npm run test && npm run prepare && dotenv release-it", |
39 | | - "lint": "eslint . --ext .js,.ts,.tsx", |
40 | | - "format": "prettier --write {src,playground}/**/*.{ts,tsx}", |
41 | | - "format:check": "prettier --check {src,playground}/**/*.{ts,tsx}" |
| 49 | + "dev": "npm run storybook", |
| 50 | + "dev:watch": "rollup -cw", |
| 51 | + "build": "rollup -c", |
| 52 | + "release": "dotenv release-it", |
| 53 | + "lint": "eslint src --ext .js,.ts,.tsx", |
| 54 | + "format": "prettier --write src", |
| 55 | + "format:check": "prettier --check src", |
| 56 | + "storybook": "start-storybook -p 6006", |
| 57 | + "storybook:build": "build-storybook", |
| 58 | + "storybook:deploy": "storybook-to-ghpages" |
42 | 59 | }, |
43 | 60 | "peerDependencies": { |
44 | 61 | "react": ">=16.0.0", |
45 | | - "styled-components": ">=5.0.0" |
| 62 | + "react-dom": ">=16.0.0" |
46 | 63 | }, |
47 | 64 | "devDependencies": { |
48 | | - "@babel/plugin-transform-react-jsx-self": "^7.16.7", |
49 | | - "@babel/plugin-transform-react-jsx-source": "^7.16.7", |
50 | | - "@testing-library/jest-dom": "^5.16.3", |
51 | | - "@testing-library/react": "^13.0.0", |
52 | | - "@testing-library/user-event": "^14.0.4", |
53 | | - "@types/jest": "^27.4.1", |
54 | | - "@types/node": "^17.0.23", |
55 | | - "@types/react": "^17.0.43", |
56 | | - "@types/react-dom": "^17.0.14", |
57 | | - "@types/styled-components": "^5.1.24", |
58 | | - "@typescript-eslint/eslint-plugin": "^5.18.0", |
59 | | - "@typescript-eslint/parser": "^5.18.0", |
60 | | - "babel-eslint": "^10.0.3", |
| 65 | + "@babel/core": "^7.19.1", |
| 66 | + "@rollup/plugin-commonjs": "^22.0.2", |
| 67 | + "@rollup/plugin-node-resolve": "^14.1.0", |
| 68 | + "@storybook/addon-actions": "^6.5.12", |
| 69 | + "@storybook/addon-essentials": "^6.5.12", |
| 70 | + "@storybook/addon-interactions": "^6.5.12", |
| 71 | + "@storybook/addon-links": "^6.5.12", |
| 72 | + "@storybook/builder-webpack4": "^6.5.12", |
| 73 | + "@storybook/manager-webpack5": "^6.5.12", |
| 74 | + "@storybook/react": "^6.5.12", |
| 75 | + "@storybook/storybook-deployer": "^2.8.12", |
| 76 | + "@types/node": "^18.7.18", |
| 77 | + "@types/react": "^18.0.20", |
| 78 | + "@types/react-dom": "^18.0.6", |
| 79 | + "@types/styled-components": "^5.1.26", |
| 80 | + "@typescript-eslint/eslint-plugin": "^5.38.0", |
| 81 | + "@typescript-eslint/parser": "^5.38.0", |
| 82 | + "babel-loader": "^8.2.5", |
61 | 83 | "cross-env": "^7.0.3", |
62 | | - "dotenv-cli": "^5.1.0", |
63 | | - "eslint": "^8.12.0", |
| 84 | + "dotenv-cli": "^6.0.0", |
| 85 | + "eslint": "^8.23.1", |
64 | 86 | "eslint-config-prettier": "^8.5.0", |
65 | | - "eslint-config-standard": "^16.0.3", |
| 87 | + "eslint-config-standard": "^17.0.0", |
| 88 | + "eslint-config-standard-jsx": "^11.0.0", |
66 | 89 | "eslint-config-standard-react": "^11.0.1", |
67 | | - "eslint-plugin-import": "^2.25.4", |
| 90 | + "eslint-plugin-import": "^2.26.0", |
| 91 | + "eslint-plugin-n": "^15.2.5", |
68 | 92 | "eslint-plugin-node": "^11.1.0", |
69 | | - "eslint-plugin-prettier": "^4.0.0", |
70 | | - "eslint-plugin-promise": "^6.0.0", |
71 | | - "eslint-plugin-react": "^7.29.4", |
72 | | - "eslint-plugin-standard": "^4.1.0", |
73 | | - "gh-pages": "^3.2.3", |
74 | | - "microbundle-crl": "^0.13.11", |
| 93 | + "eslint-plugin-promise": "^6.0.1", |
| 94 | + "eslint-plugin-react": "^7.31.8", |
| 95 | + "eslint-plugin-typescript-sort-keys": "^2.1.0", |
75 | 96 | "npm-run-all": "^4.1.5", |
76 | | - "prettier": "^2.6.2", |
77 | | - "react": "^18.0.0", |
78 | | - "react-dom": "^18.0.0", |
79 | | - "react-scripts": "^5.0.0", |
80 | | - "release-it": "^14.14.0", |
81 | | - "typescript": "^4.6.3" |
| 97 | + "postcss": "^8.4.16", |
| 98 | + "prettier": "^2.7.1", |
| 99 | + "react": "^18.2.0", |
| 100 | + "react-dom": "^18.2.0", |
| 101 | + "release-it": "^15.4.2", |
| 102 | + "rollup": "^2.79.0", |
| 103 | + "rollup-plugin-postcss": "^4.0.2", |
| 104 | + "rollup-plugin-typescript2": "^0.34.0", |
| 105 | + "styled-components": "^5.3.5", |
| 106 | + "typescript": "^4.8.3" |
82 | 107 | }, |
83 | | - "files": [ |
84 | | - "dist" |
85 | | - ], |
86 | | - "keywords": [ |
87 | | - "react", |
88 | | - "verify", |
89 | | - "verification", |
90 | | - "code", |
91 | | - "pin-code", |
92 | | - "authentication-code", |
93 | | - "input", |
94 | | - "autocompletion" |
95 | | - ] |
| 108 | + "author": "Ugo Onali", |
| 109 | + "license": "MIT" |
96 | 110 | } |
0 commit comments