|
6 | 6 | "author": "ericgio", |
7 | 7 | "license": "MIT", |
8 | 8 | "files": [ |
| 9 | + "cjs/", |
9 | 10 | "css/", |
10 | 11 | "dist/", |
11 | 12 | "docs/", |
12 | 13 | "es/", |
13 | | - "lib/", |
14 | 14 | "types/", |
15 | 15 | "LICENSE.md" |
16 | 16 | ], |
17 | | - "main": "lib/index.js", |
| 17 | + "main": "cjs/index.js", |
18 | 18 | "module": "es/index.js", |
19 | 19 | "types": "types/index.d.ts", |
20 | 20 | "repository": { |
|
23 | 23 | }, |
24 | 24 | "bugs": "https://github.com/ericgio/react-bootstrap-typeahead/issues", |
25 | 25 | "scripts": { |
26 | | - "build": "npm run clean && npm run build:css && npm run build:cjs && npm run build:es && npm run build:dist && npm run build:types && npm run build:example", |
| 26 | + "build": "yarn clean && yarn build:css && yarn build:modules && yarn build:dist && yarn build:types && yarn build:example", |
27 | 27 | "build:css": "node ./scripts/buildCSS.js", |
28 | 28 | "build:dist": "rollup -c", |
29 | | - "build:cjs": "BABEL_ENV=cjs babel src --out-dir lib -x '.ts,.tsx,.js,.jsx'", |
30 | | - "build:es": "BABEL_ENV=es babel src --out-dir es -x '.ts,.tsx,.js,.jsx'", |
| 29 | + "build:modules": "node ./scripts/buildModules.js", |
31 | 30 | "build:example": "webpack --mode production --config example/webpack.config.js", |
32 | | - "build:types": "npx tsc", |
33 | | - "check": "npm run lint && npm run typecheck && npm run prettier && npm test", |
34 | | - "ci": "npm run lint && npm run typecheck && npm run prettier && npm run test:coverage", |
35 | | - "clean": "rimraf coverage && rimraf css && rimraf dist && rimraf lib && rimraf es && rimraf types", |
| 31 | + "build:types": "tsc", |
| 32 | + "check": "yarn lint && yarn typecheck && yarn prettier && yarn test", |
| 33 | + "ci": "yarn lint && yarn typecheck && yarn prettier && yarn test:coverage", |
| 34 | + "clean": "rimraf coverage && rimraf css && rimraf dist && rimraf cjs && rimraf es && rimraf types", |
36 | 35 | "deploy-example": "node ./scripts/deployExample.js", |
37 | 36 | "lint": "eslint . --report-unused-disable-directives", |
38 | 37 | "lint:fix": "eslint . --fix", |
39 | | - "prettier": "npx prettier --check .", |
40 | | - "postpublish": "npm run deploy-example", |
41 | | - "prepublishOnly": "npm run check && npm run build", |
| 38 | + "prettier": "prettier --check .", |
| 39 | + "postpublish": "yarn deploy-example", |
| 40 | + "prepublishOnly": "yarn check && yarn build", |
42 | 41 | "start": "webpack --mode development -w --progress --config example/webpack.config.js", |
43 | 42 | "test": "jest --silent", |
44 | 43 | "test:coverage": "jest --coverage", |
45 | | - "typecheck": "npx tsc --noEmit" |
| 44 | + "typecheck": "tsc --noEmit" |
46 | 45 | }, |
47 | 46 | "dependencies": { |
48 | 47 | "@babel/runtime": "^7.14.6", |
|
98 | 97 | "eslint": "^7.30.0", |
99 | 98 | "eslint-config-prettier": "^8.3.0", |
100 | 99 | "eslint-plugin-react-hooks": "^4.0.4", |
| 100 | + "execa": "^5.1.1", |
101 | 101 | "gh-pages": "^3.2.3", |
102 | 102 | "husky": "^7.0.1", |
103 | 103 | "jest": "^27.0.6", |
|
0 commit comments