package.json 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. {
  2. "name": "@lit/context",
  3. "version": "1.1.6",
  4. "description": "Helpers and controllers for using Context protocol",
  5. "license": "BSD-3-Clause",
  6. "homepage": "https://lit.dev/",
  7. "repository": {
  8. "type": "git",
  9. "url": "git+https://github.com/lit/lit.git",
  10. "directory": "packages/context"
  11. },
  12. "type": "module",
  13. "main": "index.js",
  14. "module": "index.js",
  15. "typings": "index.d.ts",
  16. "directories": {
  17. "test": "test"
  18. },
  19. "exports": {
  20. ".": {
  21. "types": "./development/index.d.ts",
  22. "development": "./development/index.js",
  23. "default": "./index.js"
  24. }
  25. },
  26. "files": [
  27. "/src/",
  28. "!/src/test/",
  29. "/lib/",
  30. "/development/",
  31. "!/development/test/",
  32. "/index.{d.ts,d.ts.map,js,js.map}"
  33. ],
  34. "scripts": {
  35. "build": "wireit",
  36. "build:ts": "wireit",
  37. "build:ts:std-decorators-tests": "wireit",
  38. "build:ts:lit2-tests": "wireit",
  39. "build:ts:lit2": "wireit",
  40. "build:ts:types": "wireit",
  41. "build:rollup": "wireit",
  42. "test": "wireit",
  43. "test:dev": "wireit",
  44. "test:prod": "wireit",
  45. "checksize": "wireit"
  46. },
  47. "wireit": {
  48. "build": {
  49. "dependencies": [
  50. "build:rollup",
  51. "build:ts",
  52. "build:ts:std-decorators-tests",
  53. "build:ts:types",
  54. "../lit:build",
  55. "../reactive-element:build",
  56. "../labs/testing:build"
  57. ]
  58. },
  59. "build:ts": {
  60. "command": "tsc --build --pretty",
  61. "dependencies": [
  62. "../lit:build:ts:types",
  63. "../reactive-element:build:ts:types"
  64. ],
  65. "clean": "if-file-deleted",
  66. "files": [
  67. "tsconfig.json",
  68. "src/**/*.ts",
  69. "!src/test/std-decorators"
  70. ],
  71. "output": [
  72. "development",
  73. "!development/test/std-decorators",
  74. "tsconfig.tsbuildinfo"
  75. ]
  76. },
  77. "build:ts:std-decorators-tests": {
  78. "#comment": "This is a separate script from build:ts because it needs a tsconfig without experimentalDecorators.",
  79. "command": "tsc --pretty --project tsconfig.std-decorators-tests.json",
  80. "clean": "if-file-deleted",
  81. "dependencies": [
  82. "build:ts"
  83. ],
  84. "files": [
  85. "src/test/std-decorators/**/*.ts",
  86. "tsconfig.std-decorators-tests.json"
  87. ],
  88. "output": [
  89. "development/test/std-decorators",
  90. "tsconfig.std-decorators-tests.tsbuildinfo"
  91. ]
  92. },
  93. "build:ts:lit2-tests": {
  94. "#comment": "Run this to install and build additional cross-version type tests.",
  95. "command": "tsc --pretty --project tsconfig.lit2-tests.json",
  96. "clean": "if-file-deleted",
  97. "dependencies": [
  98. "build:ts:lit2",
  99. "install:lit2"
  100. ],
  101. "files": [
  102. "src/test/**/*.ts",
  103. "!src/test/std-decorators/**/*.ts",
  104. "tsconfig.lit2-tests.json"
  105. ],
  106. "output": [
  107. "lit2/context/test",
  108. "tsconfig.lit2-tests.tsbuildinfo"
  109. ]
  110. },
  111. "install:lit2": {
  112. "command": "cd lit2/lit2-scope && npm ci",
  113. "clean": "if-file-deleted",
  114. "dependencies": [],
  115. "files": [
  116. "lit2/lit2-scope/package.json",
  117. "lit2/lit2-scope/package-lock.json"
  118. ],
  119. "output": []
  120. },
  121. "build:ts:lit2": {
  122. "#comment": "This is a separate script from build:ts because it needs a tsconfig that maps in lit@2.",
  123. "command": "tsc --pretty --project tsconfig.lit2.json",
  124. "clean": "if-file-deleted",
  125. "dependencies": [
  126. "build:ts"
  127. ],
  128. "files": [
  129. "src/**/*.ts",
  130. "!src/test/**/*.ts",
  131. "tsconfig.lit2.json"
  132. ],
  133. "output": [
  134. "lit2/lit2-scope/context",
  135. "lit2/lit2-scope/tsconfig.lit2.tsbuildinfo"
  136. ]
  137. },
  138. "build:ts:types": {
  139. "command": "treemirror development . \"**/*.d.ts{,.map}\" \"!test\"",
  140. "dependencies": [
  141. "../internal-scripts:build",
  142. "build:ts"
  143. ],
  144. "files": [],
  145. "output": [
  146. "*.d.ts{,.map}",
  147. "lib/**/*.d.ts{,.map}"
  148. ]
  149. },
  150. "build:rollup": {
  151. "command": "rollup -c",
  152. "dependencies": [
  153. "build:ts"
  154. ],
  155. "files": [
  156. "rollup.config.js",
  157. "../../../rollup-common.js"
  158. ],
  159. "output": [
  160. "index.js{,.map}",
  161. "lib/**/*.js{,.map}"
  162. ]
  163. },
  164. "checksize": {
  165. "command": "rollup -c --environment=CHECKSIZE",
  166. "dependencies": [
  167. "build:ts"
  168. ],
  169. "files": [
  170. "rollup.config.js",
  171. "../../../rollup-common.js"
  172. ],
  173. "output": []
  174. },
  175. "test": {
  176. "dependencies": [
  177. "test:dev",
  178. "test:prod"
  179. ]
  180. },
  181. "test:dev": {
  182. "command": "MODE=dev node ../tests/run-web-tests.js \"development/**/*_test.js\" --config ../tests/web-test-runner.config.js",
  183. "dependencies": [
  184. "build:ts",
  185. "build:ts:std-decorators-tests",
  186. "../tests:build"
  187. ],
  188. "env": {
  189. "BROWSERS": {
  190. "external": true
  191. }
  192. },
  193. "files": [],
  194. "output": []
  195. },
  196. "test:prod": {
  197. "command": "MODE=prod node ../tests/run-web-tests.js \"development/**/*_test.js\" --config ../tests/web-test-runner.config.js",
  198. "dependencies": [
  199. "build",
  200. "../tests:build"
  201. ],
  202. "env": {
  203. "BROWSERS": {
  204. "external": true
  205. }
  206. },
  207. "files": [],
  208. "output": []
  209. }
  210. },
  211. "author": "Google LLC",
  212. "dependencies": {
  213. "@lit/reactive-element": "^1.6.2 || ^2.1.0"
  214. },
  215. "devDependencies": {
  216. "chai": "^5.1.0",
  217. "@lit-internal/scripts": "^1.0.1",
  218. "@lit-labs/testing": "^0.2.2",
  219. "@types/trusted-types": "^2.0.2",
  220. "lit": "^3.3.0"
  221. },
  222. "publishConfig": {
  223. "access": "public"
  224. }
  225. }