1 | {
|
2 | "name": "@cbinsights/fds",
|
3 | "description": "Form: A design system by CB Insights",
|
4 | "author": "CB Insights",
|
5 | "version": "14.15.0",
|
6 | "license": "MIT",
|
7 | "files": [
|
8 | "lib"
|
9 | ],
|
10 | "scripts": {
|
11 | "codeshift": "/bin/sh ./scripts/bash/transforms/transform.sh",
|
12 | "clean": "/bin/sh ./scripts/bash/clean.sh",
|
13 | "build:bootstrap": "/bin/sh ./scripts/bash/bootstrapBuild.sh",
|
14 | "build:styles": "yarn dictionary:css & yarn styles:min && yarn styles:full",
|
15 | "build:icons": "yarn icons:png && yarn icons:svg && yarn icons:css",
|
16 | "build:comp": "yarn comp:css && yarn comp:jsx",
|
17 | "build:distCSS": "NODE_ENV=production postcss src/assets/all-styles.css -o ./lib/assets/all-styles.min.css --config=./postcss.config.js",
|
18 | "build:full": "yarn clean && yarn build:bootstrap && yarn build:styles && yarn build:icons && yarn build:comp && yarn build:distCSS && yarn build:types && yarn build:images",
|
19 | "build:images": "cp -r src/assets/images/ lib/assets/images/",
|
20 | "build:types": "tsc --noEmit false --emitDeclarationOnly true --declaration true --outDir lib",
|
21 | "build": "yarn build:full",
|
22 | "gen:dictionary": "node ./scripts/node/dictionary/build.js",
|
23 | "gen:icons": "yarn icons:react && yarn icons:setup",
|
24 | "styles:min": "NODE_ENV=production postcss src/base-styles/index.css --verbose --output=lib/base-styles/base-styles.min.css --config=./postcss.config.js",
|
25 | "styles:full": "postcss src/base-styles/index.css --verbose --output=lib/base-styles/base-styles.full.css --config=./postcss.config.js",
|
26 | "styles:docs": "NODE_ENV=base_styles_docs postcss ./lib/base-styles/base-styles.full.css --output=/dev/null",
|
27 | "icons:export": "node ./scripts/node/icons/exportFromSketch.js",
|
28 | "icons:svg": "node ./scripts/node/icons/buildSvg.js",
|
29 | "icons:png": "node ./scripts/node/icons/buildPng.js",
|
30 | "icons:react": "node ./scripts/node/icons/buildComponents.js",
|
31 | "icons:css": "cp src/icons/style/icons.css ./lib/icons/style/icons.css",
|
32 | "icons:setup": "node ./scripts/node/icons/buildIconManifest.js",
|
33 | "comp:jsx": "NODE_ENV=jsx_compile babel src --out-dir=lib --no-copy-ignored --extensions '.js,.jsx,.ts,.tsx'",
|
34 | "comp:css": "postcss src/components/style/index.css -o ./lib/components/style/fds-components.css --config=./postcss.config.js",
|
35 | "comp:docs": "build-storybook -o public",
|
36 | "dictionary:css": "cp -r src/dictionary/css lib/dictionary/",
|
37 | "test": "jest",
|
38 | "test:coverage": "jest --coverage",
|
39 | "lint": "eslint --max-warnings 0 ./src/ --ext .js,.jsx,.ts,.tsx",
|
40 | "lint:stylelint": "stylelint 'src/**/*.css'",
|
41 | "prettier:check": "prettier --check .",
|
42 | "storybook": "start-storybook -p 6006",
|
43 | "build-storybook": "build-storybook",
|
44 | "stats:css": "node ./scripts/node/util/getClassStats.js",
|
45 | "stats:imports": "node ./scripts/node/util/getImportStats.js",
|
46 | "type-check": "tsc",
|
47 | "semantic-release": "semantic-release",
|
48 | "commit": "git-cz",
|
49 | "check": "yarn lint && yarn test && yarn type-check",
|
50 | "_postinstall": "yarn husky install",
|
51 | "prepublishOnly": "yarn pinst --disable",
|
52 | "postpublish": "yarn pinst --enable",
|
53 | "start:storybook": "start-storybook -p 9009 -s public --ci",
|
54 | "cy:test:storybook": "cypress run --headless -C cypress.storybook.json",
|
55 | "ci:start-and-test-storybook": "cross-env START_SERVER_AND_TEST_INSECURE=1 yarn start-server-and-test start:storybook http://localhost:9009 cy:test:storybook",
|
56 | "test-pattern": "yarn test -t"
|
57 | },
|
58 | "peerDependencies": {
|
59 | "dayjs": "^1.9.7",
|
60 | "prop-types": "^15",
|
61 | "raf-schd": "^4",
|
62 | "react": "^16",
|
63 | "react-day-picker": "^7.4.8",
|
64 | "react-dom": "^16",
|
65 | "react-transition-group": "^4.4.1"
|
66 | },
|
67 | "devDependencies": {
|
68 | "@babel/cli": "7.18.9",
|
69 | "@babel/core": "7.18.9",
|
70 | "@babel/parser": "7.18.9",
|
71 | "@babel/plugin-proposal-class-properties": "7.18.6",
|
72 | "@babel/plugin-proposal-private-methods": "7.18.6",
|
73 | "@babel/plugin-proposal-private-property-in-object": "7.18.6",
|
74 | "@babel/plugin-syntax-dynamic-import": "7.8.3",
|
75 | "@babel/plugin-transform-modules-commonjs": "7.18.6",
|
76 | "@babel/plugin-transform-react-jsx": "7.18.6",
|
77 | "@babel/plugin-transform-regenerator": "7.18.6",
|
78 | "@babel/plugin-transform-runtime": "7.18.9",
|
79 | "@babel/preset-env": "7.18.9",
|
80 | "@babel/preset-react": "7.18.6",
|
81 | "@babel/preset-typescript": "7.18.6",
|
82 | "@babel/runtime": "7.18.9",
|
83 | "@commitlint/cli": "17.0.3",
|
84 | "@commitlint/config-conventional": "17.0.3",
|
85 | "@commitlint/prompt": "17.0.3",
|
86 | "@commitlint/prompt-cli": "17.0.3",
|
87 | "@mdx-js/react": "1.6.22",
|
88 | "@storybook/addon-a11y": "6.5.9",
|
89 | "@storybook/addon-backgrounds": "6.5.9",
|
90 | "@storybook/addon-docs": "6.5.9",
|
91 | "@storybook/addon-essentials": "6.5.9",
|
92 | "@storybook/addon-links": "6.5.9",
|
93 | "@storybook/addon-postcss": "2.0.0",
|
94 | "@storybook/addons": "6.5.9",
|
95 | "@storybook/api": "6.5.9",
|
96 | "@storybook/components": "6.5.9",
|
97 | "@storybook/core-events": "6.5.9",
|
98 | "@storybook/react": "6.5.9",
|
99 | "@storybook/theming": "6.5.9",
|
100 | "@testing-library/dom": "8.14.0",
|
101 | "@testing-library/jest-dom": "5.16.4",
|
102 | "@testing-library/react": "12.1.5",
|
103 | "@testing-library/user-event": "13.5.0",
|
104 | "@types/autosuggest-highlight": "3.2.0",
|
105 | "@types/babel__core": "7.1.19",
|
106 | "@types/babel__plugin-transform-runtime": "7.9.2",
|
107 | "@types/babel__preset-env": "7.9.2",
|
108 | "@types/css": "0.0.33",
|
109 | "@types/cssnano": "5.0.0",
|
110 | "@types/eslint": "8.4.5",
|
111 | "@types/fs-extra": "9.0.13",
|
112 | "@types/glob": "7.2.0",
|
113 | "@types/jest": "28.1.4",
|
114 | "@types/mdx-js__react": "1.5.5",
|
115 | "@types/postcss-import": "14.0.0",
|
116 | "@types/prettier": "2.6.3",
|
117 | "@types/prop-types": "15.7.5",
|
118 | "@types/raf-schd": "4.0.1",
|
119 | "@types/react": "17.0.44",
|
120 | "@types/react-dom": "18.0.3",
|
121 | "@types/react-is": "17.0.3",
|
122 | "@types/react-transition-group": "4.4.5",
|
123 | "@types/rimraf": "3.0.2",
|
124 | "@types/semantic-release": "17.2.3",
|
125 | "@types/svgo": "1.3.6",
|
126 | "@types/testing-library__jest-dom": "5.14.5",
|
127 | "@types/testing-library__user-event": "4.2.0",
|
128 | "@types/tinycolor2": "1.4.3",
|
129 | "@types/uuid": "8.3.4",
|
130 | "@types/webpack": "5.28.0",
|
131 | "@typescript-eslint/eslint-plugin": "5.30.5",
|
132 | "@typescript-eslint/parser": "5.30.5",
|
133 | "babel-eslint": "10.1.0",
|
134 | "babel-jest": "28.1.2",
|
135 | "babel-loader": "8.2.5",
|
136 | "babel-plugin-module-resolver": "4.1.0",
|
137 | "commitizen": "4.2.4",
|
138 | "components": "link:./src/components",
|
139 | "cross-env": "7.0.3",
|
140 | "css": "3.0.0",
|
141 | "cssnano": "5.1.12",
|
142 | "cypress": "9.7.0",
|
143 | "cz-conventional-changelog": "3.3.0",
|
144 | "dayjs": "1.11.3",
|
145 | "dictionary": "link:./src/dictionary",
|
146 | "eslint": "8.19.0",
|
147 | "eslint-config-prettier": "8.5.0",
|
148 | "eslint-plugin-import": "2.26.0",
|
149 | "eslint-plugin-jest": "26.5.3",
|
150 | "eslint-plugin-react": "7.30.1",
|
151 | "eslint-plugin-storybook": "0.5.13",
|
152 | "fs-extra": "10.1.0",
|
153 | "glob": "8.0.3",
|
154 | "handlebars": "4.7.7",
|
155 | "husky": "8.0.1",
|
156 | "icons": "link:./src/icons",
|
157 | "jest": "28.1.2",
|
158 | "jest-environment-jsdom": "28.1.2",
|
159 | "jest-prop-type-error": "1.1.0",
|
160 | "lint-staged": "13.0.3",
|
161 | "pascal-case": "3.1.2",
|
162 | "pinst": "3.0.0",
|
163 | "postcss": "8.4.14",
|
164 | "postcss-cli": "10.0.0",
|
165 | "postcss-html": "1.4.1",
|
166 | "postcss-import": "14.1.0",
|
167 | "postcss-loader": "7.0.0",
|
168 | "postcss-preset-env": "7.7.2",
|
169 | "prettier": "2.7.1",
|
170 | "prop-types": "15.8.1",
|
171 | "raf-schd": "4.0.3",
|
172 | "react": "16.14.0",
|
173 | "react-day-picker": "7.4.10",
|
174 | "react-dom": "16.14.0",
|
175 | "react-hook-form": "7.31.3",
|
176 | "react-is": "16.13.1",
|
177 | "react-markdown": "8.0.3",
|
178 | "react-transition-group": "4.4.2",
|
179 | "rimraf": "3.0.2",
|
180 | "semantic-release": "19.0.3",
|
181 | "snake-case": "3.0.4",
|
182 | "start-server-and-test": "1.14.0",
|
183 | "style-dictionary": "3.7.1",
|
184 | "style-loader": "3.3.1",
|
185 | "stylelint": "14.9.1",
|
186 | "stylelint-config-prettier": "9.0.3",
|
187 | "stylelint-config-standard": "26.0.0",
|
188 | "svg-to-jsx": "1.0.4",
|
189 | "svgo": "1.3.2",
|
190 | "tinycolor2": "1.4.2",
|
191 | "typescript": "4.6.4",
|
192 | "util": "link:./src/util"
|
193 | },
|
194 | "repository": {
|
195 | "type": "git",
|
196 | "url": "https://github.com/cbinsights/form-design-system.git"
|
197 | },
|
198 | "browserslist": [
|
199 | "last 1 Chrome versions",
|
200 | "last 1 Firefox versions",
|
201 | "last 1 Edge versions",
|
202 | "last 2 Safari versions",
|
203 | "Explorer 11"
|
204 | ],
|
205 | "lint-staged": {
|
206 | "*": [
|
207 | "prettier --write --ignore-unknown"
|
208 | ],
|
209 | "src/**/*.{js,jsx,ts,tsx}": [
|
210 | "eslint --no-ignore --fix"
|
211 | ],
|
212 | "src/**/*.css": [
|
213 | "stylelint"
|
214 | ]
|
215 | },
|
216 | "config": {
|
217 | "commitizen": {
|
218 | "path": "cz-conventional-changelog"
|
219 | }
|
220 | },
|
221 | "dependencies": {
|
222 | "@radix-ui/react-avatar": "0.1.4",
|
223 | "@radix-ui/react-checkbox": "0.1.5",
|
224 | "@radix-ui/react-context-menu": "0.1.6",
|
225 | "@radix-ui/react-dialog": "0.1.7",
|
226 | "@radix-ui/react-dropdown-menu": "0.1.6",
|
227 | "@radix-ui/react-label": "0.1.5",
|
228 | "@radix-ui/react-popover": "0.1.6",
|
229 | "@radix-ui/react-tooltip": "0.1.7",
|
230 | "@reach/menu-button": "0.17.0",
|
231 | "autosuggest-highlight": "3.3.0",
|
232 | "classcat": "5.0.3",
|
233 | "raf-schd": "4.0.3",
|
234 | "react-select": "5.4.0",
|
235 | "uuid": "8.3.2"
|
236 | },
|
237 | "resolutions": {
|
238 | "minimist": ">0.2.1",
|
239 | "prismjs": "1.28.0",
|
240 | "postcss": "8.4.14"
|
241 | },
|
242 | "packageManager": "yarn@3.2.0",
|
243 | "engines": {
|
244 | "npm": "8.13.2",
|
245 | "node": ">=16 <17"
|
246 | }
|
247 | }
|