Skip to content

Commit

Permalink
fix: make build package a peer dependency for plugins (#241)
Browse files Browse the repository at this point in the history
Fixes #237
  • Loading branch information
chrispcampbell authored Sep 25, 2022
1 parent 4b5bc75 commit 05ea85f
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 15 deletions.
1 change: 1 addition & 0 deletions examples/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"serve": "sirv ./sde-prep/check-report"
},
"dependencies": {
"@sdeverywhere/build": "^0.2.0",
"@sdeverywhere/cli": "^0.7.0",
"@sdeverywhere/plugin-check": "^0.1.0",
"@sdeverywhere/plugin-wasm": "^0.1.0",
Expand Down
1 change: 1 addition & 0 deletions examples/template-default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"packages/app"
],
"dependencies": {
"@sdeverywhere/build": "^0.2.0",
"@sdeverywhere/check-core": "^0.1.0",
"@sdeverywhere/cli": "^0.7.0",
"@sdeverywhere/plugin-check": "^0.1.0",
Expand Down
1 change: 1 addition & 0 deletions examples/template-minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"dev": "sde dev"
},
"dependencies": {
"@sdeverywhere/build": "^0.2.0",
"@sdeverywhere/check-core": "^0.1.0",
"@sdeverywhere/cli": "^0.7.0",
"@sdeverywhere/plugin-check": "^0.1.0",
Expand Down
5 changes: 4 additions & 1 deletion packages/plugin-check/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"dependencies": {
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-replace": "^2.4.1",
"@sdeverywhere/build": "^0.2.0",
"@sdeverywhere/check-core": "^0.1.0",
"@sdeverywhere/check-ui-shell": "^0.1.1",
"@sdeverywhere/runtime": "^0.1.0",
Expand All @@ -54,7 +53,11 @@
"it as a dependency here."
]
},
"peerDependencies": {
"@sdeverywhere/build": "^0.2.0"
},
"devDependencies": {
"@sdeverywhere/build": "workspace:*",
"@types/node": "^16.11.7"
},
"author": "Climate Interactive",
Expand Down
5 changes: 4 additions & 1 deletion packages/plugin-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@
"ci:build": "run-s clean lint prettier:check test:ci type-check build"
},
"dependencies": {
"@sdeverywhere/build": "^0.2.0",
"byline": "^5.0.0",
"csv-parse": "^4.15.4",
"sanitize-html": "^2.7.1"
},
"peerDependencies": {
"@sdeverywhere/build": "^0.2.0"
},
"devDependencies": {
"@sdeverywhere/build": "workspace:*",
"@types/byline": "^4.2.33",
"@types/dedent": "^0.7.0",
"@types/marked": "^4.0.1",
Expand Down
7 changes: 6 additions & 1 deletion packages/plugin-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@
"ci:build": "run-s clean lint prettier:check test:ci type-check build"
},
"dependencies": {
"@sdeverywhere/build": "^0.2.0",
"vite": "^2.9.12"
},
"peerDependencies": {
"@sdeverywhere/build": "^0.2.0"
},
"devDependencies": {
"@sdeverywhere/build": "workspace:*"
},
"author": "Climate Interactive",
"license": "MIT",
"homepage": "https://sdeverywhere.org",
Expand Down
5 changes: 4 additions & 1 deletion packages/plugin-wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@
"ci:build": "run-s clean lint prettier:check test:ci type-check build"
},
"dependencies": {
"@sdeverywhere/build": "^0.2.0",
"find-up": "^6.3.0"
},
"peerDependencies": {
"@sdeverywhere/build": "^0.2.0"
},
"devDependencies": {
"@sdeverywhere/build": "workspace:*",
"@types/node": "^16.11.7"
},
"author": "Climate Interactive",
Expand Down
5 changes: 4 additions & 1 deletion packages/plugin-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
},
"dependencies": {
"@rollup/plugin-node-resolve": "^13.3.0",
"@sdeverywhere/build": "^0.2.0",
"@sdeverywhere/runtime": "^0.1.0",
"@sdeverywhere/runtime-async": "^0.1.0",
"rollup": "^2.76.0",
Expand All @@ -46,7 +45,11 @@
"it as a dependency here."
]
},
"peerDependencies": {
"@sdeverywhere/build": "^0.2.0"
},
"devDependencies": {
"@sdeverywhere/build": "workspace:*",
"@types/node": "^16.11.7"
},
"author": "Climate Interactive",
Expand Down
23 changes: 13 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 05ea85f

Please sign in to comment.