@antv/s2-react
Version:
use S2 with react
113 lines (112 loc) • 3.09 kB
JSON
{
"name": "@antv/s2-react",
"version": "2.2.0",
"private": false,
"description": "use S2 with react",
"keywords": [
"antv",
"s2",
"s2-react",
"spreadsheet",
"pivot table",
"table"
],
"homepage": "https://s2.antv.antgroup.com",
"bugs": {
"url": "https://github.com/antvis/S2/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/antvis/S2.git"
},
"license": "MIT",
"author": "https://github.com/orgs/antvis/people",
"main": "lib/index.js",
"unpkg": "dist/s2-react.min.js",
"module": "esm/index.js",
"types": "esm/index.d.ts",
"directories": {
"lib": "lib",
"test": "tests"
},
"files": [
"esm",
"lib",
"dist",
"README.md"
],
"scripts": {
"build": "npm-run-all clean --parallel build:cjs build:esm build:umd",
"build:analysis": "cross-env FORMAT=es ANALYSIS=true vite build",
"build:cjs": "tsc --module commonjs --outDir lib -p tsconfig.build.json && pnpm build:sync-assets lib/",
"build:esm": "tsc --module ESNext --outDir esm -p tsconfig.build.json && pnpm build:sync-assets esm/",
"build:size-limit": "size-limit",
"build:size-limit-json": "pnpm build:size-limit -- --json",
"build:sync-assets": "copyfiles -u 1 \"src/**/*.{less,svg}\"",
"build:umd": "cross-env FORMAT=umd vite build",
"clean": "rimraf lib esm dist temp",
"start": "cross-env PLAYGROUND=true vite",
"test": "jest --passWithNoTests --detectOpenHandles",
"test:ci": "pnpm test",
"test:ci-coverage": "pnpm test:coverage",
"test:coverage": "pnpm test -- --coverage",
"test:live": "node ./scripts/test-live.mjs",
"test:watch": "pnpm test -- --watch",
"tsc": "tsc --noEmit",
"watch": "rimraf esm && pnpm build:esm -w"
},
"dependencies": {
"ahooks": "^3.8.0",
"classnames": "^2.5.1",
"lodash": "^4.17.21"
},
"devDependencies": {
"@ant-design/icons": "^5.3.7",
"@antv/event-emitter": "^0.1.3",
"@antv/g-plugin-a11y": "^1.1.15",
"@antv/g-plugin-rough-canvas-renderer": "^2.0.33",
"@antv/g2": "^5.1.20",
"@antv/s2": "workspace:*",
"@antv/s2-react-components": "workspace:*",
"@testing-library/react": "^15.0.7",
"@testing-library/react-hooks": "^8.0.1",
"@types/d3-dsv": "^3.0.7",
"@types/react": "18.2.43",
"@types/react-color": "^3.0.12",
"@types/react-dom": "18.3.0",
"antd": "^5.20.4",
"d3-dsv": "^1.1.1",
"react": "^18.3.1",
"react-color": "^2.19.3",
"react-dom": "^18.3.1",
"vite-plugin-svgr": "^2.2.2"
},
"peerDependencies": {
"@antv/s2": "^2.0.0",
"react": ">=16.9.0",
"react-dom": ">=16.9.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"size-limit": [
{
"path": "./dist/s2-react.min.js",
"import": "{ createComponent }",
"limit": "45 kB",
"ignore": [
"S2",
"React",
"ReactDOM"
]
},
{
"path": "./dist/s2-react.min.css",
"limit": "5 kB"
}
],
"tnpm": {
"mode": "pnpm"
}
}