|
1 | 1 | { |
2 | | - "name": "@JoshK2/react-spinners-css", |
3 | | - "version": "1.2.3", |
| 2 | + "name": "react-spinners-css", |
| 3 | + "version": "2.0.0", |
4 | 4 | "private": false, |
5 | | - "main": "dist/index.js", |
6 | | - "module": "dist/index.js", |
| 5 | + "main": "./lib/cjs/index.js", |
| 6 | + "module": "./lib/esm/index.js", |
| 7 | + "types": "./lib/esm/index.d.ts", |
| 8 | + "directories": { |
| 9 | + "lib": "lib" |
| 10 | + }, |
7 | 11 | "files": [ |
8 | | - "dist", |
| 12 | + "lib", |
9 | 13 | "README.md" |
10 | 14 | ], |
11 | 15 | "repository": { |
12 | 16 | "type": "git", |
13 | | - "url": "git://github.com/JoshK2/react-spinners-css.git" |
| 17 | + "url": "https://github.com/JoshK2/react-spinners-css" |
14 | 18 | }, |
15 | 19 | "homepage": "https://bit.dev/joshk/react-spinners-css", |
16 | 20 | "keywords": [ |
|
35 | 39 | "license": "MIT", |
36 | 40 | "scripts": { |
37 | 41 | "start": "react-scripts start", |
38 | | - "build:lib": "rm -rf dist && NODE_ENV=production babel src/components --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,__snapshots__", |
39 | | - "build:bit": "rm -rf dist && bit build", |
| 42 | + "build": "react-scripts build", |
40 | 43 | "test": "react-scripts test", |
41 | 44 | "eject": "react-scripts eject", |
42 | | - "format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"", |
| 45 | + "build:lib": "rm -rf dist && NODE_ENV=production babel src/components --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,__snapshots__", |
| 46 | + "build:lib2": "rm -rf lib && npm run build:esm && npm run build:cjs", |
| 47 | + "build:esm": "tsc", |
| 48 | + "build:cjs": "tsc --module commonjs --outDir lib/cjs", |
| 49 | + "build:bit": "rm -rf dist && bit build", |
| 50 | + "format": "prettier --write \"src/**/*.tsx\" \"src/**/*.ts\"", |
43 | 51 | "deploy:npm": "npm publish", |
44 | 52 | "deploy:bit": "bit export joshk.react-spinners-css" |
45 | 53 | }, |
46 | | - "eslintConfig": { |
47 | | - "extends": "react-app" |
48 | | - }, |
49 | | - "browserslist": [ |
50 | | - ">0.2%", |
51 | | - "not dead", |
52 | | - "not ie <= 11", |
53 | | - "not op_mini all" |
54 | | - ], |
55 | 54 | "dependencies": { |
56 | | - "classnames": "^2.2.6", |
57 | | - "prop-types": "^15.7.2" |
| 55 | + "classnames": "^2.3.1", |
| 56 | + "react": "^17.0.2", |
| 57 | + "react-dom": "^17.0.2", |
| 58 | + "react-scripts": "4.0.3", |
| 59 | + "typescript": "^4.1.2", |
| 60 | + "web-vitals": "^1.0.1" |
58 | 61 | }, |
59 | 62 | "devDependencies": { |
60 | | - "@babel/cli": "^7.2.3", |
61 | | - "@babel/preset-env": "^7.10.3", |
62 | | - "@babel/preset-react": "^7.10.1", |
63 | | - "@bit/joshk.jotils.get-random-color": "^2.0.8", |
64 | | - "prettier": "^1.18.2", |
65 | | - "react": "^16.8.6", |
66 | | - "react-dom": "^16.8.6", |
67 | | - "react-scripts": "^3.1.1" |
| 63 | + "@testing-library/jest-dom": "^5.11.4", |
| 64 | + "@testing-library/react": "^11.1.0", |
| 65 | + "@testing-library/user-event": "^12.1.10", |
| 66 | + "@types/classnames": "^2.2.11", |
| 67 | + "@types/jest": "^26.0.15", |
| 68 | + "@types/node": "^12.0.0", |
| 69 | + "@types/react": "^17.0.0", |
| 70 | + "@types/react-dom": "^17.0.0", |
| 71 | + "copyfiles": "^2.4.1", |
| 72 | + "typescript-plugin-css-modules": "^3.2.0" |
68 | 73 | }, |
69 | 74 | "peerDependencies": { |
70 | | - "react": "^16.8.6", |
71 | | - "react-dom": "^16.8.6" |
| 75 | + "react": "^17.0.2", |
| 76 | + "react-dom": "^17.0.2" |
| 77 | + }, |
| 78 | + "eslintConfig": { |
| 79 | + "extends": [ |
| 80 | + "react-app", |
| 81 | + "react-app/jest" |
| 82 | + ] |
72 | 83 | }, |
73 | | - "publishConfig": { |
74 | | - "registry": "https://npm.pkg.github.com/" |
| 84 | + "browserslist": { |
| 85 | + "production": [ |
| 86 | + ">0.2%", |
| 87 | + "not dead", |
| 88 | + "not op_mini all" |
| 89 | + ], |
| 90 | + "development": [ |
| 91 | + "last 1 chrome version", |
| 92 | + "last 1 firefox version", |
| 93 | + "last 1 safari version" |
| 94 | + ] |
75 | 95 | }, |
76 | 96 | "bit": { |
77 | 97 | "env": { |
|
0 commit comments