Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
71 lines (71 loc) · 2.37 KB
/
Copy pathpackage.json
File metadata and controls
71 lines (71 loc) · 2.37 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
{
"name": "scrollmirror",
"amdName": "ScrollMirror",
"version": "1.2.4",
"description": "Sync the scroll position of multiple elements on your page",
"packageManager": "pnpm@9.11.0",
"author": {
"name": "Rasso Hilber",
"email": "mail@rassohilber.com",
"url": "https://rassohilber.com"
},
"repository": {
"type": "git",
"url": "https://github.com/hirasso/scrollmirror.git"
},
"license": "MIT",
"type": "module",
"source": "./src/index.ts",
"main": "./dist/ScrollMirror.cjs",
"module": "./dist/ScrollMirror.module.js",
"unpkg": "./dist/ScrollMirror.umd.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/ScrollMirror.modern.js",
"require": "./dist/ScrollMirror.cjs"
}
},
"files": [
"src",
"dist"
],
"scripts": {
"clean": "rm -rf ./dist",
"format": "pnpm exec prettier 'src/**/*.{js,ts,mjs}' --write",
"prepublishOnly": "pnpm run build",
"build": "pnpm run clean && pnpm run build:module && pnpm run build:bundle",
"build:module": "BROWSERSLIST_ENV=modern microbundle src/index.ts --format modern,esm,cjs",
"build:bundle": "BROWSERSLIST_ENV=production microbundle src/ScrollMirror.ts --format umd --external none",
"watch": "BROWSERSLIST_ENV=development microbundle src/index.ts --watch --format modern",
"docs:dev": "astro dev --root docs",
"docs:build": "astro build --root docs",
"docs:serve": "astro build --root docs && astro preview --root docs",
"test": "pnpm run test:unit && pnpm run test:e2e",
"test:unit": "vitest run --config ./tests/unit/vitest.config.ts",
"test:unit:watch": "vitest --config ./tests/unit/vitest.config.ts",
"test:e2e": "pnpm exec playwright test --config ./tests/e2e/config.playwright.ts",
"test:e2e:dev": "PLAYWRIGHT_ENV=dev pnpm run test:e2e --ui",
"test:e2e:install": "pnpm exec playwright install --with-deps"
},
"devDependencies": {
"@astrojs/mdx": "^3.1.7",
"@changesets/cli": "^2.28.1",
"@playwright/test": "^1.47.2",
"astro": "^4.15.9",
"astro-expressive-code": "^0.37.0",
"astro-feather": "^1.0.0",
"jsdom": "^25.0.1",
"microbundle": "^0.15.1",
"prettier": "^3.3.3",
"typescript": "^5.6.2",
"vitest": "^2.1.1"
},
"devEngines": {
"packageManager": {
"name": "pnpm",
"onFail": "error"
}
}
}