|
1 | 1 | {
|
2 | 2 | "name": "react-tag-input-component",
|
3 | 3 | "description": "lightweight component for tag(s) input",
|
4 |
| - "version": "1.1.3", |
| 4 | + "version": "2.0.0", |
5 | 5 | "license": "MIT",
|
6 | 6 | "author": "Harsh Zalavadiya",
|
7 | 7 | "repository": "https://github.com/hc-oss/react-tag-input-component",
|
8 |
| - "module": "dist/react-tag-input-component.esm.js", |
9 |
| - "main": "dist/index.js", |
10 |
| - "typings": "dist/index.d.ts", |
11 |
| - "sideEffects": false, |
12 |
| - "engines": { |
13 |
| - "node": ">=10" |
14 |
| - }, |
| 8 | + "main": "./dist/index.js", |
| 9 | + "module": "./dist/esm/index.js", |
| 10 | + "types": "./dist/index.d.ts", |
15 | 11 | "scripts": {
|
16 |
| - "start": "tsdx watch", |
17 |
| - "build": "tsdx build && filesize", |
18 |
| - "lint": "tsdx lint", |
19 |
| - "prepare": "tsdx build && filesize", |
| 12 | + "build": "tsup src/index.tsx --inject-style --legacy-output --minify --format esm,cjs --dts --external react", |
| 13 | + "dev": "tsup src/index.tsx --inject-style --legacy-output --format esm,cjs --watch --dts --external react", |
| 14 | + "lint": "eslint src --fix", |
20 | 15 | "storybook": "export NODE_OPTIONS=--openssl-legacy-provider; start-storybook -p 6006",
|
21 | 16 | "build-storybook": "export NODE_OPTIONS=--openssl-legacy-provider; build-storybook"
|
22 | 17 | },
|
23 | 18 | "peerDependencies": {
|
24 |
| - "react": ">=16" |
25 |
| - }, |
26 |
| - "dependencies": { |
27 |
| - "goober": "^2.1.10" |
| 19 | + "react": "^16 || ^17 || ^18", |
| 20 | + "react-dom": "^16 || ^17 || ^18" |
28 | 21 | },
|
| 22 | + "dependencies": {}, |
29 | 23 | "devDependencies": {
|
30 |
| - "@ampproject/filesize": "^4.3.0", |
31 |
| - "@babel/core": "^7.18.9", |
32 |
| - "@storybook/addon-actions": "^6.5.9", |
33 |
| - "@storybook/addon-essentials": "^6.5.9", |
34 |
| - "@storybook/addon-interactions": "^6.5.9", |
35 |
| - "@storybook/addon-links": "^6.5.9", |
36 |
| - "@storybook/builder-webpack4": "^6.5.9", |
37 |
| - "@storybook/manager-webpack4": "^6.5.9", |
38 |
| - "@storybook/react": "^6.5.9", |
39 |
| - "@storybook/testing-library": "^0.0.13", |
40 |
| - "@types/react": "^18.0.15", |
| 24 | + "@size-limit/preset-small-lib": "^8.1.0", |
| 25 | + "@storybook/addon-actions": "^6.5.12", |
| 26 | + "@storybook/addon-essentials": "^6.5.12", |
| 27 | + "@storybook/addon-knobs": "^6.4.0", |
| 28 | + "@storybook/addon-links": "^6.5.12", |
| 29 | + "@storybook/react": "^6.5.12", |
| 30 | + "@types/react": "^18.0.21", |
41 | 31 | "@types/react-dom": "^18.0.6",
|
42 |
| - "babel-loader": "^8.2.5", |
| 32 | + "@typescript-eslint/eslint-plugin": "^5.38.1", |
| 33 | + "@typescript-eslint/parser": "^5.38.1", |
| 34 | + "eslint": "8.24.0", |
| 35 | + "eslint-plugin-prettier": "^4.2.1", |
| 36 | + "eslint-plugin-react": "^7.31.8", |
| 37 | + "eslint-plugin-simple-import-sort": "^8.0.0", |
| 38 | + "eslint-plugin-storybook": "^0.6.4", |
| 39 | + "postcss": "^8.4.17", |
| 40 | + "prettier": "^2.7.1", |
43 | 41 | "react": "^18.2.0",
|
44 |
| - "react-docgen-typescript-loader": "^3.7.2", |
45 | 42 | "react-dom": "^18.2.0",
|
46 |
| - "react-is": "^18.2.0", |
47 |
| - "ts-loader": "^9.3.1", |
48 |
| - "tsdx": "^0.14.1", |
49 |
| - "tslib": "^2.4.0", |
50 |
| - "typescript": "^4.7.4" |
| 43 | + "size-limit": "^8.1.0", |
| 44 | + "storybook-addon-turbo-build": "^1.1.0", |
| 45 | + "tsup": "^6.2.3", |
| 46 | + "typescript": "^4.8.4" |
51 | 47 | },
|
52 | 48 | "prettier": {
|
53 | 49 | "printWidth": 80,
|
54 | 50 | "semi": true,
|
55 | 51 | "singleQuote": false,
|
56 | 52 | "trailingComma": "es5"
|
57 | 53 | },
|
58 |
| - "husky": { |
59 |
| - "hooks": { |
60 |
| - "pre-commit": "tsdx lint" |
61 |
| - } |
62 |
| - }, |
63 | 54 | "files": [
|
64 |
| - "dist", |
65 |
| - "src" |
| 55 | + "dist/**" |
| 56 | + ], |
| 57 | + "browserslist": [ |
| 58 | + "defaults", |
| 59 | + "not IE 11", |
| 60 | + "maintained node versions" |
| 61 | + ], |
| 62 | + "size-limit": [ |
| 63 | + { |
| 64 | + "path": "dist/index.js", |
| 65 | + "limit": "10 KB" |
| 66 | + } |
66 | 67 | ],
|
67 |
| - "filesize": { |
68 |
| - "track": [ |
69 |
| - "./dist/*.production.min.js" |
70 |
| - ] |
71 |
| - }, |
72 | 68 | "keywords": [
|
73 | 69 | "react",
|
74 | 70 | "tag",
|
|
0 commit comments