140 lines
4.2 KiB
JSON
140 lines
4.2 KiB
JSON
{
|
|
"name": "@stripe/react-stripe-js",
|
|
"version": "5.6.0",
|
|
"description": "React components for Stripe.js and Stripe Elements",
|
|
"main": "dist/react-stripe.js",
|
|
"module": "dist/react-stripe.esm.mjs",
|
|
"jsnext:main": "dist/react-stripe.esm.mjs",
|
|
"browser:min": "dist/react-stripe.umd.min.js",
|
|
"browser": "dist/react-stripe.umd.js",
|
|
"types": "dist/react-stripe.d.ts",
|
|
"releaseCandidate": false,
|
|
"exports": {
|
|
".": {
|
|
"require": "./dist/react-stripe.js",
|
|
"import": "./dist/react-stripe.esm.mjs",
|
|
"default": "./dist/react-stripe.esm.mjs",
|
|
"types": "./dist/react-stripe.d.ts"
|
|
},
|
|
"./checkout": {
|
|
"require": "./dist/checkout.js",
|
|
"import": "./dist/checkout.esm.mjs",
|
|
"default": "./dist/checkout.esm.mjs",
|
|
"types": "./dist/checkout.d.ts"
|
|
}
|
|
},
|
|
"typesVersions": {
|
|
"*": {
|
|
"checkout": [
|
|
"dist/checkout.d.ts"
|
|
]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"test": "yarn run lint && yarn run lint:prettier && yarn run test:unit && yarn test:package-types && yarn run typecheck",
|
|
"test:package-types": "attw --pack .",
|
|
"test:unit": "jest",
|
|
"lint": "eslint --max-warnings=0 '{src,examples}/**/*.{ts,tsx,js}'",
|
|
"lint:prettier": "prettier './**/*.js' './**/*.ts' './**/*.tsx' './**/*.css' './**/*.md' --list-different",
|
|
"typecheck": "tsc",
|
|
"build": "yarn run clean && yarn run rollup -c --bundleConfigAsCjs && yarn checkimport",
|
|
"checkimport": "scripts/check-imports",
|
|
"clean": "rimraf dist",
|
|
"prettier:fix": "prettier './**/*.js' './**/*.ts' './**/*.tsx' './**/*.css' './**/*.md' --write",
|
|
"prepublishOnly": "echo \"\nPlease use ./scripts/publish instead\n\" && exit 1",
|
|
"doctoc": "doctoc README.md",
|
|
"storybook": "start-storybook -p 6006 "
|
|
},
|
|
"keywords": [
|
|
"React",
|
|
"Stripe",
|
|
"Elements"
|
|
],
|
|
"author": "Stripe (https://www.stripe.com)",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/stripe/react-stripe-js.git"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"src",
|
|
"checkout.js",
|
|
"checkout.d.ts"
|
|
],
|
|
"jest": {
|
|
"preset": "ts-jest/presets/js-with-ts",
|
|
"setupFilesAfterEnv": [
|
|
"<rootDir>/test/setupJest.js"
|
|
],
|
|
"globals": {
|
|
"ts-jest": {
|
|
"diagnostics": {
|
|
"ignoreCodes": [
|
|
151001
|
|
]
|
|
}
|
|
},
|
|
"_VERSION": true
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"prop-types": "^15.7.2"
|
|
},
|
|
"devDependencies": {
|
|
"@arethetypeswrong/cli": "^0.15.3",
|
|
"@babel/cli": "^7.7.0",
|
|
"@babel/core": "^7.7.2",
|
|
"@babel/preset-env": "^7.7.1",
|
|
"@babel/preset-react": "^7.7.0",
|
|
"@rollup/plugin-babel": "^6.0.4",
|
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
"@rollup/plugin-replace": "^5.0.5",
|
|
"@rollup/plugin-terser": "^0.4.4",
|
|
"@storybook/react": "^6.5.0-beta.8",
|
|
"@stripe/stripe-js": "8.7.0",
|
|
"@testing-library/jest-dom": "^5.16.4",
|
|
"@testing-library/react": "^13.1.1",
|
|
"@testing-library/react-hooks": "^8.0.0",
|
|
"@types/jest": "^25.1.1",
|
|
"@types/react": "^18.0.0",
|
|
"@types/react-dom": "^18.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^2.18.0",
|
|
"@typescript-eslint/parser": "^2.18.0",
|
|
"babel-eslint": "^10.0.3",
|
|
"babel-jest": "^24.9.0",
|
|
"babel-loader": "^8.0.6",
|
|
"eslint": "6.6.0",
|
|
"eslint-config-airbnb": "18.0.1",
|
|
"eslint-config-prettier": "^6.10.0",
|
|
"eslint-plugin-import": "^2.18.2",
|
|
"eslint-plugin-jest": "^22.6.3",
|
|
"eslint-plugin-jsx-a11y": "^6.2.3",
|
|
"eslint-plugin-prettier": "^3.1.2",
|
|
"eslint-plugin-react": "^7.14.3",
|
|
"eslint-plugin-react-hooks": "^1.7.0",
|
|
"fork-ts-checker-webpack-plugin": "^4.0.3",
|
|
"jest": "^25.1.0",
|
|
"prettier": "^1.19.1",
|
|
"react": "18.1.0",
|
|
"react-docgen-typescript-loader": "^3.6.0",
|
|
"react-dom": "18.1.0",
|
|
"react-test-renderer": "^18.0.0",
|
|
"rimraf": "^2.6.2",
|
|
"rollup": "^4.12.0",
|
|
"rollup-plugin-ts": "^3.4.5",
|
|
"ts-jest": "^25.1.0",
|
|
"ts-loader": "^6.2.1",
|
|
"typescript": "^4.1.2"
|
|
},
|
|
"resolutions": {
|
|
"@types/react": "18.0.5"
|
|
},
|
|
"peerDependencies": {
|
|
"@stripe/stripe-js": ">=8.0.0 <9.0.0",
|
|
"react": ">=16.8.0 <20.0.0",
|
|
"react-dom": ">=16.8.0 <20.0.0"
|
|
}
|
|
}
|