package.json 2.2 KB

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