Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(gh-actions): publish @planetarium/chrono-sdk to jsr #21

Merged
merged 2 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: publish

on:
push:
branches:
- "main"

jobs:
jsr:
uses: planetarium/.github/.github/workflows/publish_jsr.yml@481883a91b93418200c106202255a2f8bb621bc5
with:
working_directory: "packages/chrono-sdk"
4 changes: 2 additions & 2 deletions background/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"test": "jest --coverage --detectOpenHandles"
},
"dependencies": {
"@planetarium/account": "3.9.2",
"@planetarium/account": "^4.4.2",
"@planetarium/bencodex": "0.2.2",
"@planetarium/tx": "3.9.2",
"@planetarium/tx": "^4.4.2",
"axios": "^0.24.0",
"bencodex": "^0.1.1",
"buffer": "^6.0.3",
Expand Down
2 changes: 1 addition & 1 deletion content-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"devDependencies": {
"@planetarium/bencodex": "^0.2.2",
"@planetarium/tx": "^4.3.0",
"@planetarium/tx": "^4.4.2",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/chrome": "^0.0.266",
Expand Down
2 changes: 1 addition & 1 deletion examples/daily-reward-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@apollo/client": "^3.9.11",
"@planetarium/account": "3.9.2",
"@planetarium/account": "^4.4.2",
"@planetarium/bencodex": "^0.2.2",
"@planetarium/chrono-sdk": "workspace:^",
"buffer": "^6.0.3",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "GPL-3.0-only",
"pnpm": {
"patchedDependencies": {
"@planetarium/account@3.9.2": "patches/@planetarium__account@3.9.2.patch"
"@planetarium/account@4.4.2": "patches/@planetarium__account@4.4.2.patch"
}
}
}
674 changes: 674 additions & 0 deletions packages/chrono-sdk/LICENSE

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions packages/chrono-sdk/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@planetarium/chrono-sdk
=======================

A library to provide type definitions for the SDK of Chrono, a Nine Chronicles wallet.
14 changes: 14 additions & 0 deletions packages/chrono-sdk/jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://jsr.io/schema/config-file.v1.json",
"name": "@planetarium/chrono-sdk",
"version": "0.1.0",
"exports": "./src/index.ts",
"publish": {
"include": [
"LICENSE",
"src/**/*.ts",
"README.md",
"jsr.json"
]
}
}
4 changes: 2 additions & 2 deletions packages/chrono-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"typescript": "^5.4.5"
},
"dependencies": {
"@planetarium/account": "3.9.2",
"@planetarium/account": "^4.4.2",
"@planetarium/bencodex": "^0.2.2",
"@planetarium/tx": "^4.4.1",
"@planetarium/tx": "^4.4.2",
"buffer": "^6.0.3"
}
}
12 changes: 6 additions & 6 deletions patches/@[email protected] → patches/@[email protected]
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
diff --git a/dist/index.cjs b/dist/index.cjs
index a0070d52224dcd965d008c99bca0702aa66270f7..adb0cb57ca0c79bdcad4099912d5651840385e70 100644
index a0070d52224dcd965d008c99bca0702aa66270f7..9c5e309e398d0f254fd93611204a87f2fbbfe230 100644
--- a/dist/index.cjs
+++ b/dist/index.cjs
@@ -50,6 +50,9 @@ var __privateMethod = (obj, member, method) => {
return method;
};

+// Manually inserted by moreal
+// Manually edited.
+var Buffer = require("buffer").Buffer;
+
// src/index.ts
var src_exports = {};
__export(src_exports, {
diff --git a/dist/index.js b/dist/index.js
index c9f65fb9735280bf102e5ab82e3c48f41f0884d9..548e6a126f911d8bb4da50edee754fb2e7d8108b 100644
index c9f65fb9735280bf102e5ab82e3c48f41f0884d9..8c961c05e73236b5912636609c565ea3c4b68cee 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -30,6 +30,9 @@ var __privateMethod = (obj, member, method) => {
return method;
};

+// Manually inserted by moreal
+// Manually edited.
+import { Buffer } from "buffer";
+
// src/Account.ts
function isAccount(account) {
return typeof account === "object" && account != null && "getAddress" in account && account.getAddress instanceof Function && "getPublicKey" in account && account.getPublicKey instanceof Function && "sign" in account && account.sign instanceof Function;
diff --git a/package.json b/package.json
index f1c758abbe915fbd8af81fd412d0b71e73e60be5..c099ed19093f814a7a8cdcde4b543f9205446678 100644
index 66a694afd84482a1f228d310c3aac4f7c29a5265..f2736c24fc64ec5c979ef379c143b7833c876b68 100644
--- a/package.json
+++ b/package.json
@@ -46,7 +46,8 @@
Expand All @@ -38,5 +38,5 @@ index f1c758abbe915fbd8af81fd412d0b71e73e60be5..c099ed19093f814a7a8cdcde4b543f92
+ "@noble/secp256k1": "^1.7.1",
+ "buffer": "^6.0.3"
},
"version": "3.9.2"
"version": "4.4.2"
}
57 changes: 23 additions & 34 deletions pnpm-lock.yaml

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