package.json 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "name": "@connectrpc/connect-web",
  3. "version": "2.1.0",
  4. "license": "Apache-2.0",
  5. "repository": {
  6. "type": "git",
  7. "url": "https://github.com/connectrpc/connect-es.git",
  8. "directory": "packages/connect-web"
  9. },
  10. "scripts": {
  11. "prebuild": "rm -rf ./dist/*",
  12. "build": "npm run build:cjs && npm run build:esm",
  13. "build:cjs": "tsc --project tsconfig.build.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
  14. "build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm",
  15. "conformance:safari:promise": "connectconformance --mode client --conf conformance/conformance-web.yaml -- tsx conformance/client.ts --browser safari",
  16. "conformance:safari:callback": "connectconformance --mode client --conf conformance/conformance-web.yaml -- tsx conformance/client.ts --browser safari --useCallbackClient",
  17. "conformance:chrome:promise": "connectconformance --mode client --conf conformance/conformance-web.yaml -- tsx conformance/client.ts --browser chrome",
  18. "conformance:chrome:callback": "connectconformance --mode client --conf conformance/conformance-web.yaml -- tsx conformance/client.ts --browser chrome --useCallbackClient",
  19. "conformance:firefox:promise": "connectconformance --mode client --conf conformance/conformance-web.yaml -- tsx conformance/client.ts --browser firefox",
  20. "conformance:firefox:callback": "connectconformance --mode client --conf conformance/conformance-web.yaml -- tsx conformance/client.ts --browser firefox --useCallbackClient",
  21. "conformance:node:promise": "connectconformance --mode client --conf conformance/conformance-web-node.yaml -- tsx conformance/client.ts --browser node",
  22. "conformance:node:callback": "connectconformance --mode client --conf conformance/conformance-web-node.yaml -- tsx conformance/client.ts --browser node --useCallbackClient",
  23. "test": "jasmine --config=jasmine.json",
  24. "generate": "buf generate --template browserstack/buf.gen.yaml",
  25. "postgenerate": "license-header browserstack/gen",
  26. "test-browserstack": "wdio run ./browserstack/wdio.browserstack.conf.js",
  27. "format": "biome format --write",
  28. "license-header": "license-header",
  29. "lint": "biome lint --error-on-warnings",
  30. "attw": "attw --pack"
  31. },
  32. "type": "module",
  33. "sideEffects": false,
  34. "main": "./dist/cjs/index.js",
  35. "exports": {
  36. ".": {
  37. "import": "./dist/esm/index.js",
  38. "require": "./dist/cjs/index.js"
  39. }
  40. },
  41. "devDependencies": {
  42. "@bufbuild/buf": "^1.56.0",
  43. "@bufbuild/protoc-gen-es": "^2.7.0",
  44. "@connectrpc/connect-conformance": "^2.1.0",
  45. "@wdio/jasmine-framework": "^9.19.1",
  46. "@wdio/cli": "^9.19.1",
  47. "@wdio/local-runner": "^9.19.1",
  48. "@wdio/browserstack-service": "^9.19.1",
  49. "jasmine": "^5.9.0",
  50. "webdriverio": "^9.7.2"
  51. },
  52. "peerDependencies": {
  53. "@bufbuild/protobuf": "^2.7.0",
  54. "@connectrpc/connect": "2.1.0"
  55. }
  56. }