Skip to content

Commit

Permalink
Make morphdom a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoroth committed Feb 12, 2023
1 parent 8765c5c commit 22efa92
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@
"typescript": "^3.9.7",
"vitest": "^0.18.1"
},
"dependencies": {
"morphdom": ">= 2.6, < 2.7"
},
"peerDependencies": {
"@hotwired/turbo": ">= 7.2",
"morphdom": ">= 2.6"
"@hotwired/turbo": ">= 7.2"
}
}
6 changes: 4 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export default [
{
input: 'src/index.ts',
external: [
'@hotwired/turbo'
'@hotwired/turbo',
'morphdom'
],
output: [
{
Expand All @@ -18,7 +19,8 @@ export default [
format: 'umd',
banner,
globals: {
'@hotwired/turbo': 'Turbo'
'@hotwired/turbo': 'Turbo',
'morphdom': 'morphdom'
}
},
{
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1204,10 +1204,10 @@ mkdirp@^1.0.3, mkdirp@^1.0.4:
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e"
integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==

morphdom@^2.6.1:
version "2.6.1"
resolved "https://registry.yarnpkg.com/morphdom/-/morphdom-2.6.1.tgz#e868e24f989fa3183004b159aed643e628b4306e"
integrity sha512-Y8YRbAEP3eKykroIBWrjcfMw7mmwJfjhqdpSvoqinu8Y702nAwikpXcNFDiIkyvfCLxLM9Wu95RZqo4a9jFBaA==
"morphdom@>= 2.6, < 2.7":
version "2.6.2"
resolved "https://registry.yarnpkg.com/morphdom/-/morphdom-2.6.2.tgz#fdb75032af7421c0b3115899cdee96a031b6b673"
integrity sha512-4RYdPa8ZUIdxiUsSrv6J1Ll+eF+lUt4K8+GGylRgMnwRMkJVexGR9HuVoI9D+1In2+Qn8IsRmY65xXNRnt9JOQ==

[email protected]:
version "2.1.2"
Expand Down

0 comments on commit 22efa92

Please sign in to comment.