Skip to content

Commit e7d9f1d

Browse files
committed
chore: use peerDependencies
1 parent 289d963 commit e7d9f1d

File tree

4 files changed

+36
-11
lines changed

4 files changed

+36
-11
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Publish
33
on:
44
push:
55
branches:
6-
- main
7-
- release
6+
- alpha
87
workflow_dispatch:
98

109
concurrency: release
@@ -47,7 +46,7 @@ jobs:
4746
- name: Use Node.js 20.x
4847
uses: actions/setup-node@v3
4948
with:
50-
node-version: 20.x
49+
node-version: 20.x
5150

5251
- name: Download built package
5352
uses: actions/download-artifact@v4

package-lock.json

Lines changed: 19 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,17 @@
6464
"cross-spawn": "^7.0.6"
6565
},
6666
"dependencies": {
67-
"@algorandfoundation/algokit-utils": "7.0.0-alpha.3",
68-
"algosdk": "^2.9.0 || ^3.0.0",
6967
"chalk": "^4.1.2",
7068
"change-case": "^5.4.4",
7169
"commander": "^11.1.0",
7270
"jsonschema": "^1.4.1"
7371
},
72+
"peerDependencies": {
73+
"@algorandfoundation/algokit-utils": "7.0.0-beta.23 || 7.0.0-alpha.3",
74+
"algosdk": "^2.9.0 || ^3.0.0"
75+
},
7476
"devDependencies": {
77+
"@algorandfoundation/algokit-utils": "7.0.0-alpha.3",
7578
"@algorandfoundation/tealscript": "^0.105.4",
7679
"@commitlint/cli": "^18.6.0",
7780
"@commitlint/config-conventional": "^18.6.0",
@@ -114,6 +117,10 @@
114117
},
115118
{
116119
"name": "release"
120+
},
121+
{
122+
"name": "alpha",
123+
"prerelease": "alpha"
117124
}
118125
],
119126
"plugins": [

rollup.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ const config: RollupOptions = {
2727
moduleSideEffects: false,
2828
propertyReadSideEffects: false,
2929
},
30-
external: [...Object.keys(pkg.dependencies), /^@algorandfoundation\/algokit-utils\/types\/*/, /^algosdk\/*/],
30+
external: [
31+
...Object.keys(pkg.dependencies),
32+
...Object.keys(pkg.peerDependencies),
33+
/^@algorandfoundation\/algokit-utils\/types\/*/,
34+
/^algosdk\/*/,
35+
],
3136
plugins: [
3237
typescript({
3338
tsconfig: 'tsconfig.build.json',

0 commit comments

Comments
 (0)