This commit is contained in:
Nathan Bierema 2020-08-16 16:27:46 -04:00
parent 559f1494a0
commit 3d54daa515
5 changed files with 52 additions and 26 deletions

View File

@ -1,4 +1,4 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"],
"presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"],
"plugins": ["@babel/plugin-proposal-class-properties"]
}

View File

@ -0,0 +1,2 @@
lib
umd

View File

@ -0,0 +1,21 @@
module.exports = {
extends: '../../.eslintrc',
overrides: [
{
files: ['*.ts', '*.tsx'],
extends: '../../eslintrc.ts.react.base.json',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
},
{
files: ['test/*.ts', 'test/*.tsx'],
extends: '../../eslintrc.ts.react.jest.base.json',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./test/tsconfig.json'],
},
},
],
};

View File

@ -0,0 +1,2 @@
lib
umd

View File

@ -2,7 +2,33 @@
"name": "react-json-tree",
"version": "0.12.1",
"description": "React JSON Viewer Component, Extracted from redux-devtools",
"keywords": [
"react",
"json viewer"
],
"homepage": "https://github.com/reduxjs/redux-devtools/tree/master/packages/react-json-tree",
"bugs": {
"url": "https://github.com/reduxjs/redux-devtools/issues"
},
"license": "MIT",
"author": "Shu Uesugi <shu@chibicode.com> (http://github.com/chibicode)",
"contributors": [
"Alexander Kuznetsov <alexkuz@gmail.com> (http://kuzya.org/)",
"Dave Vedder <veddermatic@gmail.com> (http://www.eskimospy.com/)",
"Daniele Zannotti <dzannotti@me.com> (http://www.github.com/dzannotti)",
"Mihail Diordiev <zalmoxisus@gmail.com> (https://github.com/zalmoxisus)"
],
"files": [
"lib",
"src",
"umd"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/reduxjs/redux-devtools.git"
},
"scripts": {
"clean": "rimraf lib",
"build": "babel src --out-dir lib",
@ -13,31 +39,6 @@
"prepublishOnly": "npm run test && npm run clean && npm run build && npm run build:umd && npm run build:umd:min",
"start": "cd examples && npm start"
},
"files": [
"lib",
"src",
"umd"
],
"repository": {
"type": "git",
"url": "https://github.com/reduxjs/redux-devtools.git"
},
"keywords": [
"react",
"json viewer"
],
"author": "Shu Uesugi <shu@chibicode.com> (http://github.com/chibicode)",
"contributors": [
"Alexander Kuznetsov <alexkuz@gmail.com> (http://kuzya.org/)",
"Dave Vedder <veddermatic@gmail.com> (http://www.eskimospy.com/)",
"Daniele Zannotti <dzannotti@me.com> (http://www.github.com/dzannotti)",
"Mihail Diordiev <zalmoxisus@gmail.com> (https://github.com/zalmoxisus)"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/reduxjs/redux-devtools/issues"
},
"homepage": "https://github.com/reduxjs/redux-devtools",
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.1",