Skip to content

Commit

Permalink
chore: dts
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Feb 17, 2023
1 parent f315690 commit 0d5d03a
Show file tree
Hide file tree
Showing 17 changed files with 1,734 additions and 2,883 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

9 changes: 0 additions & 9 deletions .husky/common.sh

This file was deleted.

6 changes: 0 additions & 6 deletions .husky/pre-commit

This file was deleted.

14 changes: 0 additions & 14 deletions .prettierignore

This file was deleted.

1 change: 0 additions & 1 deletion .prettierrc.json

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions tests/core.test.tsx → __tests__/core.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Basic Render', () => {
value: 'John',
},
],
onFilter: (value, record) => record.name.indexOf(value) === 0,
onFilter: (value: any, record: { name: string | any[] }) => record.name.indexOf(value) === 0,
},
{
title: 'Other',
Expand All @@ -47,7 +47,7 @@ describe('Basic Render', () => {
dataIndex: 'age',
key: 'age',
width: 150,
sorter: (a, b) => a.age - b.age,
sorter: (a: { age: number }, b: { age: number }) => a.age - b.age,
},
{
title: 'Address',
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test-utils.ts → __tests__/test-utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable import/export */
import { cleanup, render } from '@testing-library/react'
import { afterEach, beforeAll } from 'vitest'
import { afterEach, beforeAll, vi } from 'vitest'

afterEach(() => {
cleanup()
Expand Down
3 changes: 0 additions & 3 deletions commitlint.config.js

This file was deleted.

49 changes: 19 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,57 +3,48 @@
"version": "2.8.7",
"description": "antd resizable header column hook",
"author": "hemengke1997",
"types": "dist/index.d.ts",
"main": "dist/index.umd.js",
"module": "dist/index.es.js",
"files": [
"dist",
"CHANGELOG.md"
],
"license": "MIT",
"homepage": "https://github.com/hemengke1997/use-antd-resizable-header",
"repository": {
"type": "git",
"url": "git+https://github.com/hemengke1997/use-antd-resizable-header.git"
},
"bugs": {
"url": "https://github.com/hemengke1997/use-antd-resizable-header/issues"
},
"homepage": "https://github.com/hemengke1997/use-antd-resizable-header",
"keywords": [
"react",
"antd",
"resiable header"
],
"license": "MIT",
"exports": {
"./style.css": {}
},
"main": "dist/index.umd.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"CHANGELOG.md"
],
"scripts": {
"dev": "vite build --watch --mode development",
"build": "vite build --mode production",
"build": "rimraf dist && vite build --mode production",
"test": "vitest",
"test:ui": "vitest --ui",
"lint": "eslint . --fix",
"lint-staged": "lint-staged",
"prettier": "prettier -c --write \"src/**/*\"",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add .",
"bump": "npm run changelog && bumpp package.json CHANGELOG.md -all --commit --no-verify --push --tag",
"upgrade:deps": "pnpm up -i --latest"
},
"lint-staged": {
"src/**/*.{ts,tsx}": [
"prettier --write"
],
"!(dist/**)/*.{ts,tsx}": "npm run lint"
},
"dependencies": {
"lodash-es": "^4.17.21",
"react-resizable": "^3.0.4"
},
"devDependencies": {
"@commitlint/cli": "^17.4.0",
"@commitlint/config-conventional": "^17.4.0",
"@minko-fe/commitlint-config": "^1.2.4",
"@minko-fe/eslint-config": "^1.2.4",
"@minko-fe/prettier-config": "^1.2.4",
"@minko-fe/tsconfig": "^1.2.4",
"@rollup/plugin-typescript": "^10.0.1",
"@minko-fe/commitlint-config": "^1.2.17",
"@minko-fe/eslint-config": "^1.2.17",
"@minko-fe/tsconfig": "^1.2.17",
"@testing-library/dom": "^8.19.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
Expand All @@ -71,18 +62,16 @@
"conventional-changelog-cli": "^2.2.2",
"eslint": "^8.31.0",
"eslint-define-config": "^1.13.0",
"husky": "^8.0.3",
"jsdom": "^21.0.0",
"lint-staged": "^13.1.0",
"postcss": "^8.4.20",
"postcss-nested": "^6.0.0",
"prettier": "^2.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^3.9.1",
"rimraf": "^4.1.2",
"tsup": "^6.6.0",
"typescript": "^4.9.4",
"vite": "^4.0.4",
"vite": "^4.1.1",
"vite-plugin-dts": "2.0.0-beta.0",
"vitest": "^0.27.0"
}
}
Loading

0 comments on commit 0d5d03a

Please sign in to comment.