package.json 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "name": "@jridgewell/gen-mapping",
  3. "version": "0.3.12",
  4. "description": "Generate source maps",
  5. "keywords": [
  6. "source",
  7. "map"
  8. ],
  9. "main": "dist/gen-mapping.umd.js",
  10. "module": "dist/gen-mapping.mjs",
  11. "types": "types/gen-mapping.d.cts",
  12. "files": [
  13. "dist",
  14. "src",
  15. "types"
  16. ],
  17. "exports": {
  18. ".": [
  19. {
  20. "import": {
  21. "types": "./types/gen-mapping.d.mts",
  22. "default": "./dist/gen-mapping.mjs"
  23. },
  24. "require": {
  25. "types": "./types/gen-mapping.d.cts",
  26. "default": "./dist/gen-mapping.umd.js"
  27. },
  28. "browser": {
  29. "types": "./types/gen-mapping.d.cts",
  30. "default": "./dist/gen-mapping.umd.js"
  31. }
  32. },
  33. "./dist/gen-mapping.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 gen-mapping.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/gen-mapping",
  60. "repository": {
  61. "type": "git",
  62. "url": "git+https://github.com/jridgewell/sourcemaps.git",
  63. "directory": "packages/gen-mapping"
  64. },
  65. "author": "Justin Ridgewell <justin@ridgewell.name>",
  66. "license": "MIT",
  67. "dependencies": {
  68. "@jridgewell/sourcemap-codec": "^1.5.0",
  69. "@jridgewell/trace-mapping": "^0.3.24"
  70. }
  71. }