package.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "name": "@jridgewell/sourcemap-codec",
  3. "version": "1.5.4",
  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. "require": {
  25. "types": "./types/sourcemap-codec.d.cts",
  26. "default": "./dist/sourcemap-codec.umd.js"
  27. },
  28. "browser": {
  29. "types": "./types/sourcemap-codec.d.cts",
  30. "default": "./dist/sourcemap-codec.umd.js"
  31. }
  32. },
  33. "./dist/sourcemap-codec.umd.js"
  34. ],
  35. "./package.json": "./package.json"
  36. },
  37. "scripts": {
  38. "benchmark": "run-s build:code benchmark:*",
  39. "benchmark:install": "cd benchmark && npm install",
  40. "benchmark:only": "node --expose-gc benchmark/index.js",
  41. "build": "run-s -n build:code build:types",
  42. "build:code": "node ../../esbuild.mjs sourcemap-codec.ts",
  43. "build:types": "run-s build:types:force build:types:emit build:types:mts",
  44. "build:types:force": "rimraf tsconfig.build.tsbuildinfo",
  45. "build:types:emit": "tsc --project tsconfig.build.json",
  46. "build:types:mts": "node ../../mts-types.mjs",
  47. "clean": "run-s -n clean:code clean:types",
  48. "clean:code": "tsc --build --clean tsconfig.build.json",
  49. "clean:types": "rimraf dist types",
  50. "test": "run-s -n test:types test:only test:format",
  51. "test:format": "prettier --check '{src,test}/**/*.ts'",
  52. "test:only": "mocha",
  53. "test:types": "eslint '{src,test}/**/*.ts'",
  54. "lint": "run-s -n lint:types lint:format",
  55. "lint:format": "npm run test:format -- --write",
  56. "lint:types": "npm run test:types -- --fix",
  57. "prepublishOnly": "npm run-s -n build test"
  58. },
  59. "homepage": "https://github.com/jridgewell/sourcemaps/tree/main/packages/sourcemap-codec",
  60. "repository": {
  61. "type": "git",
  62. "url": "git+https://github.com/jridgewell/sourcemaps.git",
  63. "directory": "packages/sourcemap-codec"
  64. },
  65. "author": "Justin Ridgewell <justin@ridgewell.name>",
  66. "license": "MIT"
  67. }