1 | {
|
2 | "name": "@shopify/sewing-kit",
|
3 | "version": "0.45.4-jest-upgrade-beta.1",
|
4 | "main": "index.js",
|
5 | "license": "MIT",
|
6 | "publishConfig": {
|
7 | "access": "public"
|
8 | },
|
9 | "bin": {
|
10 | "sk": "./bin/sewing-kit",
|
11 | "skd": "./bin/sewing-kit-debug",
|
12 | "ski": "./bin/sewing-kit-inspect",
|
13 | "sewing-kit": "./bin/sewing-kit",
|
14 | "sewing-kit-debug": "./bin/sewing-kit-debug",
|
15 | "sewing-kit-enterprise": "./bin/sewing-kit-enterprise",
|
16 | "sewing-kit-inspect": "./bin/sewing-kit-inspect"
|
17 | },
|
18 | "scripts": {
|
19 | "format": "yarn run lint:js --fix && yarn run lint:ts --fix",
|
20 | "lint:js": "eslint . --max-warnings 0 --format codeframe",
|
21 | "lint:ts": "eslint . --ext .ts --max-warnings 0 --format codeframe",
|
22 | "lint": "yarn run lint:js && yarn run lint:ts",
|
23 | "ts": "tsc --noEmit",
|
24 | "pretest:e2e": "yarn run build",
|
25 | "test:e2e": "jest --roots 'tests/e2e' --",
|
26 | "test:e2e:debug": "node --inspect-brk node_modules/.bin/jest --roots 'tests/e2e' --debug --",
|
27 | "test:unit": "jest --roots 'src' 'packages' --",
|
28 | "test:unit:watch": "jest --roots 'src' 'packages' --watch",
|
29 | "check": "yarn run ts && yarn run test:fail-on-only-in-test && yarn run test:unit && yarn run test:e2e",
|
30 | "prebuild": "rm -rf lib",
|
31 | "build": "tsc",
|
32 | "tophat": "node ./tophat/index.js tophat",
|
33 | "postbuild": "node ./scripts/rewrite-typescript-paths-to-relative-requires.js",
|
34 | "prepublish": "in-publish && yarn run build && echo 'N/A' > README.md || :"
|
35 | },
|
36 | "files": [
|
37 | "lib",
|
38 | "bin",
|
39 | "jest",
|
40 | "typescript"
|
41 | ],
|
42 | "jest": {
|
43 | "globals": {
|
44 | "ts-jest": {
|
45 | "babelConfig": {
|
46 | "plugins": [
|
47 | "babel-plugin-system-import-transformer"
|
48 | ],
|
49 | "sourceMaps": "inline"
|
50 | }
|
51 | }
|
52 | },
|
53 | "testEnvironment": "node",
|
54 | "testRegex": ".*\\.test\\.ts$",
|
55 | "transform": {
|
56 | ".ts$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
|
57 | },
|
58 | "moduleDirectories": [
|
59 | "node_modules",
|
60 | "packages",
|
61 | "<rootDir>"
|
62 | ],
|
63 | "moduleFileExtensions": [
|
64 | "js",
|
65 | "ts",
|
66 | "json"
|
67 | ]
|
68 | },
|
69 | "eslintConfig": {
|
70 | "extends": [
|
71 | "plugin:shopify/typescript",
|
72 | "plugin:shopify/typescript-prettier",
|
73 | "plugin:shopify/jest"
|
74 | ],
|
75 | "rules": {
|
76 | "no-undefined": "off",
|
77 | "no-process-env": "off",
|
78 | "require-await": "off",
|
79 | "jest/consistent-test-it": [
|
80 | "error",
|
81 | {
|
82 | "fn": "it"
|
83 | }
|
84 | ]
|
85 | }
|
86 | },
|
87 | "optionalDependencies": {},
|
88 | "devDependencies": {
|
89 | "@types/chalk": "^2.2.0",
|
90 | "@types/express": "^4.11.1",
|
91 | "@types/fs-extra": "^5.0.1",
|
92 | "@types/glob": "^5.0.35",
|
93 | "@types/graphql": "^0.11.8",
|
94 | "@types/isomorphic-fetch": "^0.0.34",
|
95 | "@types/js-yaml": "^3.11.1",
|
96 | "@types/lodash": "^4.14.106",
|
97 | "@types/node": "^10.0.4",
|
98 | "@types/rollup": "^0.51.0",
|
99 | "@types/tapable": "^1.0.2",
|
100 | "@types/temp": "^0.8.32",
|
101 | "@types/webpack": "^4.1.4",
|
102 | "@types/webpack-dev-middleware": "^2.0.1",
|
103 | "@types/yargs": "^11.0.0",
|
104 | "generic-names": "^1.0.2",
|
105 | "in-publish": "^2.0.0",
|
106 | "rollup-pluginutils": "^2.0.1",
|
107 | "typescript": "^2.8.3",
|
108 | "webpack-cli": "^2.1.3"
|
109 | },
|
110 | "dependencies": {
|
111 | "@shopify/images": "^1.1.4",
|
112 | "@types/jest": "^21.1.10",
|
113 | "app-root-dir": "^1.0.2",
|
114 | "awesome-typescript-loader": "3.1.3",
|
115 | "babel-core": "^6.25.0",
|
116 | "babel-jest": "^22.4.3",
|
117 | "babel-loader": "^7.1.4",
|
118 | "babel-plugin-lodash": "^3.2.11",
|
119 | "babel-plugin-system-import-transformer": "^3.1.0",
|
120 | "babel-preset-shopify": "^16.5.0",
|
121 | "cache-loader": "^1.2.2",
|
122 | "case-sensitive-paths-webpack-plugin": "^2.1.2",
|
123 | "chalk": "^2.3.2",
|
124 | "core-js": "^2.5.0",
|
125 | "css-loader": "^0.28.11",
|
126 | "element-dataset": "^2.2.6",
|
127 | "eslint": "^4.10.0",
|
128 | "eslint-plugin-graphql": "^1.4.1",
|
129 | "eslint-plugin-shopify": "^22.0.0",
|
130 | "express": "^4.16.3",
|
131 | "file-loader": "^1.1.6",
|
132 | "fs-extra": "^6.0.0",
|
133 | "get-port": "^3.2.0",
|
134 | "glob": "^7.1.2",
|
135 | "graphql": "^0.11.7",
|
136 | "graphql-tag": "^2.5.0",
|
137 | "graphql-typescript-definitions": "^0.7.3",
|
138 | "graphql-validate-fixtures": "^0.7.0",
|
139 | "happypack": "^5.0.0",
|
140 | "hard-source-webpack-plugin": "^0.6.4",
|
141 | "identity-obj-proxy": "^3.0.0",
|
142 | "image-webpack-loader": "^4.0.0",
|
143 | "is-reachable": "^2.4.0",
|
144 | "isomorphic-fetch": "^2.2.1",
|
145 | "jest": "^23.0.0",
|
146 | "jest-transform-graphql": "^2.1.0",
|
147 | "js-yaml": "^3.11.0",
|
148 | "lodash": "^4.17.5",
|
149 | "lodash-webpack-plugin": "^0.11.5",
|
150 | "mini-css-extract-plugin": "^0.4.0",
|
151 | "node-object-hash": "^1.3.0",
|
152 | "node-sass": "^4.8.3",
|
153 | "open-in-editor": "^2.2.0",
|
154 | "postcss-loader": "^2.1.3",
|
155 | "postcss-shopify": "^1.0.1",
|
156 | "prettier": "^1.12.1",
|
157 | "prettier-stylelint-formatter": "0.5.1-beta.1",
|
158 | "react-dev-utils": "^5.0.0",
|
159 | "react-hot-loader": "^4.1.2",
|
160 | "regenerator-runtime": "^0.11.1",
|
161 | "rollup": "^0.51.0",
|
162 | "rollup-plugin-babel": "^3.0.3",
|
163 | "rollup-plugin-commonjs": "^8.2.6",
|
164 | "rollup-plugin-json": "^2.3.0",
|
165 | "rollup-plugin-node-resolve": "^3.0.2",
|
166 | "sass-loader": "^7.0.1",
|
167 | "sass-resources-loader": "^1.3.2",
|
168 | "source-map-support": "^0.5.4",
|
169 | "style-loader": "^0.21.0",
|
170 | "stylelint": "^9.2.0",
|
171 | "stylelint-config-shopify": "^5.0.1",
|
172 | "svgo": "^1.0.5",
|
173 | "temp": "^0.8.3",
|
174 | "ts-jest": "^21.2.3",
|
175 | "ts-loader": "^4.3.0",
|
176 | "uglifyjs-webpack-plugin": "npm:uglifyjs-webpack-plugin-temp-fork@1.2.6-beta.1",
|
177 | "url-loader": "^1.0.1",
|
178 | "webpack": "~4.8.1",
|
179 | "webpack-bundle-analyzer": "^2.11.1",
|
180 | "webpack-dev-middleware": "^3.0.1",
|
181 | "webpack-dev-server": "^3.1.4",
|
182 | "webpack-hot-middleware": "^2.21.2",
|
183 | "webpack-node-externals": "^1.7.2",
|
184 | "webpack-plugin-hash-output": "npm:webpack-plugin-hash-output-mini-css@3.1.0-beta.1",
|
185 | "whatwg-url": "^6.1.0",
|
186 | "yargs": "^11.0.0"
|
187 | }
|
188 | }
|