package.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "name": "magic-string",
  3. "version": "0.30.12",
  4. "packageManager": "pnpm@9.6.0",
  5. "description": "Modify strings, generate sourcemaps",
  6. "keywords": [
  7. "string",
  8. "string manipulation",
  9. "sourcemap",
  10. "templating",
  11. "transpilation"
  12. ],
  13. "repository": "https://github.com/rich-harris/magic-string",
  14. "license": "MIT",
  15. "author": "Rich Harris",
  16. "main": "./dist/magic-string.cjs.js",
  17. "module": "./dist/magic-string.es.mjs",
  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. "scripts": {
  33. "build": "rollup -c",
  34. "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
  35. "format": "prettier --single-quote --print-width 100 --use-tabs --write src/*.js src/**/*.js",
  36. "lint": "eslint src test && publint",
  37. "lint:fix": "eslint src test --fix",
  38. "prepare": "npm run build",
  39. "prepublishOnly": "npm run lint && rm -rf dist && npm test",
  40. "release": "bumpp -x \"npm run changelog\" --all --commit --tag --push && npm publish",
  41. "pretest": "npm run build",
  42. "test": "mocha",
  43. "bench": "npm run build && node benchmark/index.mjs",
  44. "watch": "rollup -cw"
  45. },
  46. "devDependencies": {
  47. "@rollup/plugin-node-resolve": "^15.2.3",
  48. "@rollup/plugin-replace": "^5.0.7",
  49. "benchmark": "^2.1.4",
  50. "bumpp": "^9.4.1",
  51. "conventional-changelog-cli": "^3.0.0",
  52. "eslint": "^8.57.0",
  53. "mocha": "^10.7.0",
  54. "prettier": "^3.3.3",
  55. "publint": "^0.2.9",
  56. "rollup": "^3.29.4",
  57. "source-map-js": "^1.2.0",
  58. "source-map-support": "^0.5.21"
  59. },
  60. "dependencies": {
  61. "@jridgewell/sourcemap-codec": "^1.5.0"
  62. }
  63. }