@altano/use-toc-visible-sections 1.0.7 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1) hide show
  1. package/package.json +20 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altano/use-toc-visible-sections",
3
- "version": "1.0.7",
3
+ "version": "2.0.0",
4
4
  "description": "Intersection-Observer-based Table of Contents Scroll Spy React Hook",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -15,7 +15,7 @@
15
15
  "email": "altano@gmail.com",
16
16
  "url": "https://alan.norbauer.com"
17
17
  },
18
- "license": "UNLICENSED",
18
+ "license": "ISC",
19
19
  "repository": {
20
20
  "type": "git",
21
21
  "url": "https://github.com/altano/npm-packages",
@@ -23,34 +23,42 @@
23
23
  },
24
24
  "homepage": "https://github.com/altano/npm-packages/tree/main/packages/use-toc-visible-sections",
25
25
  "dependencies": {
26
- "@altano/use-visible-elements": "1.0.7"
26
+ "@altano/use-visible-elements": "2.0.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": "^18"
30
30
  },
31
31
  "devDependencies": {
32
+ "@playwright/test": "1.40.0",
33
+ "@types/node": "^20.11.25",
32
34
  "@types/react": "^18.2.64",
33
35
  "@types/react-dom": "^18.2.21",
34
36
  "eslint": "^8.57.0",
35
37
  "prettier": "^3.2.5",
36
38
  "react": "^18.2.0",
37
- "tsup": "^8.0.2",
39
+ "react-dom": "^18.2.0",
38
40
  "typescript": "^5.4.2",
41
+ "vite": "^5.2.4",
39
42
  "@altano/tsconfig": "0.0.0",
40
- "eslint-config-altano": "0.0.1"
43
+ "eslint-config-altano": "0.0.0"
41
44
  },
42
45
  "publishConfig": {
43
46
  "access": "public"
44
47
  },
45
48
  "scripts": {
46
- "build": "tsup src/index.tsx --format esm --onSuccess \"pnpm build:types\"",
47
- "build:types": "tsc --emitDeclarationOnly --declaration",
48
- "dev": "tsup src/index.tsx --watch --format esm",
49
- "lint": "eslint src/**/*.ts*",
50
- "lint:timing": "TIMING=1 eslint src/**/*.ts*",
51
- "lint:fix": "TIMING=1 eslint src/**/*.ts* --fix",
49
+ "build": "tsup --config build-config/tsup.config.browser.ts",
50
+ "build:types": "tsc --project tsconfig.declarations.json",
51
+ "clean": "rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist",
52
+ "dev": "pnpm run build --watch",
52
53
  "format": "prettier --check src",
53
54
  "format:fix": "prettier --write src",
54
- "clean": "rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist"
55
+ "lint": "eslint package.json src/**/*.ts*",
56
+ "lint:fix": "TIMING=1 pnpm lint --fix",
57
+ "lint:timing": "TIMING=1 pnpm lint",
58
+ "test:e2e": "playwright test",
59
+ "test:e2e:server": "vite --strictPort --port 4727 ./tests/e2e",
60
+ "test:e2e:ui": "playwright test --ui",
61
+ "typecheck:src": "tsc --noEmit",
62
+ "typecheck:test": "tsc --noEmit --project ./tests/tsconfig.json"
55
63
  }
56
64
  }