mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 08:30:02 +03:00
d3-state-visualizer
This commit is contained in:
parent
f8fb3b3b40
commit
89a7cd69ea
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"presets": [
|
"presets": [
|
||||||
"@babel/preset-env",
|
["@babel/preset-env", { "targets": "defaults" }],
|
||||||
"@babel/preset-react",
|
"@babel/preset-react",
|
||||||
"@babel/preset-typescript"
|
"@babel/preset-typescript"
|
||||||
]
|
]
|
|
@ -1,2 +1,2 @@
|
||||||
examples
|
examples
|
||||||
dist
|
lib
|
||||||
|
|
7
packages/d3-state-visualizer/babel.config.esm.json
Normal file
7
packages/d3-state-visualizer/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"]
|
||||||
|
}
|
|
@ -17,19 +17,25 @@
|
||||||
"author": "romseguy",
|
"author": "romseguy",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
"lib",
|
||||||
"src"
|
"src"
|
||||||
],
|
],
|
||||||
"main": "dist/d3-state-visualizer.cjs.js",
|
"main": "lib/cjs/index.js",
|
||||||
"module": "dist/d3-state-visualizer.esm.js",
|
"module": "lib/esm/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "lib/types/index.d.ts",
|
||||||
"unpkg": "dist/d3-state-visualizer.umd.js",
|
"unpkg": "dist/d3-state-visualizer.umd.js",
|
||||||
|
"sideEffects": false,
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/reduxjs/redux-devtools.git"
|
"url": "https://github.com/reduxjs/redux-devtools.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rollup -c",
|
"build": "yarn build:cjs && yarn build:esm && yarn build:types && yarn build:umd",
|
||||||
"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",
|
||||||
|
"build:umd": "rollup -c",
|
||||||
|
"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",
|
||||||
|
@ -45,6 +51,7 @@
|
||||||
"ramda": "^0.28.0"
|
"ramda": "^0.28.0"
|
||||||
},
|
},
|
||||||
"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",
|
||||||
|
|
|
@ -9,11 +9,13 @@ const config = [
|
||||||
input: 'src/index.ts',
|
input: 'src/index.ts',
|
||||||
output: {
|
output: {
|
||||||
name: 'd3-state-visualizer',
|
name: 'd3-state-visualizer',
|
||||||
file: 'dist/d3-state-visualizer.umd.js',
|
file: 'lib/umd/d3-state-visualizer.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
typescript(),
|
typescript({
|
||||||
|
tsconfigOverride: { compilerOptions: { declaration: false } },
|
||||||
|
}),
|
||||||
resolve(),
|
resolve(),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
babel({
|
babel({
|
||||||
|
@ -27,11 +29,13 @@ const config = [
|
||||||
input: 'src/index.ts',
|
input: 'src/index.ts',
|
||||||
output: {
|
output: {
|
||||||
name: 'd3-state-visualizer',
|
name: 'd3-state-visualizer',
|
||||||
file: 'dist/d3-state-visualizer.umd.min.js',
|
file: 'lib/umd/d3-state-visualizer.min.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
typescript(),
|
typescript({
|
||||||
|
tsconfigOverride: { compilerOptions: { declaration: false } },
|
||||||
|
}),
|
||||||
resolve(),
|
resolve(),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
babel({
|
babel({
|
||||||
|
@ -42,29 +46,6 @@ const config = [
|
||||||
terser(),
|
terser(),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
input: 'src/index.ts',
|
|
||||||
output: [
|
|
||||||
{ file: 'dist/d3-state-visualizer.cjs.js', format: 'cjs' },
|
|
||||||
{ file: 'dist/d3-state-visualizer.esm.js', format: 'esm' },
|
|
||||||
],
|
|
||||||
plugins: [
|
|
||||||
typescript(),
|
|
||||||
babel({
|
|
||||||
babelHelpers: 'runtime',
|
|
||||||
extensions: ['.ts'],
|
|
||||||
plugins: ['@babel/plugin-transform-runtime'],
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
external: [
|
|
||||||
/@babel\/runtime/,
|
|
||||||
'd3',
|
|
||||||
'ramda',
|
|
||||||
'map2tree',
|
|
||||||
'deepmerge',
|
|
||||||
'd3tooltip',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export default config;
|
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"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -12548,6 +12548,7 @@ __metadata:
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "d3-state-visualizer@workspace:packages/d3-state-visualizer"
|
resolution: "d3-state-visualizer@workspace:packages/d3-state-visualizer"
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user