package.json 1.8 KB

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