mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
redux-devtools-extension
This commit is contained in:
parent
3aedc09a0c
commit
0bcff79b29
|
@ -1 +1 @@
|
||||||
dist
|
lib
|
||||||
|
|
7
packages/redux-devtools-extension/babel.config.esm.json
Normal file
7
packages/redux-devtools-extension/babel.config.esm.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"presets": [
|
||||||
|
["@babel/preset-env", { "targets": "defaults", "modules": false }],
|
||||||
|
"@babel/preset-typescript"
|
||||||
|
],
|
||||||
|
"plugins": ["@babel/plugin-transform-runtime"]
|
||||||
|
}
|
|
@ -9,16 +9,20 @@
|
||||||
"dist",
|
"dist",
|
||||||
"src"
|
"src"
|
||||||
],
|
],
|
||||||
"main": "dist/redux-devtools-extension.cjs.js",
|
"main": "lib/cjs/index.js",
|
||||||
"module": "dist/redux-devtools-extension.esm.js",
|
"module": "lib/esm/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "lib/types/index.d.ts",
|
||||||
|
"sideEffects": false,
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/reduxjs/redux-devtools"
|
"url": "https://github.com/reduxjs/redux-devtools"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rollup -c",
|
"build": "yarn build:cjs && yarn build:esm && yarn build:types",
|
||||||
"clean": "rimraf dist",
|
"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",
|
"lint": "eslint . --ext .ts",
|
||||||
"type-check": "tsc --noEmit",
|
"type-check": "tsc --noEmit",
|
||||||
"prepack": "yarn run clean && yarn run build",
|
"prepack": "yarn run clean && yarn run build",
|
||||||
|
@ -28,21 +32,18 @@
|
||||||
"@babel/runtime": "^7.16.7"
|
"@babel/runtime": "^7.16.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@babel/cli": "^7.16.8",
|
||||||
"@babel/core": "^7.16.12",
|
"@babel/core": "^7.16.12",
|
||||||
"@babel/eslint-parser": "^7.16.5",
|
"@babel/eslint-parser": "^7.16.5",
|
||||||
"@babel/plugin-transform-runtime": "^7.16.10",
|
"@babel/plugin-transform-runtime": "^7.16.10",
|
||||||
"@babel/preset-env": "^7.16.11",
|
"@babel/preset-env": "^7.16.11",
|
||||||
"@babel/preset-typescript": "^7.16.7",
|
"@babel/preset-typescript": "^7.16.7",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
|
||||||
"@typescript-eslint/eslint-plugin": "^5.10.0",
|
"@typescript-eslint/eslint-plugin": "^5.10.0",
|
||||||
"@typescript-eslint/parser": "^5.10.0",
|
"@typescript-eslint/parser": "^5.10.0",
|
||||||
"eslint": "^8.7.0",
|
"eslint": "^8.7.0",
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"redux": "^4.1.2",
|
"redux": "^4.1.2",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"rollup": "^2.66.0",
|
|
||||||
"rollup-plugin-typescript2": "^0.31.1",
|
|
||||||
"tslib": "^2.3.1",
|
|
||||||
"typescript": "~4.5.5"
|
"typescript": "~4.5.5"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|
|
@ -1,29 +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-extension.cjs.js',
|
|
||||||
format: 'cjs',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
file: 'dist/redux-devtools-extension.esm.js',
|
|
||||||
format: 'esm',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
plugins: [
|
|
||||||
typescript(),
|
|
||||||
babel({
|
|
||||||
babelHelpers: 'runtime',
|
|
||||||
extensions: ['.ts'],
|
|
||||||
plugins: ['@babel/plugin-transform-runtime'],
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
external: [/@babel\/runtime/, 'redux'],
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
export default config;
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"extends": "../../tsconfig.base.json",
|
"extends": "../../tsconfig.base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "lib"
|
"outDir": "lib/types"
|
||||||
},
|
},
|
||||||
"include": ["src"]
|
"include": ["src"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -4790,22 +4790,19 @@ __metadata:
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@redux-devtools/extension@workspace:packages/redux-devtools-extension"
|
resolution: "@redux-devtools/extension@workspace:packages/redux-devtools-extension"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
"@babel/cli": ^7.16.8
|
||||||
"@babel/core": ^7.16.12
|
"@babel/core": ^7.16.12
|
||||||
"@babel/eslint-parser": ^7.16.5
|
"@babel/eslint-parser": ^7.16.5
|
||||||
"@babel/plugin-transform-runtime": ^7.16.10
|
"@babel/plugin-transform-runtime": ^7.16.10
|
||||||
"@babel/preset-env": ^7.16.11
|
"@babel/preset-env": ^7.16.11
|
||||||
"@babel/preset-typescript": ^7.16.7
|
"@babel/preset-typescript": ^7.16.7
|
||||||
"@babel/runtime": ^7.16.7
|
"@babel/runtime": ^7.16.7
|
||||||
"@rollup/plugin-babel": ^5.3.0
|
|
||||||
"@typescript-eslint/eslint-plugin": ^5.10.0
|
"@typescript-eslint/eslint-plugin": ^5.10.0
|
||||||
"@typescript-eslint/parser": ^5.10.0
|
"@typescript-eslint/parser": ^5.10.0
|
||||||
eslint: ^8.7.0
|
eslint: ^8.7.0
|
||||||
eslint-config-prettier: ^8.3.0
|
eslint-config-prettier: ^8.3.0
|
||||||
redux: ^4.1.2
|
redux: ^4.1.2
|
||||||
rimraf: ^3.0.2
|
rimraf: ^3.0.2
|
||||||
rollup: ^2.66.0
|
|
||||||
rollup-plugin-typescript2: ^0.31.1
|
|
||||||
tslib: ^2.3.1
|
|
||||||
typescript: ~4.5.5
|
typescript: ~4.5.5
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
redux: ^3.1.0 || ^4.0.0
|
redux: ^3.1.0 || ^4.0.0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user