UNPKG

7.88 kBJSONView Raw
1{
2 "name": "lit-element",
3 "version": "4.1.1",
4 "publishConfig": {
5 "access": "public"
6 },
7 "description": "A simple base class for creating fast, lightweight web components",
8 "license": "BSD-3-Clause",
9 "repository": {
10 "type": "git",
11 "url": "https://github.com/lit/lit.git",
12 "directory": "packages/lit-element"
13 },
14 "author": "Google LLC",
15 "homepage": "https://lit.dev/",
16 "main": "index.js",
17 "module": "index.js",
18 "types": "index.d.ts",
19 "type": "module",
20 "exports": {
21 ".": {
22 "types": "./development/index.d.ts",
23 "development": "./development/index.js",
24 "default": "./index.js"
25 },
26 "./decorators.js": {
27 "types": "./development/decorators.d.ts",
28 "development": "./development/decorators.js",
29 "default": "./decorators.js"
30 },
31 "./decorators/custom-element.js": {
32 "types": "./development/decorators/custom-element.d.ts",
33 "development": "./development/decorators/custom-element.js",
34 "default": "./decorators/custom-element.js"
35 },
36 "./decorators/event-options.js": {
37 "types": "./development/decorators/event-options.d.ts",
38 "development": "./development/decorators/event-options.js",
39 "default": "./decorators/event-options.js"
40 },
41 "./decorators/property.js": {
42 "types": "./development/decorators/property.d.ts",
43 "development": "./development/decorators/property.js",
44 "default": "./decorators/property.js"
45 },
46 "./decorators/query-all.js": {
47 "types": "./development/decorators/query-all.d.ts",
48 "development": "./development/decorators/query-all.js",
49 "default": "./decorators/query-all.js"
50 },
51 "./decorators/query-assigned-elements.js": {
52 "types": "./development/decorators/query-assigned-elements.d.ts",
53 "development": "./development/decorators/query-assigned-elements.js",
54 "default": "./decorators/query-assigned-elements.js"
55 },
56 "./decorators/query-assigned-nodes.js": {
57 "types": "./development/decorators/query-assigned-nodes.d.ts",
58 "development": "./development/decorators/query-assigned-nodes.js",
59 "default": "./decorators/query-assigned-nodes.js"
60 },
61 "./decorators/query-async.js": {
62 "types": "./development/decorators/query-async.d.ts",
63 "development": "./development/decorators/query-async.js",
64 "default": "./decorators/query-async.js"
65 },
66 "./decorators/query.js": {
67 "types": "./development/decorators/query.d.ts",
68 "development": "./development/decorators/query.js",
69 "default": "./decorators/query.js"
70 },
71 "./decorators/state.js": {
72 "types": "./development/decorators/state.d.ts",
73 "development": "./development/decorators/state.js",
74 "default": "./decorators/state.js"
75 },
76 "./lit-element.js": {
77 "types": "./development/lit-element.d.ts",
78 "development": "./development/lit-element.js",
79 "default": "./lit-element.js"
80 },
81 "./polyfill-support.js": {
82 "types": "./development/polyfill-support.d.ts",
83 "development": "./development/polyfill-support.js",
84 "default": "./polyfill-support.js"
85 },
86 "./private-ssr-support.js": {
87 "types": "./development/private-ssr-support.d.ts",
88 "development": "./development/private-ssr-support.js",
89 "default": "./private-ssr-support.js"
90 }
91 },
92 "scripts": {
93 "build": "wireit",
94 "build:rollup": "wireit",
95 "build:ts": "wireit",
96 "build:ts:types": "wireit",
97 "check-version": "wireit",
98 "checksize": "wireit",
99 "prepublishOnly": "npm run check-version",
100 "test": "wireit",
101 "test:dev": "wireit",
102 "test:prod": "wireit",
103 "test:node": "wireit"
104 },
105 "wireit": {
106 "build": {
107 "dependencies": [
108 "build:rollup",
109 "build:ts",
110 "build:ts:types",
111 "../lit-html:build",
112 "../reactive-element:build"
113 ]
114 },
115 "build:ts": {
116 "#comment": "Note this also builds polyfill-support via a TypeScript project reference.",
117 "command": "tsc --build --pretty",
118 "clean": "if-file-deleted",
119 "dependencies": [
120 "../lit-html:build:ts:types",
121 "../reactive-element:build:ts:types",
122 "../labs/testing:build:ts:utils"
123 ],
124 "files": [
125 "src/**/*.ts",
126 "tsconfig.json",
127 "tsconfig.polyfill-support.json"
128 ],
129 "output": [
130 "development/**/*.{js,js.map,d.ts,d.ts.map}",
131 "tsconfig.tsbuildinfo",
132 "tsconfig.polyfill-support.tsbuildinfo"
133 ]
134 },
135 "build:ts:types": {
136 "command": "treemirror development . \"**/*.d.ts{,.map}\"",
137 "dependencies": [
138 "../internal-scripts:build",
139 "build:ts"
140 ],
141 "files": [],
142 "output": [
143 "*.d.ts{,.map}",
144 "decorators/*.d.ts{,.map}"
145 ]
146 },
147 "build:rollup": {
148 "command": "rollup -c",
149 "dependencies": [
150 "build:ts",
151 "../lit-html:build:rollup",
152 "../reactive-element:build:rollup"
153 ],
154 "files": [
155 "rollup.config.js",
156 "../../rollup-common.js",
157 "src/test/*_test.html",
158 "src/test/polyfill-support/*_test.html"
159 ],
160 "output": [
161 "decorators.js{,.map}",
162 "index.js{,.map}",
163 "lit-element.js{,.map}",
164 "polyfill-support.js{,.map}",
165 "private-ssr-support.js{,.map}",
166 "decorators/*.js{,.map}",
167 "test/*_test.html",
168 "development/test/*_test.html",
169 "test/polyfill-support/*_test.html",
170 "development/test/polyfill-support/*_test.html"
171 ]
172 },
173 "checksize": {
174 "command": "rollup -c --environment=CHECKSIZE",
175 "dependencies": [
176 "build:ts"
177 ],
178 "files": [
179 "rollup.config.js",
180 "../../rollup-common.js"
181 ],
182 "output": []
183 },
184 "check-version": {
185 "command": "node scripts/check-version-tracker.js",
186 "files": [
187 "scripts/check-version-tracker.js",
188 "package.json",
189 "src/lit-element.ts"
190 ],
191 "output": []
192 },
193 "test": {
194 "dependencies": [
195 "test:dev",
196 "test:prod",
197 "test:node",
198 "check-version"
199 ]
200 },
201 "test:dev": {
202 "command": "MODE=dev node ../tests/run-web-tests.js \"development/**/*_test.(js|html)\" --config ../tests/web-test-runner.config.js",
203 "dependencies": [
204 "build:ts",
205 "../tests:build"
206 ],
207 "env": {
208 "BROWSERS": {
209 "external": true
210 }
211 },
212 "files": [],
213 "output": []
214 },
215 "test:prod": {
216 "command": "MODE=prod node ../tests/run-web-tests.js \"development/**/*_test.(js|html)\" --config ../tests/web-test-runner.config.js",
217 "dependencies": [
218 "build:ts",
219 "build:rollup",
220 "../tests:build"
221 ],
222 "env": {
223 "BROWSERS": {
224 "external": true
225 }
226 },
227 "files": [],
228 "output": []
229 },
230 "test:node": {
231 "command": "node development/test/node-imports.js",
232 "dependencies": [
233 "build:ts",
234 "build:rollup"
235 ],
236 "files": [],
237 "output": []
238 }
239 },
240 "files": [
241 "/decorators.{d.ts,d.ts.map,js,js.map}",
242 "/index.{d.ts,d.ts.map,js,js.map}",
243 "/lit-element.{d.ts,d.ts.map,js,js.map}",
244 "/polyfill-support.{d.ts,d.ts.map,js,js.map}",
245 "/private-ssr-support.{d.ts,d.ts.map,js,js.map}",
246 "/decorators/",
247 "/development/",
248 "!/development/test/"
249 ],
250 "dependencies": {
251 "@lit-labs/ssr-dom-shim": "^1.2.0",
252 "@lit/reactive-element": "^2.0.4",
253 "lit-html": "^3.2.0"
254 },
255 "devDependencies": {
256 "@lit-internal/scripts": "^1.0.1",
257 "@lit-labs/testing": "^0.2.2",
258 "@webcomponents/shadycss": "^1.8.0",
259 "@webcomponents/template": "^1.4.4",
260 "@webcomponents/webcomponentsjs": "^2.8.0",
261 "tslib": "^2.0.3"
262 },
263 "directories": {
264 "test": "test"
265 }
266}