1 | {
|
2 | "name": "aws-amplify-react",
|
3 | "version": "4.2.0",
|
4 | "description": "AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.",
|
5 | "main": "./lib/index.js",
|
6 | "module": "./lib-esm/index.js",
|
7 | "typings": "./lib-esm/index.d.ts",
|
8 | "sideEffects": false,
|
9 | "scripts": {
|
10 | "test": "tslint 'src/**/*.ts' && jest -w 1 --coverage --updateSnapshot --maxWorkers 2",
|
11 | "build-with-test": "npm test && npm run build",
|
12 | "build:cjs": "node ./build es5 && webpack && webpack --config ./webpack.config.dev.js",
|
13 | "build:esm": "node ./build es6",
|
14 | "build:cjs:watch": "node ./build es5 --watch",
|
15 | "build:esm:watch": "node ./build es6 --watch",
|
16 | "build": "npm run clean && npm run build:cjs && npm run build:esm",
|
17 | "clean": "rimraf lib-esm lib dist",
|
18 | "watch": "yarn run clean && babel src --presets babel-preset-react --out-dir dist --copy-files --watch",
|
19 | "cypress": "cypress run",
|
20 | "cypress:open": "cypress open",
|
21 | "format": "echo \"Not implemented\"",
|
22 | "lint": "tslint 'src/**/*.ts'"
|
23 | },
|
24 | "devDependencies": {
|
25 | "@types/enzyme": "^3.1.0",
|
26 | "@types/enzyme-adapter-react-16": "^1.0.3",
|
27 | "@types/react": "^16.0.41",
|
28 | "@types/react-dom": "^16.0.11",
|
29 | "aws-amplify": "^3.0.25",
|
30 | "enzyme": "^3.1.0",
|
31 | "enzyme-adapter-react-16": "^1.0.3",
|
32 | "enzyme-to-json": "^3.2.1",
|
33 | "react": "^16.0.0",
|
34 | "react-dom": "^16.0.0",
|
35 | "react-test-renderer": "^16.0.0"
|
36 | },
|
37 | "repository": {
|
38 | "type": "git",
|
39 | "url": "https://github.com/aws-amplify/amplify-js.git"
|
40 | },
|
41 | "author": "Amazon Web Services",
|
42 | "license": "Apache-2.0",
|
43 | "jest": {
|
44 | "globals": {
|
45 | "ts-jest": {
|
46 | "diagnostics": false,
|
47 | "tsConfig": {
|
48 | "lib": [
|
49 | "es5",
|
50 | "es2015",
|
51 | "dom",
|
52 | "esnext.asynciterable",
|
53 | "es2017.object"
|
54 | ],
|
55 | "allowJs": true,
|
56 | "jsx": "react"
|
57 | }
|
58 | }
|
59 | },
|
60 | "transform": {
|
61 | "^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
|
62 | },
|
63 | "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
64 | "moduleFileExtensions": [
|
65 | "ts",
|
66 | "tsx",
|
67 | "js",
|
68 | "jsx",
|
69 | "json",
|
70 | "node"
|
71 | ],
|
72 | "timers": "fake",
|
73 | "setupTestFrameworkScriptFile": "./test_Setup/enzymeSetup.ts",
|
74 | "snapshotSerializers": [
|
75 | "enzyme-to-json/serializer"
|
76 | ],
|
77 | "testEnvironment": "jsdom",
|
78 | "testURL": "http://localhost/",
|
79 | "coverageThreshold": {
|
80 | "global": {
|
81 | "branches": 70,
|
82 | "functions": 75,
|
83 | "lines": 75,
|
84 | "statements": 75
|
85 | }
|
86 | },
|
87 | "coveragePathIgnorePatterns": [
|
88 | "/node_modules/"
|
89 | ],
|
90 | "moduleNameMapper": {
|
91 | "\\.(css|less|scss|sass)$": "<rootDir>/__mocks__/styleMock.ts"
|
92 | }
|
93 | },
|
94 | "dependencies": {
|
95 | "qrcode.react": "^0.8.0",
|
96 | "regenerator-runtime": "^0.11.1"
|
97 | },
|
98 | "peerDependencies": {
|
99 | "@aws-amplify/analytics": "^3.0.0",
|
100 | "@aws-amplify/api": "^3.0.0",
|
101 | "@aws-amplify/auth": "^3.0.0",
|
102 | "@aws-amplify/core": "^3.0.0",
|
103 | "@aws-amplify/interactions": "^3.0.0",
|
104 | "@aws-amplify/storage": "^3.0.0",
|
105 | "@aws-amplify/ui": "^2.0.0",
|
106 | "@aws-amplify/xr": "^2.0.0"
|
107 | },
|
108 | "gitHead": "2b63b41879820b1a28302365afede7b1d00c3c43"
|
109 | }
|