generated from oddbird/polyfill-template
-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpackage.json
115 lines (115 loc) · 3.66 KB
/
package.json
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
{
"name": "@oddbird/popover-polyfill",
"version": "0.5.2",
"description": "Popover Attribute Polyfill",
"license": "BSD-3-Clause",
"publishConfig": {
"access": "public"
},
"author": "OddBird <birds@oddbird.net> (oddbird.net)",
"repository": {
"type": "git",
"url": "https://github.com/oddbird/popover-polyfill.git"
},
"bugs": "https://github.com/oddbird/popover-polyfill/issues",
"homepage": "https://popover.oddbird.net/",
"keywords": [
"css",
"polyfill",
"popover"
],
"type": "module",
"main": "./dist/popover.js",
"module": "./dist/popover.js",
"browser": "./dist/popover.iife.min.js",
"unpkg": "./dist/popover.min.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/popover.js",
"browser": "./dist/popover.iife.min.js",
"require": "./dist/popover.js"
},
"./fn": {
"types": "./dist/index-fn.d.ts",
"import": "./dist/popover-fn.js",
"require": "./dist/popover-fn.cjs.js"
}
},
"typesVersions": {
"*": {
"fn": [
"./dist/index-fn.d.ts"
]
}
},
"files": [
"README.md",
"src/**/*.ts",
"dist/**/*.{ts,js,map}",
"package.json"
],
"sideEffects": [
"./src/index.ts",
"./dist/popover.js",
"./dist/popover.min.js",
"./dist/popover.iife.min.js"
],
"scripts": {
"build:iife": "esbuild --bundle src/index.ts --outfile=dist/popover.iife.min.js --format=iife --minify --sourcemap",
"build:esm": "esbuild --bundle src/index.ts --outfile=dist/popover.js --format=esm --sourcemap",
"build:esm-min": "esbuild --bundle src/index.ts --outfile=dist/popover.min.js --format=esm --minify --sourcemap",
"build:esm-fn": "esbuild --bundle src/index-fn.ts --outfile=dist/popover-fn.js --format=esm --sourcemap",
"build:cjs-fn": "esbuild --bundle src/index-fn.ts --outfile=dist/popover-fn.cjs.js --format=cjs --sourcemap",
"clean": "rm -rf dist",
"build": "run-s clean build:* types",
"server:start": "esbuild --bundle src/index.ts --format=esm --servedir=. --outdir=dist --sourcemap --serve=\"${PORT:-3000}\" --log-level=\"${LEVEL:-info}\"",
"serve": "run-s build server:start",
"tsc": "tsc --noEmit",
"types": "tsc --emitDeclarationOnly",
"prettier:check": "prettier --check .",
"prettier:fix": "prettier --write .",
"eslint:check": "eslint .",
"eslint:fix": "npm run eslint:check -- --fix",
"format": "run-s prettier:fix eslint:fix tsc",
"lint:js": "run-s prettier:check eslint:check tsc",
"lint": "run-p lint:*",
"test:unit": "echo No unit tests yet",
"test:e2e": "playwright test",
"test:e2e:ci": "run-s test:e2e \"test:e2e -- --browser=firefox\"",
"test": "run-p test:unit test:e2e",
"test:ci": "run-p test:unit test:e2e:ci",
"test:ui": "npm run test:e2e -- --ui",
"prepare": "husky",
"prepack": "npm run build"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@playwright/test": "1.33.0",
"@types/eslint__js": "^8.42.3",
"@types/eslint-config-prettier": "^6.11.3",
"@types/node": "*",
"esbuild": "^0.24.2",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"husky": "^9.1.7",
"lint-staged": "^15.3.0",
"npm-run-all": "^4.1.5",
"prettier": "3.4.2",
"typescript": "^5.7.2",
"typescript-eslint": "^8.19.0"
},
"lint-staged": {
"*.{js,ts}": [
"eslint --cache --fix",
"prettier --write --ignore-unknown"
],
"*.{json,yml,md,html}": [
"prettier --write --ignore-unknown"
]
}
}