|
3 | 3 | "description": "Ponyfill for smooth scrolling elements into view (if needed!)",
|
4 | 4 | "license": "MIT",
|
5 | 5 | "author": "Cody Olsen",
|
6 |
| - "homepage": "https://scroll-into-view-if-needed.netlify.com/", |
| 6 | + "homepage": "https://scroll-into-view.dev", |
7 | 7 | "repository": {
|
8 | 8 | "type": "git",
|
9 |
| - "url": "git+https://github.com/stipsan/smooth-scroll-into-view-if-needed.git" |
| 9 | + "url": "git+https://github.com/scroll-into-view/smooth-scroll-into-view-if-needed.git" |
10 | 10 | },
|
11 | 11 | "version": "1.0.1-alpha.3",
|
12 |
| - "main": "index.js", |
13 |
| - "module": "es/index.js", |
| 12 | + "type": "module", |
| 13 | + "exports": { |
| 14 | + ".": { |
| 15 | + "types": "./dist/index.d.ts", |
| 16 | + "source": "./src/index.ts", |
| 17 | + "import": "./dist/index.js", |
| 18 | + "require": "./dist/index.cjs", |
| 19 | + "default": "./dist/index.js" |
| 20 | + }, |
| 21 | + "./package.json": "./package.json" |
| 22 | + }, |
| 23 | + "main": "./dist/index.cjs", |
| 24 | + "module": "./dist/index.js", |
| 25 | + "typings": "./dist/index.d.ts", |
14 | 26 | "files": [
|
15 |
| - "es", |
16 |
| - "typings", |
17 |
| - "umd" |
| 27 | + "dist", |
| 28 | + "src" |
18 | 29 | ],
|
19 | 30 | "scripts": {
|
20 |
| - "prebuild": "yarn clean", |
21 |
| - "build": "yarn build:d.ts && yarn build:cjs && yarn build:es && yarn build:umd && yarn build:umd.min", |
22 |
| - "build:cjs": "BABEL_ENV=cjs babel src -d . --extensions '.ts'", |
23 |
| - "build:d.ts": "tsc --emitDeclarationOnly", |
24 |
| - "build:es": "BABEL_ENV=es babel src -d es --extensions '.ts'", |
25 |
| - "build:umd": "BABEL_ENV=umd NODE_ENV=development rollup -c -f umd -o umd/smooth-scroll-into-view-if-needed.js", |
26 |
| - "build:umd.min": "BABEL_ENV=umd NODE_ENV=production rollup -c -f umd -o umd/smooth-scroll-into-view-if-needed.min.js", |
27 |
| - "clean": "rimraf 'umd' 'es' 'typings'", |
28 |
| - "precommit": "lint-staged", |
29 |
| - "dev": "concurrently 'tsc --noEmit --watch' 'yarn build:cjs --watch' 'yarn build:es --watch' 'yarn build:umd --watch' 'yarn build:umd.min --watch'", |
30 |
| - "prepublishOnly": "unset npm_config_cafile && yarn build", |
31 | 31 | "test": "jest",
|
32 |
| - "typecheck": "tsc --noEmit" |
| 32 | + "typecheck": "tsc --noEmit", |
| 33 | + "prebuild": "npm run clean", |
| 34 | + "build": "pkg build --strict", |
| 35 | + "clean": "npx rimraf 'dist'", |
| 36 | + "prepublishOnly": "npm run build" |
33 | 37 | },
|
34 | 38 | "dependencies": {
|
35 |
| - "scroll-into-view-if-needed": "^2.2.28" |
| 39 | + "scroll-into-view-if-needed": "^3.0.6" |
36 | 40 | },
|
37 | 41 | "devDependencies": {
|
38 |
| - "@babel/cli": "7.16.0", |
39 |
| - "@babel/core": "7.16.0", |
40 |
| - "@babel/plugin-external-helpers": "7.16.0", |
41 |
| - "@babel/preset-env": "7.16.0", |
42 |
| - "@babel/preset-typescript": "7.16.0", |
| 42 | + "@sanity/pkg-utils": "^2.2.8", |
43 | 43 | "@sanity/semantic-release-preset": "^4.0.0",
|
44 |
| - "@types/jest": "26.0.24", |
45 |
| - "babel-eslint": "10.1.0", |
46 |
| - "babel-plugin-add-module-exports": "1.0.4", |
47 |
| - "babel-plugin-dev-expression": "0.2.3", |
48 |
| - "concurrently": "6.4.0", |
49 |
| - "eslint": "7.32.0", |
50 |
| - "eslint-config-prettier": "8.3.0", |
51 |
| - "eslint-plugin-import": "2.25.3", |
52 |
| - "eslint-plugin-react": "7.27.0", |
53 |
| - "husky": "5.2.0", |
54 |
| - "jest": "26.6.3", |
55 |
| - "jest-junit": "12.3.0", |
56 |
| - "lint-staged": "10.5.4", |
57 |
| - "prettier": "2.4.1", |
58 |
| - "prettier-package-json": "2.6.0", |
| 44 | + "@types/jest": "^26.0.24", |
| 45 | + "babel-eslint": "^10.1.0", |
| 46 | + "eslint": "^7.32.0", |
| 47 | + "eslint-config-prettier": "^8.3.0", |
| 48 | + "eslint-plugin-import": "^2.25.3", |
| 49 | + "eslint-plugin-react": "^7.27.0", |
| 50 | + "jest": "^26.6.3", |
| 51 | + "jest-junit": "^12.3.0", |
| 52 | + "prettier": "^2.8.4", |
| 53 | + "prettier-package-json": "^2.8.0", |
59 | 54 | "rimraf": "^3.0.2",
|
60 |
| - "rollup": "2.60.0", |
61 |
| - "rollup-plugin-babel": "4.4.0", |
62 |
| - "rollup-plugin-commonjs": "10.1.0", |
63 |
| - "rollup-plugin-node-resolve": "5.2.0", |
64 |
| - "rollup-plugin-replace": "2.2.0", |
65 |
| - "rollup-plugin-terser": "7.0.2", |
66 | 55 | "semantic-release": "^20.1.1",
|
67 |
| - "ts-jest": "26.5.6", |
68 |
| - "typescript": "4.4.4" |
| 56 | + "ts-jest": "^26.5.6", |
| 57 | + "typescript": "^4.4.4" |
69 | 58 | },
|
70 | 59 | "keywords": [
|
71 | 60 | "behavior-smooth",
|
|
116 | 105 | ]
|
117 | 106 | ]
|
118 | 107 | },
|
119 |
| - "lint-staged": { |
120 |
| - "*.js": [ |
121 |
| - "prettier --write", |
122 |
| - "git add" |
123 |
| - ], |
124 |
| - "*.{ts,tsx}": [ |
125 |
| - "prettier --write", |
126 |
| - "git add" |
127 |
| - ], |
128 |
| - "*.json": [ |
129 |
| - "prettier --write", |
130 |
| - "git add" |
131 |
| - ], |
132 |
| - "*.css": [ |
133 |
| - "prettier --write", |
134 |
| - "git add" |
135 |
| - ], |
136 |
| - "*.md": [ |
137 |
| - "prettier --write", |
138 |
| - "git add" |
139 |
| - ], |
140 |
| - "**/package.json": [ |
141 |
| - "prettier-package-json --write", |
142 |
| - "git add" |
143 |
| - ], |
144 |
| - "**/.babelrc": [ |
145 |
| - "prettier --write", |
146 |
| - "git add" |
147 |
| - ] |
148 |
| - }, |
149 | 108 | "prettier": {
|
150 | 109 | "semi": false,
|
151 | 110 | "singleQuote": true,
|
|
159 | 118 | }
|
160 | 119 | ]
|
161 | 120 | },
|
162 |
| - "release": { |
163 |
| - "prepare": [ |
164 |
| - "@semantic-release/npm" |
165 |
| - ] |
166 |
| - }, |
167 |
| - "typings": "typings/index.d.ts", |
168 | 121 | "sideEffects": false
|
169 | 122 | }
|
0 commit comments