redux-devtools-log-monitor and redux-devtools-remote

This commit is contained in:
Nathan Bierema 2022-01-23 16:32:55 -05:00
parent e202c81caf
commit f5c41b5528
13 changed files with 42 additions and 106 deletions

View File

@ -1 +1 @@
dist
lib

View File

@ -0,0 +1,8 @@
{
"presets": [
["@babel/preset-env", { "targets": "defaults", "modules": false }],
"@babel/preset-react",
"@babel/preset-typescript"
],
"plugins": ["@babel/plugin-transform-runtime"]
}

View File

@ -18,19 +18,23 @@
"license": "MIT",
"author": "Dan Abramov <dan.abramov@me.com> (http://github.com/gaearon)",
"files": [
"dist",
"lib",
"src"
],
"main": "dist/redux-devtools-log-monitor.cjs.js",
"module": "dist/redux-devtools-log-monitor.esm.js",
"types": "dist/index.d.ts",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"types": "lib/types/index.d.ts",
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/reduxjs/redux-devtools"
},
"scripts": {
"build": "rollup -c",
"clean": "rimraf dist",
"build": "yarn build:cjs && yarn build:esm && yarn build:types",
"build:cjs": "babel src --extensions \".ts,.tsx\" --out-dir lib/cjs",
"build:esm": "babel src --config-file ./babel.config.esm.json --extensions \".ts,.tsx\" --out-dir lib/esm",
"build:types": "tsc --emitDeclarationOnly",
"clean": "rimraf lib",
"lint": "eslint . --ext .ts,.tsx",
"type-check": "tsc --noEmit",
"prepack": "yarn run clean && yarn run build",
@ -47,6 +51,7 @@
"redux-devtools-themes": "^1.0.0"
},
"devDependencies": {
"@babel/cli": "^7.16.8",
"@babel/core": "^7.16.12",
"@babel/eslint-parser": "^7.16.5",
"@babel/plugin-transform-runtime": "^7.16.10",
@ -54,7 +59,6 @@
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@redux-devtools/core": "^3.10.1",
"@rollup/plugin-babel": "^5.3.0",
"@types/react": "^17.0.38",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
@ -65,9 +69,6 @@
"react": "^17.0.2",
"redux": "^4.1.2",
"rimraf": "^3.0.2",
"rollup": "^2.66.0",
"rollup-plugin-typescript2": "^0.31.1",
"tslib": "^2.3.1",
"typescript": "~4.5.5"
},
"peerDependencies": {

View File

@ -1,37 +0,0 @@
import typescript from 'rollup-plugin-typescript2';
import babel from '@rollup/plugin-babel';
const config = [
{
input: 'src/index.ts',
output: [
{
file: 'dist/redux-devtools-log-monitor.cjs.js',
format: 'cjs',
},
{
file: 'dist/redux-devtools-log-monitor.esm.js',
format: 'esm',
},
],
plugins: [
typescript(),
babel({
babelHelpers: 'runtime',
extensions: ['.ts', '.tsx'],
plugins: ['@babel/plugin-transform-runtime'],
}),
],
external: [
/@babel\/runtime/,
'react',
'prop-types',
'redux-devtools-themes',
'@redux-devtools/core',
'lodash.debounce',
'react-json-tree',
],
},
];
export default config;

View File

@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.react.base.json",
"compilerOptions": {
"outDir": "lib"
"outDir": "lib/types"
},
"include": ["src"]
}

View File

@ -1,2 +1,2 @@
dist
examples
lib

View File

@ -0,0 +1,7 @@
{
"presets": [
["@babel/preset-env", { "targets": "defaults", "modules": false }],
"@babel/preset-typescript"
],
"plugins": ["@babel/plugin-transform-runtime"]
}

View File

@ -21,16 +21,20 @@
"dist",
"src"
],
"main": "dist/redux-devtools-remote.cjs.js",
"module": "dist/redux-devtools-remote.esm.js",
"types": "dist/index.d.ts",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"types": "lib/types/index.d.ts",
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/reduxjs/redux-devtools.git"
},
"scripts": {
"build": "rollup -c",
"clean": "rimraf dist",
"build": "yarn build:cjs && yarn build:esm && yarn build:types",
"build:cjs": "babel src --extensions \".ts\" --out-dir lib/cjs",
"build:esm": "babel src --config-file ./babel.config.esm.json --extensions \".ts\" --out-dir lib/esm",
"build:types": "tsc --emitDeclarationOnly",
"clean": "rimraf lib",
"lint": "eslint . --ext .ts",
"type-check": "tsc --noEmit",
"prepack": "yarn run clean && yarn run build",
@ -46,13 +50,12 @@
"socketcluster-client": "^14.3.2"
},
"devDependencies": {
"@babel/cli": "^7.16.8",
"@babel/core": "^7.16.12",
"@babel/eslint-parser": "^7.16.5",
"@babel/plugin-transform-runtime": "^7.16.10",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^21.0.1",
"@types/jsan": "^3.1.2",
"@types/socketcluster-client": "^13.0.5",
"@typescript-eslint/eslint-plugin": "^5.10.0",
@ -61,9 +64,6 @@
"eslint-config-prettier": "^8.3.0",
"redux": "^4.1.2",
"rimraf": "^3.0.2",
"rollup": "^2.66.0",
"rollup-plugin-typescript2": "^0.31.1",
"tslib": "^2.3.1",
"typescript": "~4.5.5"
},
"peerDependencies": {

View File

@ -1,36 +0,0 @@
import typescript from 'rollup-plugin-typescript2';
import babel from '@rollup/plugin-babel';
const config = [
{
input: 'src/index.ts',
output: [
{
file: 'dist/redux-devtools-remote.cjs.js',
format: 'cjs',
},
{
file: 'dist/redux-devtools-remote.esm.js',
format: 'esm',
},
],
plugins: [
typescript(),
babel({
babelHelpers: 'runtime',
extensions: ['.ts'],
plugins: ['@babel/plugin-transform-runtime'],
}),
],
external: [
/@babel\/runtime/,
'jsan',
'socketcluster-client',
'@redux-devtools/utils',
'@redux-devtools/instrument',
'rn-host-detect',
],
},
];
export default config;

View File

@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "lib"
"outDir": "lib/types"
},
"include": ["src"]
}

View File

@ -5005,6 +5005,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@redux-devtools/log-monitor@workspace:packages/redux-devtools-log-monitor"
dependencies:
"@babel/cli": ^7.16.8
"@babel/core": ^7.16.12
"@babel/eslint-parser": ^7.16.5
"@babel/plugin-transform-runtime": ^7.16.10
@ -5013,7 +5014,6 @@ __metadata:
"@babel/preset-typescript": ^7.16.7
"@babel/runtime": ^7.16.7
"@redux-devtools/core": ^3.10.1
"@rollup/plugin-babel": ^5.3.0
"@types/lodash.debounce": ^4.0.6
"@types/prop-types": ^15.7.4
"@types/react": ^17.0.38
@ -5031,9 +5031,6 @@ __metadata:
redux: ^4.1.2
redux-devtools-themes: ^1.0.0
rimraf: ^3.0.2
rollup: ^2.66.0
rollup-plugin-typescript2: ^0.31.1
tslib: ^2.3.1
typescript: ~4.5.5
peerDependencies:
"@redux-devtools/core": ^3.7.0
@ -5047,6 +5044,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@redux-devtools/remote@workspace:packages/redux-devtools-remote"
dependencies:
"@babel/cli": ^7.16.8
"@babel/core": ^7.16.12
"@babel/eslint-parser": ^7.16.5
"@babel/plugin-transform-runtime": ^7.16.10
@ -5055,8 +5053,6 @@ __metadata:
"@babel/runtime": ^7.16.7
"@redux-devtools/instrument": ^2.0.1
"@redux-devtools/utils": ^1.1.1
"@rollup/plugin-babel": ^5.3.0
"@rollup/plugin-commonjs": ^21.0.1
"@types/jsan": ^3.1.2
"@types/socketcluster-client": ^13.0.5
"@typescript-eslint/eslint-plugin": ^5.10.0
@ -5068,10 +5064,7 @@ __metadata:
redux: ^4.1.2
rimraf: ^3.0.2
rn-host-detect: ^1.2.0
rollup: ^2.66.0
rollup-plugin-typescript2: ^0.31.1
socketcluster-client: ^14.3.2
tslib: ^2.3.1
typescript: ~4.5.5
peerDependencies:
redux: ^3.5.2 || ^4.0.0