Skip to content

Commit

Permalink
chore : Separate package.json and release 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
je0ngyun committed Nov 27, 2023
1 parent b93a631 commit bbb4f62
Show file tree
Hide file tree
Showing 7 changed files with 1,652 additions and 299 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ yarn-error.log*
src/hooks/usePagination/node_modules
src/hooks/usePagination/README.md
src/hooks/usePagination/LICENSE
src/hooks/usePagination/dist


88 changes: 0 additions & 88 deletions dist/index.d.ts

This file was deleted.

186 changes: 0 additions & 186 deletions dist/index.js

This file was deleted.

26 changes: 1 addition & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,15 @@
{
"name": "react-use-pagination-hook",
"version": "2.1.0",
"module": "dist",
"main": "dist",
"types": "dist/index.d.ts",
"version": "0.0.0",
"description": "Lightweight headless UI pagination hook",
"author": "jeongyun",
"license": "MIT",
"keywords": [
"pagination",
"use-pagination",
"paging",
"pagination-hook",
"table"
],
"homepage": "https://je0ngyun.github.io/react-use-pagination-hook",
"repository": {
"type": "git",
"url": "https://github.com/je0ngyun/react-use-pagination-hook.git"
},
"bugs": {
"url": "https://github.com/je0ngyun/react-use-pagination-hook/issues"
},
"sideEffects": false,
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"test:coverage": "CI=true npm test -- --env=jsdom --coverage",
"transfile": "rm -rf dist && mkdir dist && babel src/hooks/usePagination -d dist --copy-files",
"deploy": "gh-pages -d build"
},
"peerDependencies": {
"react": "^16.8.0 || ^17 || ^18"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
3 changes: 3 additions & 0 deletions src/hooks/usePagination/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-react", "@babel/preset-env"]
}
61 changes: 61 additions & 0 deletions src/hooks/usePagination/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"name": "react-use-pagination-hook",
"version": "2.1.1",
"module": "dist",
"main": "dist",
"types": "dist/index.d.ts",
"description": "Lightweight headless UI pagination hook",
"author": "jeongyun",
"license": "MIT",
"keywords": [
"pagination",
"use-pagination",
"paging",
"pagination-hook",
"table"
],
"homepage": "https://je0ngyun.github.io/react-use-pagination-hook",
"repository": {
"type": "git",
"url": "https://github.com/je0ngyun/react-use-pagination-hook.git"
},
"bugs": {
"url": "https://github.com/je0ngyun/react-use-pagination-hook/issues"
},
"sideEffects": false,
"scripts": {
"copy-docs": "cp ../../../README.md ../../../LICENSE ./",
"transfile": "yarn copy-docs && rm -rf dist && mkdir dist && babel index.js index.d.ts -d dist --copy-files"
},
"peerDependencies": {
"react": "^16.8.0 || ^17 || ^18"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/preset-env": "^7.19.3",
"@babel/preset-react": "^7.18.6"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Loading

0 comments on commit bbb4f62

Please sign in to comment.