package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. {
  2. "name": "@lit-labs/signals",
  3. "version": "0.3.0",
  4. "description": "JavaScript Signals proposal integration for Lit",
  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/labs/signals"
  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. "/development/",
  28. "!/development/test/",
  29. "/index.{d.ts,d.ts.map,js,js.map}",
  30. "/lib/"
  31. ],
  32. "scripts": {
  33. "build": "wireit",
  34. "build:ts": "wireit",
  35. "build:ts:types": "wireit",
  36. "test": "wireit",
  37. "test:dev": "wireit",
  38. "test:prod": "wireit"
  39. },
  40. "wireit": {
  41. "build": {
  42. "dependencies": [
  43. "build:rollup",
  44. "build:ts",
  45. "build:ts:types",
  46. "../../lit:build"
  47. ]
  48. },
  49. "build:ts": {
  50. "command": "tsc --build --pretty",
  51. "dependencies": [
  52. "../../lit:build:ts:types"
  53. ],
  54. "clean": "if-file-deleted",
  55. "files": [
  56. "src/**/*.ts",
  57. "src/**/*.tsx",
  58. "tsconfig.json"
  59. ],
  60. "output": [
  61. "development",
  62. "tsconfig.tsbuildinfo"
  63. ]
  64. },
  65. "build:ts:types": {
  66. "command": "treemirror development . \"**/*.d.ts{,.map}\"",
  67. "dependencies": [
  68. "../../internal-scripts:build",
  69. "build:ts"
  70. ],
  71. "files": [],
  72. "output": [
  73. "*.d.ts{,.map}",
  74. "lib/*.d.ts{,.map}",
  75. "test/**/*.d.ts{,.map}"
  76. ]
  77. },
  78. "build:rollup": {
  79. "command": "rollup -c",
  80. "dependencies": [
  81. "build:ts"
  82. ],
  83. "files": [
  84. "rollup.config.js",
  85. "../../../rollup-common.js",
  86. "src/test/*_test.html"
  87. ],
  88. "output": [
  89. "index.js{,.map}",
  90. "lib/*.js{,.map}",
  91. "test/*_test.html"
  92. ]
  93. },
  94. "test": {
  95. "dependencies": [
  96. "test:dev",
  97. "test:prod"
  98. ]
  99. },
  100. "test:dev": {
  101. "command": "MODE=dev node ../../tests/run-web-tests.js \"development/test/**/*_test.js\" --config ../../tests/web-test-runner.config.js",
  102. "dependencies": [
  103. "build:ts",
  104. "../../tests:build"
  105. ],
  106. "env": {
  107. "BROWSERS": {
  108. "external": true
  109. }
  110. },
  111. "files": [],
  112. "output": []
  113. },
  114. "test:prod": {
  115. "command": "MODE=prod node ../../tests/run-web-tests.js \"development/test/**/*_test.js\" --config ../../tests/web-test-runner.config.js",
  116. "dependencies": [
  117. "build",
  118. "../../tests:build"
  119. ],
  120. "env": {
  121. "BROWSERS": {
  122. "external": true
  123. }
  124. },
  125. "files": [],
  126. "output": []
  127. }
  128. },
  129. "author": "Google LLC",
  130. "devDependencies": {
  131. "@lit-internal/scripts": "^1.0.1"
  132. },
  133. "publishConfig": {
  134. "access": "public"
  135. },
  136. "dependencies": {
  137. "lit": "^2.0.0 || ^3.0.0",
  138. "signal-polyfill": "^0.2.2"
  139. }
  140. }