package.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "name": "babel-plugin-dynamic-import-node",
  3. "version": "2.2.0",
  4. "description": "Babel plugin to transpile import() to a deferred require(), for node",
  5. "main": "lib/index.js",
  6. "directories": {
  7. "test": "test"
  8. },
  9. "scripts": {
  10. "clean": "rimraf lib",
  11. "prebuild": "npm run clean",
  12. "build": "babel src --out-dir lib",
  13. "pretest": "npm run lint",
  14. "test": "npm run tests-only",
  15. "tests-only": "tape --require airbnb-js-shims --require babel-register test",
  16. "lint": "eslint .",
  17. "prepublish": "not-in-publish || (safe-publish-latest && npm run build)",
  18. "check-changelog": "expr $(git status --porcelain 2>/dev/null| grep \"^\\s*M.*CHANGELOG.md\" | wc -l) >/dev/null || (echo 'Please edit CHANGELOG.md' && exit 1)",
  19. "check-only-changelog-changed": "(expr $(git status --porcelain 2>/dev/null| grep -v \"CHANGELOG.md\" | wc -l) >/dev/null && echo 'Only CHANGELOG.md may have uncommitted changes' && exit 1) || exit 0",
  20. "version:major": "npm --no-git-tag-version version major",
  21. "version:minor": "npm --no-git-tag-version version minor",
  22. "version:patch": "npm --no-git-tag-version version patch",
  23. "postversion": "git commit package.json CHANGELOG.md -m \"v$npm_package_version\" && npm run tag && git push && git push --tags",
  24. "preversion": "npm run test && npm run check-changelog && npm run check-only-changelog-changed",
  25. "tag": "git tag v$npm_package_version"
  26. },
  27. "repository": {
  28. "type": "git",
  29. "url": "git+https://github.com/airbnb/babel-plugin-dynamic-import-node.git"
  30. },
  31. "keywords": [
  32. "babel",
  33. "plugin",
  34. "dynamic",
  35. "import",
  36. "node"
  37. ],
  38. "author": "Jordan Gensler <jordan.gensler@airbnb.com>",
  39. "license": "MIT",
  40. "bugs": {
  41. "url": "https://github.com/airbnb/babel-plugin-dynamic-import-node/issues"
  42. },
  43. "homepage": "https://github.com/airbnb/babel-plugin-dynamic-import-node#readme",
  44. "devDependencies": {
  45. "airbnb-js-shims": "^2.1.1",
  46. "babel-cli": "^6.26.0",
  47. "babel-core": "^6.26.3",
  48. "babel-eslint": "^9.0.0",
  49. "babel-plugin-add-module-exports": "^0.2.1",
  50. "babel-plugin-transform-es2015-template-literals": "^6.22.0",
  51. "babel-plugin-transform-replace-object-assign": "^1.0.0",
  52. "babel-preset-airbnb": "^2.6.0",
  53. "babel-preset-es2015": "^6.24.1",
  54. "babel-register": "^6.26.0",
  55. "eslint": "^5.6.1",
  56. "eslint-config-airbnb-base": "^13.1.0",
  57. "eslint-plugin-import": "^2.14.0",
  58. "in-publish": "^2.0.0",
  59. "rimraf": "^2.6.2",
  60. "safe-publish-latest": "^1.1.2",
  61. "tape": "^4.9.1"
  62. },
  63. "dependencies": {
  64. "object.assign": "^4.1.0"
  65. }
  66. }