package.json 1.8 KB

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