package.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {
  2. "name": "solid-js",
  3. "description": "A declarative JavaScript library for building user interfaces.",
  4. "version": "1.0.0-rc.2",
  5. "author": "Ryan Carniato",
  6. "license": "MIT",
  7. "homepage": "https://github.com/solidjs/solid#readme",
  8. "repository": {
  9. "type": "git",
  10. "url": "https://github.com/solidjs/solid"
  11. },
  12. "main": "dist/static.cjs",
  13. "module": "dist/static.js",
  14. "browser": {
  15. "./dist/static.cjs": "./dist/solid.cjs",
  16. "./dist/static.js": "./dist/solid.js"
  17. },
  18. "unpkg": "./dist/solid.cjs",
  19. "types": "types/index.d.ts",
  20. "sideEffects": false,
  21. "type": "module",
  22. "files": [
  23. "dist",
  24. "web/dist",
  25. "web/types",
  26. "h/dist",
  27. "h/types",
  28. "html/dist",
  29. "html/types",
  30. "types",
  31. "jsx-runtime.d.ts"
  32. ],
  33. "exports": {
  34. ".": {
  35. "development": {
  36. "import": "./dist/dev.js",
  37. "require": "./dist/dev.cjs"
  38. },
  39. "browser": {
  40. "import": "./dist/solid.js",
  41. "require": "./dist/solid.cjs"
  42. },
  43. "node": {
  44. "import": "./dist/static.js",
  45. "require": "./dist/static.cjs"
  46. },
  47. "import": "./dist/solid.js",
  48. "require": "./dist/solid.cjs"
  49. },
  50. "./dist/*": "./dist/*",
  51. "./web": {
  52. "development": {
  53. "import": "./web/dist/dev.js",
  54. "require": "./web/dist/dev.cjs"
  55. },
  56. "browser": {
  57. "import": "./web/dist/web.js",
  58. "require": "./web/dist/web.cjs"
  59. },
  60. "node": {
  61. "import": "./web/dist/server.js",
  62. "require": "./web/dist/server.cjs"
  63. },
  64. "import": "./web/dist/web.js",
  65. "require": "./web/dist/web.cjs"
  66. },
  67. "./web/dist/*": "./web/dist/*",
  68. "./h": {
  69. "import": "./h/dist/h.js",
  70. "require": "./h/dist/h.cjs"
  71. },
  72. "./h/dist/*": "./h/dist/*",
  73. "./html": {
  74. "import": "./html/dist/html.js",
  75. "require": "./html/dist/html.cjs"
  76. },
  77. "./html/dist/*": "./html/dist/*"
  78. },
  79. "scripts": {
  80. "prebuild": "npm run clean",
  81. "clean": "rimraf dist/ types/ coverage/ web/dist/ web/types/ h/dist/ h/types/ html/dist/ html/types/",
  82. "build": "npm-run-all -cnl build:*",
  83. "build:link": "symlink-dir . node_modules/solid-js",
  84. "build:js": "ncp ../../node_modules/dom-expressions/src/jsx.d.ts ./src/jsx.d.ts && rollup -c",
  85. "build:types": "tsc",
  86. "build:types-web": "tsc --project ./web/tsconfig.json && tsconfig-replace-paths --project ./web/tsconfig.types.json",
  87. "build:types-html": "tsc --project ./html/tsconfig.json",
  88. "build:types-h": "tsc --project ./h/tsconfig.json",
  89. "bench": "node --allow-natives-syntax bench/bench.cjs",
  90. "test": "jest && npm run test:types",
  91. "test:coverage": "jest --coverage && npm run test:types",
  92. "test:types": "tsc --project tsconfig.test.json"
  93. },
  94. "keywords": [
  95. "solid",
  96. "solidjs",
  97. "ui",
  98. "reactive",
  99. "components",
  100. "compiler",
  101. "performance"
  102. ],
  103. "gitHead": "31d94c071b444f1e3efa43fb77d16b3118d9c85c"
  104. }