|
1 | 1 | {
|
2 | 2 | "name": "react-bootstrap",
|
3 |
| - "version": "1.0.1", |
| 3 | + "version": "1.1.0-rc.0", |
4 | 4 | "description": "Bootstrap 4 components built with React",
|
5 | 5 | "repository": {
|
6 | 6 | "type": "git",
|
|
10 | 10 | "sideEffects": false,
|
11 | 11 | "main": "lib/cjs/index.js",
|
12 | 12 | "module": "lib/esm/index.js",
|
| 13 | + "types": "lib/esm/index.d.ts", |
13 | 14 | "scripts": {
|
14 | 15 | "bootstrap": "yarn && yarn --cwd www",
|
15 | 16 | "build": "node tools/build.js",
|
16 | 17 | "build-docs": "yarn --cwd www build",
|
| 18 | + "build-types": "yarn tsc -d --emitDeclarationOnly --outDir types", |
17 | 19 | "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
18 |
| - "dtslint": "dtslint types --expectOnly", |
19 |
| - "format": "eslint . --fix && npm run prettier -- --write", |
20 |
| - "lint": "eslint . && npm run prettier -- -l", |
21 | 20 | "deploy-docs": "yarn --cwd www deploy",
|
| 21 | + "format": "eslint --ext tsx --ext ts src --fix", |
| 22 | + "lint": "eslint --ext tsx --ext ts src && tsc --noEmit", |
22 | 23 | "prepublishOnly": "npm run build",
|
23 |
| - "prettier": "prettier \"types/**/*.{ts,tsx}\"", |
24 | 24 | "release": "rollout",
|
25 | 25 | "start": "yarn --cwd www develop",
|
26 | 26 | "tdd": "karma start",
|
27 |
| - "test": "npm run lint && npm run dtslint && npm run test-browser && npm run test-node", |
| 27 | + "test": "npm run lint && npm run test-browser && npm run test-node", |
28 | 28 | "test-browser": "cross-env NODE_ENV=test karma start --single-run",
|
29 |
| - "test-node": "cross-env NODE_ENV=test-server mocha --require @babel/register test/server/*Spec.js" |
| 29 | + "test-node": "cross-env NODE_ENV=test-server mocha test/server/*Spec.js" |
30 | 30 | },
|
31 | 31 | "husky": {
|
32 | 32 | "hooks": {
|
33 | 33 | "pre-commit": "lint-staged"
|
34 | 34 | }
|
35 | 35 | },
|
36 | 36 | "lint-staged": {
|
37 |
| - "*.js": "eslint --fix", |
38 |
| - "types/**/*.ts": "prettier --write" |
| 37 | + "*.{js,ts,tsx}": "eslint --fix" |
39 | 38 | },
|
40 | 39 | "prettier": {
|
41 | 40 | "singleQuote": true,
|
|
66 | 65 | "@babel/runtime": "^7.4.2",
|
67 | 66 | "@restart/context": "^2.1.4",
|
68 | 67 | "@restart/hooks": "^0.3.21",
|
69 |
| - "@types/react": "^16.9.23", |
| 68 | + "@types/react": "^16.9.35", |
70 | 69 | "classnames": "^2.2.6",
|
71 | 70 | "dom-helpers": "^5.1.2",
|
72 | 71 | "invariant": "^2.2.4",
|
|
79 | 78 | },
|
80 | 79 | "devDependencies": {
|
81 | 80 | "@4c/rollout": "^2.1.9",
|
| 81 | + "@4c/tsconfig": "^0.3.1", |
| 82 | + "@babel/preset-typescript": "^7.9.0", |
82 | 83 | "@babel/cli": "^7.10.4",
|
83 | 84 | "@babel/core": "^7.10.4",
|
84 | 85 | "@babel/register": "^7.10.4",
|
85 | 86 | "@react-bootstrap/babel-preset": "^1.2.0",
|
86 | 87 | "@react-bootstrap/eslint-config": "^1.3.2",
|
| 88 | + "@types/classnames": "^2.2.10", |
| 89 | + "@types/invariant": "^2.2.33", |
| 90 | + "@types/prop-types": "^15.7.3", |
| 91 | + "@types/react-transition-group": "^4.2.4", |
| 92 | + "@types/warning": "^3.0.0", |
| 93 | + "@typescript-eslint/eslint-plugin": "^2.33.0", |
| 94 | + "@typescript-eslint/parser": "^2.33.0", |
87 | 95 | "babel-eslint": "^10.1.0",
|
88 | 96 | "babel-loader": "^8.1.0",
|
89 | 97 | "babel-plugin-istanbul": "^6.0.0",
|
|
98 | 106 | "enzyme": "^3.11.0",
|
99 | 107 | "enzyme-adapter-react-16": "^1.15.2",
|
100 | 108 | "eslint": "^7.4.0",
|
| 109 | + "eslint-config-4catalyzer-typescript": "^1.1.8", |
101 | 110 | "eslint-import-resolver-node": "^0.3.4",
|
102 | 111 | "eslint-import-resolver-webpack": "^0.12.2",
|
103 | 112 | "eslint-plugin-import": "^2.22.0",
|
|
0 commit comments