package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "name": "@jridgewell/sourcemap-codec",
  3. "version": "1.5.5",
  4. "description": "Encode/decode sourcemap mappings",
  5. "keywords": [
  6. "sourcemap",
  7. "vlq"
  8. ],
  9. "main": "dist/sourcemap-codec.umd.js",
  10. "module": "dist/sourcemap-codec.mjs",
  11. "types": "types/sourcemap-codec.d.cts",
  12. "files": [
  13. "dist",
  14. "src",
  15. "types"
  16. ],
  17. "exports": {
  18. ".": [
  19. {
  20. "import": {
  21. "types": "./types/sourcemap-codec.d.mts",
  22. "default": "./dist/sourcemap-codec.mjs"
  23. },
  24. "default": {
  25. "types": "./types/sourcemap-codec.d.cts",
  26. "default": "./dist/sourcemap-codec.umd.js"
  27. }
  28. },
  29. "./dist/sourcemap-codec.umd.js"
  30. ],
  31. "./package.json": "./package.json"
  32. },
  33. "scripts": {
  34. "benchmark": "run-s build:code benchmark:*",
  35. "benchmark:install": "cd benchmark && npm install",
  36. "benchmark:only": "node --expose-gc benchmark/index.js",
  37. "build": "run-s -n build:code build:types",
  38. "build:code": "node ../../esbuild.mjs sourcemap-codec.ts",
  39. "build:types": "run-s build:types:force build:types:emit build:types:mts",
  40. "build:types:force": "rimraf tsconfig.build.tsbuildinfo",
  41. "build:types:emit": "tsc --project tsconfig.build.json",
  42. "build:types:mts": "node ../../mts-types.mjs",
  43. "clean": "run-s -n clean:code clean:types",
  44. "clean:code": "tsc --build --clean tsconfig.build.json",
  45. "clean:types": "rimraf dist types",
  46. "test": "run-s -n test:types test:only test:format",
  47. "test:format": "prettier --check '{src,test}/**/*.ts'",
  48. "test:only": "mocha",
  49. "test:types": "eslint '{src,test}/**/*.ts'",
  50. "lint": "run-s -n lint:types lint:format",
  51. "lint:format": "npm run test:format -- --write",
  52. "lint:types": "npm run test:types -- --fix",
  53. "prepublishOnly": "npm run-s -n build test"
  54. },
  55. "homepage": "https://github.com/jridgewell/sourcemaps/tree/main/packages/sourcemap-codec",
  56. "repository": {
  57. "type": "git",
  58. "url": "git+https://github.com/jridgewell/sourcemaps.git",
  59. "directory": "packages/sourcemap-codec"
  60. },
  61. "author": "Justin Ridgewell <justin@ridgewell.name>",
  62. "license": "MIT"
  63. }