-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
80 lines (80 loc) 路 2.71 KB
/
Copy pathpackage.json
File metadata and controls
80 lines (80 loc) 路 2.71 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
{
"name": "@hirasso/thumbhash-custom-element",
"amdName": "ThumbhashElement",
"version": "0.5.8",
"description": "A custom element that renders a thumbhash placeholder for your lazy-loaded images 馃帹",
"license": "MIT",
"author": {
"name": "Rasso Hilber",
"email": "mail@rassohilber.com",
"url": "https://rassohilber.com"
},
"packageManager": "pnpm@9.11.0",
"repository": {
"type": "git",
"url": "https://github.com/hirasso/thumbhash-custom-element.git"
},
"type": "module",
"source": "./src/index.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.module.js",
"unpkg": "./dist/index.umd.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/index.modern.js",
"require": "./dist/index.cjs"
}
},
"files": [
"src",
"dist"
],
"scripts": {
"clean": "rm -rf ./dist",
"format": "pnpm exec prettier 'src/**/*.{js,ts,mjs}' --write",
"prepublishOnly": "pnpm build",
"build": "pnpm clean && pnpm build:module && pnpm build:bundle",
"build:module": "BROWSERSLIST_ENV=modern microbundle src/index.ts --format modern,esm,cjs",
"build:bundle": "BROWSERSLIST_ENV=production microbundle src/umd.ts --format umd --external none",
"watch": "BROWSERSLIST_ENV=development microbundle src/index.ts --watch --format modern",
"website:dev": "astro dev --root website",
"website:build": "astro build --root website",
"website:serve": "astro build --root website && astro preview --root website",
"test": "pnpm test:unit && pnpm 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/playwright.config.ts",
"test:e2e:dev": "PLAYWRIGHT_ENV=dev pnpm test:e2e --ui",
"test:e2e:install": "pnpm exec playwright install --with-deps",
"release": "pnpm validate && pnpm bump && changeset publish",
"ci-version": "changeset version && pnpm install --no-frozen-lockfile",
"ci-publish": "pnpm build && pnpm test && changeset publish"
},
"dependencies": {
"thumbhash": "^0.1.1"
},
"devDependencies": {
"@astrojs/mdx": "^4.0.3",
"@changesets/cli": "^2.27.11",
"@playwright/test": "^1.49.1",
"@types/node": "^22.10.2",
"astro": "^5.1.1",
"astro-expressive-code": "^0.38.3",
"astro-feather": "^1.0.0",
"canvas": "^2.11.2",
"jsdom": "^25.0.1",
"microbundle": "^0.15.1",
"prettier": "^3.4.2",
"sharp": "^0.33.5",
"typescript": "^5.7.2",
"vitest": "^2.1.8"
},
"devEngines": {
"packageManager": {
"name": "pnpm",
"onFail": "error"
}
}
}