redux-devtools-utils

This commit is contained in:
Nathan Bierema 2022-01-23 16:47:02 -05:00
parent ffde7a4a66
commit 10ff1d5e72
7 changed files with 21 additions and 52 deletions

View File

@ -1 +1 @@
dist
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

@ -9,19 +9,23 @@
"license": "MIT",
"author": "Mihail Diordiev <zalmoxisus@gmail.com> (https://github.com/zalmoxisus)",
"files": [
"dist",
"lib",
"src"
],
"main": "dist/redux-devtools-utils.cjs.js",
"module": "dist/redux-devtools-utils.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",
@ -40,12 +44,12 @@
"redux": "^4.1.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",
"@types/jsan": "^3.1.2",
"@types/lodash": "^4.14.178",
"@types/node": "^16.11.21",
@ -54,9 +58,6 @@
"eslint": "^8.7.0",
"eslint-config-prettier": "^8.3.0",
"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-utils.cjs.js',
format: 'cjs',
},
{
file: 'dist/redux-devtools-utils.esm.js',
format: 'esm',
},
],
plugins: [
typescript(),
babel({
babelHelpers: 'runtime',
extensions: ['.ts'],
plugins: ['@babel/plugin-transform-runtime'],
}),
],
external: [
/@babel\/runtime/,
'get-params',
'jsan',
/nanoid/,
'@redux-devtools/serialize',
/lodash/,
],
},
];
export default config;

View File

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

View File

@ -5264,6 +5264,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@redux-devtools/utils@workspace:packages/redux-devtools-utils"
dependencies:
"@babel/cli": ^7.16.8
"@babel/core": ^7.16.12
"@babel/eslint-parser": ^7.16.5
"@babel/plugin-transform-runtime": ^7.16.10
@ -5272,7 +5273,6 @@ __metadata:
"@babel/runtime": ^7.16.7
"@redux-devtools/core": ^3.10.1
"@redux-devtools/serialize": ^0.4.0
"@rollup/plugin-babel": ^5.3.0
"@types/get-params": ^0.1.0
"@types/jsan": ^3.1.2
"@types/lodash": ^4.14.178
@ -5288,9 +5288,6 @@ __metadata:
nanoid: ^3.2.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:
"@redux-devtools/core": ^3.7.0