package.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "name": "magic-string",
  3. "version": "0.30.17",
  4. "description": "Modify strings, generate sourcemaps",
  5. "keywords": [
  6. "string",
  7. "string manipulation",
  8. "sourcemap",
  9. "templating",
  10. "transpilation"
  11. ],
  12. "repository": "https://github.com/rich-harris/magic-string",
  13. "license": "MIT",
  14. "author": "Rich Harris",
  15. "main": "./dist/magic-string.cjs.js",
  16. "module": "./dist/magic-string.es.mjs",
  17. "sideEffects": false,
  18. "jsnext:main": "./dist/magic-string.es.mjs",
  19. "types": "./dist/magic-string.cjs.d.ts",
  20. "exports": {
  21. "./package.json": "./package.json",
  22. ".": {
  23. "import": "./dist/magic-string.es.mjs",
  24. "require": "./dist/magic-string.cjs.js"
  25. }
  26. },
  27. "files": [
  28. "dist/*",
  29. "index.d.ts",
  30. "README.md"
  31. ],
  32. "devDependencies": {
  33. "@eslint/js": "^9.16.0",
  34. "@rollup/plugin-node-resolve": "^15.3.0",
  35. "@rollup/plugin-replace": "^5.0.7",
  36. "benchmark": "^2.1.4",
  37. "bumpp": "^9.9.1",
  38. "conventional-changelog-cli": "^3.0.0",
  39. "eslint": "^9.16.0",
  40. "prettier": "^3.4.2",
  41. "publint": "^0.2.12",
  42. "rollup": "^3.29.5",
  43. "source-map-js": "^1.2.1",
  44. "source-map-support": "^0.5.21",
  45. "vitest": "^2.1.8"
  46. },
  47. "dependencies": {
  48. "@jridgewell/sourcemap-codec": "^1.5.0"
  49. },
  50. "scripts": {
  51. "build": "rollup -c",
  52. "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
  53. "format": "prettier --single-quote --print-width 100 --use-tabs --write .",
  54. "lint": "eslint src test && publint",
  55. "lint:fix": "eslint src test --fix",
  56. "release": "bumpp -x \"npm run changelog\" --all --commit --tag --push && npm publish",
  57. "pretest": "npm run build",
  58. "test": "vitest run",
  59. "test:dev": "vitest",
  60. "bench": "npm run build && node benchmark/index.mjs",
  61. "watch": "rollup -cw"
  62. }
  63. }