1 | {
|
2 | "name": "@lit/reactive-element",
|
3 | "version": "2.0.2",
|
4 | "publishConfig": {
|
5 | "access": "public"
|
6 | },
|
7 | "description": "A simple low level 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/reactive-element"
|
13 | },
|
14 | "author": "Google LLC",
|
15 | "homepage": "https://lit.dev/",
|
16 | "main": "reactive-element.js",
|
17 | "module": "reactive-element.js",
|
18 | "type": "module",
|
19 | "exports": {
|
20 | ".": {
|
21 | "types": "./development/reactive-element.d.ts",
|
22 | "node": {
|
23 | "development": "./node/development/reactive-element.js",
|
24 | "default": "./node/reactive-element.js"
|
25 | },
|
26 | "development": "./development/reactive-element.js",
|
27 | "default": "./reactive-element.js"
|
28 | },
|
29 | "./css-tag.js": {
|
30 | "types": "./development/css-tag.d.ts",
|
31 | "node": {
|
32 | "development": "./node/development/css-tag.js",
|
33 | "default": "./node/css-tag.js"
|
34 | },
|
35 | "development": "./development/css-tag.js",
|
36 | "default": "./css-tag.js"
|
37 | },
|
38 | "./decorators.js": {
|
39 | "types": "./development/decorators.d.ts",
|
40 | "node": {
|
41 | "development": "./node/development/decorators.js",
|
42 | "default": "./node/decorators.js"
|
43 | },
|
44 | "development": "./development/decorators.js",
|
45 | "default": "./decorators.js"
|
46 | },
|
47 | "./decorators/base.js": {
|
48 | "types": "./development/decorators/base.d.ts",
|
49 | "node": {
|
50 | "development": "./node/development/decorators/base.js",
|
51 | "default": "./node/decorators/base.js"
|
52 | },
|
53 | "development": "./development/decorators/base.js",
|
54 | "default": "./decorators/base.js"
|
55 | },
|
56 | "./decorators/custom-element.js": {
|
57 | "types": "./development/decorators/custom-element.d.ts",
|
58 | "node": {
|
59 | "development": "./node/development/decorators/custom-element.js",
|
60 | "default": "./node/decorators/custom-element.js"
|
61 | },
|
62 | "development": "./development/decorators/custom-element.js",
|
63 | "default": "./decorators/custom-element.js"
|
64 | },
|
65 | "./decorators/event-options.js": {
|
66 | "types": "./development/decorators/event-options.d.ts",
|
67 | "node": {
|
68 | "development": "./node/development/decorators/event-options.js",
|
69 | "default": "./node/decorators/event-options.js"
|
70 | },
|
71 | "development": "./development/decorators/event-options.js",
|
72 | "default": "./decorators/event-options.js"
|
73 | },
|
74 | "./decorators/property.js": {
|
75 | "types": "./development/decorators/property.d.ts",
|
76 | "node": {
|
77 | "development": "./node/development/decorators/property.js",
|
78 | "default": "./node/decorators/property.js"
|
79 | },
|
80 | "development": "./development/decorators/property.js",
|
81 | "default": "./decorators/property.js"
|
82 | },
|
83 | "./decorators/query-all.js": {
|
84 | "types": "./development/decorators/query-all.d.ts",
|
85 | "node": {
|
86 | "development": "./node/development/decorators/query-all.js",
|
87 | "default": "./node/decorators/query-all.js"
|
88 | },
|
89 | "development": "./development/decorators/query-all.js",
|
90 | "default": "./decorators/query-all.js"
|
91 | },
|
92 | "./decorators/query-assigned-elements.js": {
|
93 | "types": "./development/decorators/query-assigned-elements.d.ts",
|
94 | "node": {
|
95 | "development": "./node/development/decorators/query-assigned-elements.js",
|
96 | "default": "./node/decorators/query-assigned-elements.js"
|
97 | },
|
98 | "development": "./development/decorators/query-assigned-elements.js",
|
99 | "default": "./decorators/query-assigned-elements.js"
|
100 | },
|
101 | "./decorators/query-assigned-nodes.js": {
|
102 | "types": "./development/decorators/query-assigned-nodes.d.ts",
|
103 | "node": {
|
104 | "development": "./node/development/decorators/query-assigned-nodes.js",
|
105 | "default": "./node/decorators/query-assigned-nodes.js"
|
106 | },
|
107 | "development": "./development/decorators/query-assigned-nodes.js",
|
108 | "default": "./decorators/query-assigned-nodes.js"
|
109 | },
|
110 | "./decorators/query-async.js": {
|
111 | "types": "./development/decorators/query-async.d.ts",
|
112 | "node": {
|
113 | "development": "./node/development/decorators/query-async.js",
|
114 | "default": "./node/decorators/query-async.js"
|
115 | },
|
116 | "development": "./development/decorators/query-async.js",
|
117 | "default": "./decorators/query-async.js"
|
118 | },
|
119 | "./decorators/query.js": {
|
120 | "types": "./development/decorators/query.d.ts",
|
121 | "node": {
|
122 | "development": "./node/development/decorators/query.js",
|
123 | "default": "./node/decorators/query.js"
|
124 | },
|
125 | "development": "./development/decorators/query.js",
|
126 | "default": "./decorators/query.js"
|
127 | },
|
128 | "./decorators/state.js": {
|
129 | "types": "./development/decorators/state.d.ts",
|
130 | "node": {
|
131 | "development": "./node/development/decorators/state.js",
|
132 | "default": "./node/decorators/state.js"
|
133 | },
|
134 | "development": "./development/decorators/state.js",
|
135 | "default": "./decorators/state.js"
|
136 | },
|
137 | "./polyfill-support.js": {
|
138 | "types": "./development/polyfill-support.d.ts",
|
139 | "node": {
|
140 | "development": "./node/development/polyfill-support.js",
|
141 | "default": "./node/polyfill-support.js"
|
142 | },
|
143 | "development": "./development/polyfill-support.js",
|
144 | "default": "./polyfill-support.js"
|
145 | },
|
146 | "./reactive-controller.js": {
|
147 | "types": "./development/reactive-controller.d.ts",
|
148 | "node": {
|
149 | "development": "./node/development/reactive-controller.js",
|
150 | "default": "./node/reactive-controller.js"
|
151 | },
|
152 | "development": "./development/reactive-controller.js",
|
153 | "default": "./reactive-controller.js"
|
154 | }
|
155 | },
|
156 | "scripts": {
|
157 | "build": "wireit",
|
158 | "build:ts": "wireit",
|
159 | "build:ts:std-decorators-tests": "wireit",
|
160 | "build:ts:types": "wireit",
|
161 | "build:rollup": "wireit",
|
162 | "build:babel": "wireit",
|
163 | "check-version": "wireit",
|
164 | "checksize": "wireit",
|
165 | "prepublishOnly": "npm run check-version",
|
166 | "test": "wireit",
|
167 | "test:dev": "wireit",
|
168 | "test:prod": "wireit",
|
169 | "test:node": "wireit",
|
170 | "test:node-dev": "wireit",
|
171 | "test:node-dom-shim": "wireit",
|
172 | "test:node-dom-shim-dev": "wireit"
|
173 | },
|
174 | "wireit": {
|
175 | "build": {
|
176 | "dependencies": [
|
177 | "build:rollup",
|
178 | "build:ts",
|
179 | "build:ts:std-decorators-tests",
|
180 | "build:ts:types"
|
181 | ]
|
182 | },
|
183 | "build:ts": {
|
184 | "#comment": "Note this also builds polyfill-support via a TypeScript project reference.",
|
185 | "command": "tsc --build --pretty",
|
186 | "clean": "if-file-deleted",
|
187 | "dependencies": [
|
188 | "../labs/testing:build:ts:utils",
|
189 | "../labs/ssr-dom-shim:build:ts"
|
190 | ],
|
191 | "files": [
|
192 | "src/**/*.ts",
|
193 | "tsconfig.json",
|
194 | "tsconfig.polyfill-support.json"
|
195 | ],
|
196 | "output": [
|
197 | "development/**/*.{js,js.map,d.ts,d.ts.map}",
|
198 | "!development/test/decorators-babel",
|
199 | "!development/test/std-decorators",
|
200 | "tsconfig.tsbuildinfo",
|
201 | "tsconfig.polyfill-support.tsbuildinfo"
|
202 | ]
|
203 | },
|
204 | "build:ts:types": {
|
205 | "command": "treemirror development . \"**/*.d.ts{,.map}\"",
|
206 | "dependencies": [
|
207 | "../internal-scripts:build",
|
208 | "build:ts"
|
209 | ],
|
210 | "files": [],
|
211 | "output": [
|
212 | "*.d.ts{,.map}",
|
213 | "decorators/*.d.ts{,.map}",
|
214 | "legacy-decorators/*.d.ts{,.map}",
|
215 | "std-decorators/*.d.ts{,.map}"
|
216 | ]
|
217 | },
|
218 | "build:ts:std-decorators-tests": {
|
219 | "#comment": "This is a separate script from build:ts because it needs a tsconfig without experimentalDecorators.",
|
220 | "command": "tsc --pretty --project tsconfig.std-decorators-tests.json",
|
221 | "clean": "if-file-deleted",
|
222 | "dependencies": [
|
223 | "build:ts"
|
224 | ],
|
225 | "files": [
|
226 | "src/test/decorators-modern/**/*.ts",
|
227 | "tsconfig.std-decorators-tests.json"
|
228 | ],
|
229 | "output": [
|
230 | "development/test/std-decorators",
|
231 | "tsconfig.std-decorators-tests.tsbuildinfo"
|
232 | ]
|
233 | },
|
234 | "build:rollup": {
|
235 | "command": "rollup -c",
|
236 | "dependencies": [
|
237 | "build:ts"
|
238 | ],
|
239 | "files": [
|
240 | "rollup.config.js",
|
241 | "../../rollup-common.js",
|
242 | "src/test/*_test.html",
|
243 | "src/test/polyfill-support/*_test.html"
|
244 | ],
|
245 | "output": [
|
246 | "css-tag.js{,.map}",
|
247 | "decorators.js{,.map}",
|
248 | "polyfill-support.js{,.map}",
|
249 | "reactive-controller.js{,.map}",
|
250 | "reactive-element.js{,.map}",
|
251 | "decorators/*.js{,.map}",
|
252 | "test/*_test.html",
|
253 | "development/test/*_test.html",
|
254 | "test/polyfill-support/*_test.html",
|
255 | "development/test/polyfill-support/*_test.html",
|
256 | "node/"
|
257 | ]
|
258 | },
|
259 | "build:babel": {
|
260 | "command": "babel --extensions .ts src/test/std-decorators --out-dir development/test/decorators-babel",
|
261 | "files": [
|
262 | ".babelrc",
|
263 | "src/test/decorators/**/*.ts"
|
264 | ],
|
265 | "output": [
|
266 | "development/test/decorators-babel"
|
267 | ]
|
268 | },
|
269 | "checksize": {
|
270 | "command": "rollup -c --environment=CHECKSIZE",
|
271 | "dependencies": [
|
272 | "build:ts"
|
273 | ],
|
274 | "files": [
|
275 | "rollup.config.js",
|
276 | "../../rollup-common.js"
|
277 | ],
|
278 | "output": []
|
279 | },
|
280 | "check-version": {
|
281 | "command": "node scripts/check-version-tracker.js",
|
282 | "files": [
|
283 | "scripts/check-version-tracker.js",
|
284 | "package.json",
|
285 | "src/reactive-element.ts"
|
286 | ],
|
287 | "output": []
|
288 | },
|
289 | "test": {
|
290 | "dependencies": [
|
291 | "test:dev",
|
292 | "test:prod",
|
293 | "test:node",
|
294 | "test:node-dev",
|
295 | "test:node-dom-shim",
|
296 | "test:node-dom-shim-dev",
|
297 | "check-version"
|
298 | ]
|
299 | },
|
300 | "test:dev": {
|
301 | "command": "MODE=dev node ../tests/run-web-tests.js \"development/test/**/*_test.js\" --config ../tests/web-test-runner.config.js",
|
302 | "dependencies": [
|
303 | "build:ts",
|
304 | "build:ts:std-decorators-tests",
|
305 | "../tests:build"
|
306 | ],
|
307 | "env": {
|
308 | "BROWSERS": {
|
309 | "external": true
|
310 | }
|
311 | },
|
312 | "files": [],
|
313 | "output": []
|
314 | },
|
315 | "test:prod": {
|
316 | "command": "MODE=prod node ../tests/run-web-tests.js \"development/**/*_test.(js|html)\" --config ../tests/web-test-runner.config.js",
|
317 | "dependencies": [
|
318 | "build:ts",
|
319 | "build:ts:std-decorators-tests",
|
320 | "build:rollup",
|
321 | "../tests:build"
|
322 | ],
|
323 | "env": {
|
324 | "BROWSERS": {
|
325 | "external": true
|
326 | }
|
327 | },
|
328 | "files": [],
|
329 | "output": []
|
330 | },
|
331 | "test:node": {
|
332 | "command": "node development/test/node-imports.js",
|
333 | "dependencies": [
|
334 | "build:ts",
|
335 | "build:ts:std-decorators-tests",
|
336 | "build:rollup"
|
337 | ],
|
338 | "files": [],
|
339 | "output": []
|
340 | },
|
341 | "test:node-dev": {
|
342 | "command": "node --conditions=development development/test/node-imports.js",
|
343 | "dependencies": [
|
344 | "build:ts",
|
345 | "build:ts:std-decorators-tests",
|
346 | "build:rollup"
|
347 | ],
|
348 | "files": [],
|
349 | "output": []
|
350 | },
|
351 | "test:node-dom-shim": {
|
352 | "command": "node development/test/node-dom-shim.js",
|
353 | "dependencies": [
|
354 | "build:ts",
|
355 | "build:ts:std-decorators-tests",
|
356 | "build:rollup"
|
357 | ],
|
358 | "files": [],
|
359 | "output": []
|
360 | },
|
361 | "test:node-dom-shim-dev": {
|
362 | "command": "node --conditions=development development/test/node-dom-shim.js",
|
363 | "dependencies": [
|
364 | "build:ts",
|
365 | "build:ts:std-decorators-tests",
|
366 | "build:rollup"
|
367 | ],
|
368 | "files": [],
|
369 | "output": []
|
370 | }
|
371 | },
|
372 | "files": [
|
373 | "/css-tag.{d.ts,d.ts.map,js,js.map}",
|
374 | "/decorators.{d.ts,d.ts.map,js,js.map}",
|
375 | "/polyfill-support.{d.ts,d.ts.map,js,js.map}",
|
376 | "/reactive-controller.{d.ts,d.ts.map,js,js.map}",
|
377 | "/reactive-element.{d.ts,d.ts.map,js,js.map}",
|
378 | "/decorators/",
|
379 | "/development/",
|
380 | "!/development/test/",
|
381 | "/node/"
|
382 | ],
|
383 | "dependencies": {
|
384 | "@lit-labs/ssr-dom-shim": "^1.1.2"
|
385 | },
|
386 | "devDependencies": {
|
387 | "@babel/cli": "^7.22.10",
|
388 | "@babel/core": "^7.22.11",
|
389 | "@babel/plugin-proposal-class-properties": "^7.18.6",
|
390 | "@babel/plugin-proposal-decorators": "^7.22.10",
|
391 | "@babel/plugin-transform-class-static-block": "^7.22.11",
|
392 | "@babel/plugin-transform-typescript": "^7.22.11",
|
393 | "@lit-internal/scripts": "^1.0.1",
|
394 | "@webcomponents/shadycss": "^1.8.0",
|
395 | "@webcomponents/template": "^1.4.4",
|
396 | "@webcomponents/webcomponentsjs": "^2.8.0"
|
397 | },
|
398 | "typings": "reactive-element.d.ts",
|
399 | "directories": {
|
400 | "test": "test"
|
401 | }
|
402 | }
|