package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. {
  2. "name": "pyodide",
  3. "version": "0.25.1",
  4. "description": "The Pyodide JavaScript package",
  5. "keywords": [
  6. "python",
  7. "webassembly"
  8. ],
  9. "homepage": "https://github.com/pyodide/pyodide",
  10. "repository": {
  11. "type": "git",
  12. "url": "https://github.com/pyodide/pyodide"
  13. },
  14. "bugs": {
  15. "url": "https://github.com/pyodide/pyodide/issues"
  16. },
  17. "license": "Apache-2.0",
  18. "devDependencies": {
  19. "@types/assert": "^1.5.6",
  20. "@types/expect": "^24.3.0",
  21. "@types/mocha": "^9.1.0",
  22. "@types/node": "^20.8.4",
  23. "@types/ws": "^8.5.3",
  24. "chai": "^4.3.6",
  25. "chai-as-promised": "^7.1.1",
  26. "cross-env": "^7.0.3",
  27. "dts-bundle-generator": "^8.1.1",
  28. "error-stack-parser": "^2.1.4",
  29. "esbuild": "^0.17.12",
  30. "express": "^4.17.3",
  31. "mocha": "^9.0.2",
  32. "npm-run-all": "^4.1.5",
  33. "nyc": "^15.1.0",
  34. "prettier": "^2.2.1",
  35. "ts-mocha": "^9.0.2",
  36. "tsd": "^0.24.1",
  37. "typedoc": "^0.25.1",
  38. "typescript": "^4.6.4",
  39. "wabt": "^1.0.32"
  40. },
  41. "main": "pyodide.js",
  42. "exports": {
  43. ".": {
  44. "require": "./pyodide.js",
  45. "import": "./pyodide.mjs",
  46. "types": "./pyodide.d.ts"
  47. },
  48. "./ffi": {
  49. "types": "./ffi.d.ts"
  50. },
  51. "./pyodide.asm.wasm": "./pyodide.asm.wasm",
  52. "./pyodide.asm.js": "./pyodide.asm.js",
  53. "./python_stdlib.zip": "./python_stdlib.zip",
  54. "./pyodide.mjs": "./pyodide.mjs",
  55. "./pyodide.js": "./pyodide.js",
  56. "./package.json": "./package.json",
  57. "./pyodide-lock.json": "./pyodide-lock.json"
  58. },
  59. "files": [
  60. "pyodide.asm.js",
  61. "pyodide.asm.wasm",
  62. "python_stdlib.zip",
  63. "pyodide.mjs",
  64. "pyodide.js.map",
  65. "pyodide.mjs.map",
  66. "pyodide.d.ts",
  67. "ffi.d.ts",
  68. "pyodide-lock.json",
  69. "console.html"
  70. ],
  71. "browser": {
  72. "child_process": false,
  73. "crypto": false,
  74. "fs": false,
  75. "fs/promises": false,
  76. "path": false,
  77. "url": false,
  78. "vm": false,
  79. "ws": false
  80. },
  81. "scripts": {
  82. "build": "tsc --noEmit && node esbuild.config.mjs",
  83. "test": "npm-run-all test:*",
  84. "test:unit": "cross-env TEST_NODE=1 ts-mocha --node-option=experimental-loader=./test/loader.mjs --node-option=experimental-wasm-stack-switching -p tsconfig.test.json test/unit/**/*.test.*",
  85. "test:node": "cross-env TEST_NODE=1 mocha test/integration/**/*.test.js",
  86. "test:browser": "mocha test/integration/**/*.test.js",
  87. "tsc": "tsc --noEmit",
  88. "coverage": "cross-env TEST_NODE=1 npm-run-all coverage:*",
  89. "coverage:build": "nyc npm run test:node"
  90. },
  91. "mocha": {
  92. "bail": false,
  93. "timeout": 30000,
  94. "full-trace": true,
  95. "inline-diffs": true,
  96. "check-leaks": false,
  97. "global": [
  98. "pyodide",
  99. "page",
  100. "chai"
  101. ]
  102. },
  103. "nyc": {
  104. "reporter": [
  105. "html",
  106. "text-summary"
  107. ],
  108. "include": [
  109. "*.ts"
  110. ],
  111. "all": true,
  112. "clean": true,
  113. "cache": false,
  114. "instrument": false,
  115. "checkCoverage": true,
  116. "statements": 95,
  117. "functions": 95,
  118. "branches": 80,
  119. "lines": 95
  120. },
  121. "tsd": {
  122. "compilerOptions": {
  123. "lib": [
  124. "ES2017",
  125. "DOM"
  126. ]
  127. }
  128. },
  129. "dependencies": {
  130. "base-64": "^1.0.0",
  131. "ws": "^8.5.0"
  132. },
  133. "types": "./pyodide.d.ts"
  134. }