|
1 | 1 | { |
2 | 2 | "name": "react-input-verification-code", |
3 | 3 | "version": "1.0.2", |
4 | | - "description": "A verification code input, autocompletion friendly", |
5 | | - "author": "ugogo", |
6 | | - "license": "MIT", |
| 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": { |
19 | 33 | "git": { |
20 | 34 | "commitMessage": "v${version}" |
|
25 | 39 | } |
26 | 40 | }, |
27 | 41 | "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", |
| 42 | + "prepack": "npm run build", |
| 43 | + "dev": "npm run storybook", |
| 44 | + "dev:watch": "rollup -cw", |
| 45 | + "build": "rollup -c", |
33 | 46 | "test": "run-s test:unit test:lint test:build", |
34 | 47 | "test:build": "run-s build", |
35 | 48 | "test:lint": "eslint \"./src/**/*.+(ts|tsx)\"", |
|
38 | 51 | "release": "npm run test && npm run prepare && dotenv release-it", |
39 | 52 | "lint": "eslint . --ext .js,.ts,.tsx", |
40 | 53 | "format": "prettier --write {src,playground}/**/*.{ts,tsx}", |
41 | | - "format:check": "prettier --check {src,playground}/**/*.{ts,tsx}" |
| 54 | + "format:check": "prettier --check {src,playground}/**/*.{ts,tsx}", |
| 55 | + "storybook": "start-storybook -p 6006", |
| 56 | + "storybook:build": "build-storybook" |
42 | 57 | }, |
43 | 58 | "peerDependencies": { |
44 | 59 | "react": ">=16.0.0", |
45 | | - "styled-components": ">=5.0.0" |
| 60 | + "react-dom": ">=16.0.0" |
46 | 61 | }, |
47 | 62 | "devDependencies": { |
| 63 | + "@babel/core": "^7.19.1", |
48 | 64 | "@babel/plugin-transform-react-jsx-self": "^7.16.7", |
49 | 65 | "@babel/plugin-transform-react-jsx-source": "^7.16.7", |
| 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-webpack5": "^6.5.12", |
| 73 | + "@storybook/manager-webpack5": "^6.5.12", |
| 74 | + "@storybook/react": "^6.5.12", |
| 75 | + "@storybook/testing-library": "^0.0.13", |
50 | 76 | "@testing-library/jest-dom": "^5.16.3", |
51 | 77 | "@testing-library/react": "^13.0.0", |
52 | 78 | "@testing-library/user-event": "^14.0.4", |
53 | | - "@types/jest": "^27.4.1", |
| 79 | + "@types/jest": "^29.0.3", |
54 | 80 | "@types/node": "^17.0.23", |
55 | 81 | "@types/react": "^17.0.43", |
56 | 82 | "@types/react-dom": "^17.0.14", |
57 | 83 | "@types/styled-components": "^5.1.24", |
58 | 84 | "@typescript-eslint/eslint-plugin": "^5.18.0", |
59 | 85 | "@typescript-eslint/parser": "^5.18.0", |
60 | 86 | "babel-eslint": "^10.0.3", |
| 87 | + "babel-loader": "^8.2.5", |
61 | 88 | "cross-env": "^7.0.3", |
62 | 89 | "dotenv-cli": "^5.1.0", |
63 | 90 | "eslint": "^8.12.0", |
|
71 | 98 | "eslint-plugin-react": "^7.29.4", |
72 | 99 | "eslint-plugin-standard": "^4.1.0", |
73 | 100 | "gh-pages": "^3.2.3", |
74 | | - "microbundle-crl": "^0.13.11", |
75 | 101 | "npm-run-all": "^4.1.5", |
| 102 | + "postcss": "^8.4.16", |
76 | 103 | "prettier": "^2.6.2", |
77 | | - "react": "^18.0.0", |
78 | | - "react-dom": "^18.0.0", |
| 104 | + "react": "^17.0.0", |
| 105 | + "react-dom": "^17.0.0", |
79 | 106 | "react-scripts": "^5.0.0", |
80 | 107 | "release-it": "^14.14.0", |
81 | | - "typescript": "^4.6.3" |
| 108 | + "rollup": "^2.79.0", |
| 109 | + "rollup-plugin-postcss": "^4.0.2", |
| 110 | + "rollup-plugin-typescript2": "^0.34.0", |
| 111 | + "typescript": "^4.8.3" |
82 | 112 | }, |
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 | | - "otp", |
96 | | - "otp-code", |
97 | | - "one-time-password" |
98 | | - ] |
| 113 | + "author": "Ugo Onali", |
| 114 | + "license": "MIT" |
99 | 115 | } |
0 commit comments