package.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "name": "magic-string",
  3. "version": "0.30.0",
  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. "jsnext:main": "./dist/magic-string.es.mjs",
  18. "types": "./index.d.ts",
  19. "exports": {
  20. "./package.json": "./package.json",
  21. ".": {
  22. "types": "./index.d.ts",
  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. "prepare": "npm run build",
  38. "prepublishOnly": "npm run lint && rm -rf dist && npm test",
  39. "release": "bumpp -x \"npm run changelog\" --all --commit --tag --push && npm publish",
  40. "pretest": "npm run build",
  41. "test": "mocha",
  42. "bench": "npm run build && node benchmark/index.mjs",
  43. "watch": "rollup -cw"
  44. },
  45. "devDependencies": {
  46. "@rollup/plugin-node-resolve": "^14.1.0",
  47. "@rollup/plugin-replace": "^4.0.0",
  48. "benchmark": "^2.1.4",
  49. "bumpp": "^8.2.1",
  50. "conventional-changelog-cli": "^2.2.2",
  51. "eslint": "^8.23.1",
  52. "mocha": "^10.0.0",
  53. "prettier": "^2.7.1",
  54. "publint": "^0.1.7",
  55. "rollup": "^2.79.1",
  56. "source-map-js": "^1.0.2",
  57. "source-map-support": "^0.5.21"
  58. },
  59. "engines": {
  60. "node": ">=12"
  61. },
  62. "dependencies": {
  63. "@jridgewell/sourcemap-codec": "^1.4.13"
  64. }
  65. }