package.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "name": "@jridgewell/trace-mapping",
  3. "version": "0.3.30",
  4. "description": "Trace the original position through a source map",
  5. "keywords": [
  6. "source",
  7. "map"
  8. ],
  9. "main": "dist/trace-mapping.umd.js",
  10. "module": "dist/trace-mapping.mjs",
  11. "types": "types/trace-mapping.d.cts",
  12. "files": [
  13. "dist",
  14. "src",
  15. "types"
  16. ],
  17. "exports": {
  18. ".": [
  19. {
  20. "import": {
  21. "types": "./types/trace-mapping.d.mts",
  22. "default": "./dist/trace-mapping.mjs"
  23. },
  24. "default": {
  25. "types": "./types/trace-mapping.d.cts",
  26. "default": "./dist/trace-mapping.umd.js"
  27. }
  28. },
  29. "./dist/trace-mapping.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 trace-mapping.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/trace-mapping",
  56. "repository": {
  57. "type": "git",
  58. "url": "git+https://github.com/jridgewell/sourcemaps.git",
  59. "directory": "packages/trace-mapping"
  60. },
  61. "author": "Justin Ridgewell <justin@ridgewell.name>",
  62. "license": "MIT",
  63. "dependencies": {
  64. "@jridgewell/resolve-uri": "^3.1.0",
  65. "@jridgewell/sourcemap-codec": "^1.4.14"
  66. }
  67. }