package.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {
  2. "name": "magic-string",
  3. "version": "0.30.15",
  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. "sideEffects": false,
  19. "jsnext:main": "./dist/magic-string.es.mjs",
  20. "types": "./dist/magic-string.cjs.d.ts",
  21. "exports": {
  22. "./package.json": "./package.json",
  23. ".": {
  24. "import": "./dist/magic-string.es.mjs",
  25. "require": "./dist/magic-string.cjs.js"
  26. }
  27. },
  28. "files": [
  29. "dist/*",
  30. "index.d.ts",
  31. "README.md"
  32. ],
  33. "scripts": {
  34. "build": "rollup -c",
  35. "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
  36. "format": "prettier --single-quote --print-width 100 --use-tabs --write src/*.js src/**/*.js",
  37. "lint": "eslint src test && publint",
  38. "lint:fix": "eslint src test --fix",
  39. "prepare": "npm run build",
  40. "prepublishOnly": "npm run lint && rm -rf dist && npm test",
  41. "release": "bumpp -x \"npm run changelog\" --all --commit --tag --push && npm publish",
  42. "pretest": "npm run build",
  43. "test": "mocha",
  44. "bench": "npm run build && node benchmark/index.mjs",
  45. "watch": "rollup -cw"
  46. },
  47. "devDependencies": {
  48. "@rollup/plugin-node-resolve": "^15.2.3",
  49. "@rollup/plugin-replace": "^5.0.7",
  50. "benchmark": "^2.1.4",
  51. "bumpp": "^9.4.1",
  52. "conventional-changelog-cli": "^3.0.0",
  53. "eslint": "^8.57.0",
  54. "mocha": "^10.7.0",
  55. "prettier": "^3.3.3",
  56. "publint": "^0.2.9",
  57. "rollup": "^3.29.4",
  58. "source-map-js": "^1.2.0",
  59. "source-map-support": "^0.5.21"
  60. },
  61. "dependencies": {
  62. "@jridgewell/sourcemap-codec": "^1.5.0"
  63. }
  64. }