Skip to content

Commit

Permalink
Merge pull request #629 from thebuilder/beta
Browse files Browse the repository at this point in the history
  • Loading branch information
thebuilder authored Jun 17, 2023
2 parents 4b1adce + 1f912ec commit 005a1dd
Show file tree
Hide file tree
Showing 12 changed files with 3,551 additions and 1,988 deletions.
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.idea
node_modules

# production
/build
/dist
/storybook/storybook-static
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install PNPM
uses: pnpm/action-setup@v2
with:
version: 7
version: 8
- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"version": "8.26.1",
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API",
"source": "./src/index.tsx",
"main": "./dist/react-intersection-observer.js",
"module": "./dist/react-intersection-observer.esm.js",
"unpkg": "./dist/react-intersection-observer.umd.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"./test-utils": {
Expand All @@ -14,8 +13,8 @@
},
".": {
"types": "./dist/index.d.ts",
"require": "./dist/react-intersection-observer.js",
"default": "./dist/react-intersection-observer.modern.mjs"
"require": "./dist/index.js",
"default": "./dist/index.mjs"
}
},
"author": "Daniel Schmidt",
Expand All @@ -28,12 +27,12 @@
"scripts": {
"prebuild": "rm -rf dist lib",
"build": "run-s build:*",
"build:bundle": "microbundle --name ReactIntersectionObserver --jsx React.createElement -f cjs,umd,es,modern --no-compress",
"build:bundle": "tsup src/index.tsx",
"build:utils": "tsc -p tsconfig.test.json",
"build:copy": "node scripts/build-copy.js",
"postbuild": "size-limit",
"dev": "run-p dev:*",
"dev:package": "microbundle --jsx React.createElement -f cjs,es,modern --no-compress --watch",
"dev:package": "tsup src/index.tsx --watch",
"dev:storybook": "pnpm --filter storybook dev",
"lint": "eslint . --ext js,ts,tsx",
"release": "np --contents dist",
Expand Down Expand Up @@ -100,19 +99,19 @@
},
"size-limit": [
{
"path": "dist/react-intersection-observer.esm.js",
"path": "dist/index.mjs",
"name": "InView",
"import": "{ InView }",
"limit": "1.8 kB"
},
{
"path": "dist/react-intersection-observer.esm.js",
"path": "dist/index.mjs",
"name": "useInView",
"import": "{ useInView }",
"limit": "1.3 kB"
},
{
"path": "dist/react-intersection-observer.esm.js",
"path": "dist/index.mjs",
"name": "observe",
"import": "{ observe }",
"limit": "1 kB"
Expand All @@ -126,11 +125,11 @@
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.2",
"@types/react": "^18.2.7",
"@types/react-dom": "^18.2.4",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"eslint": "^8.41.0",
"@types/react": "^18.2.12",
"@types/react-dom": "^18.2.5",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"eslint": "^8.43.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
Expand All @@ -144,8 +143,9 @@
"react-dom": "^18.2.0",
"simple-git-hooks": "^2.8.1",
"size-limit": "^8.2.4",
"typescript": "^4.9.5",
"vitest": "^0.31.3"
"tsup": "^7.0.0",
"typescript": "^5.1.3",
"vitest": "^0.32.2"
},
"pnpm": {
"peerDependencyRules": {
Expand Down
Loading

1 comment on commit 005a1dd

@vercel
Copy link

@vercel vercel bot commented on 005a1dd Jun 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.