-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
129 lines (129 loc) · 3.55 KB
/
package.json
File metadata and controls
129 lines (129 loc) · 3.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"name": "react-section-observer",
"version": "0.0.2",
"description": "React implementation of the Section Observer API to tell you when you enter or leave the section",
"source": "./src/index.ts",
"main": "./dist/react-section-observer.js",
"module": "./dist/react-section-observer.esm.js",
"unpkg": "./dist/react-section-observer.umd.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/react-section-observer.js",
"default": "./dist/react-section-observer.modern.mjs"
}
},
"author": "JaeWangL <jnso5072@outlook.kr>",
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/JaeWangL/react-section-observer.git"
},
"license": "MIT",
"keywords": [
"react",
"component",
"hooks",
"section",
"observer",
"lazy load",
"insection",
"inview"
],
"scripts": {
"prebuild": "rm -rf dist lib",
"build": "run-s build:*",
"build:bundle": "microbundle --name ReactSectionObserver --jsx React.createElement -f cjs,umd,es,modern --no-compress",
"build:copy": "node scripts/build_copy.js",
"dev": "yarn run storybook",
"lint": "eslint . --ext js,ts,tsx",
"release": "np --contents dist --no-tests",
"version": "yarn build",
"pretty": "prettier '**/*.{js,ts,tsx,md,json,yml,html}' --write",
"storybook": "start-storybook -p 9000",
"storybook:build": "build-storybook --output-dir example",
"test": "vitest"
},
"release": {
"branches": [
"main",
{
"name": "beta",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"pkgRoot": "dist"
}
],
"@semantic-release/github"
]
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.{js,json,css,md,ts,tsx}": [
"prettier --write"
],
"src/**/*.{ts,tsx}": [
"eslint",
"vitest related --run"
]
},
"size-limit": [
{
"path": "dist/react-section-observer.esm.js",
"name": "useInSection",
"import": "{ useInSection }",
"limit": "1.3 kB"
}
],
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@babel/core": "7.20.5",
"@babel/preset-env": "7.20.2",
"@size-limit/preset-small-lib": "8.1.0",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "13.4.0",
"@types/jest": "29.2.4",
"@types/react": "18.0.26",
"@types/react-dom": "18.0.9",
"@typescript-eslint/eslint-plugin": "5.43.0",
"@typescript-eslint/parser": "5.43.0",
"autoprefixer": "10.4.13",
"eslint": "8.28.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-airbnb-typescript": "17.0.0",
"eslint-config-next": "13.0.4",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jest": "27.1.5",
"eslint-plugin-jsx-a11y": "6.6.1",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.31.11",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-simple-import-sort": "8.0.0",
"eslint-plugin-unused-imports": "2.0.0",
"jsdom": "20.0.3",
"lint-staged": "13.1.0",
"microbundle": "0.15.1",
"npm-run-all": "4.1.5",
"prettier": "2.7.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"simple-git-hooks": "2.8.1",
"size-limit": "8.1.0",
"typescript": "4.9.3",
"vite": "3.2.5",
"vitest": "0.25.5"
}
}