Skip to content

Commit

Permalink
chore: update cryptography to use rollup
Browse files Browse the repository at this point in the history
Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
  • Loading branch information
ivaylonikolov7 committed Feb 20, 2025
1 parent be665e3 commit 3c151da
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/cryptography/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ tasks:
- task: format
- task: lint
- npx babel src -d lib --out-file-extension .cjs > /dev/null
- npx rollup -c > /dev/null
- npx yalc publish > /dev/null

clean:
Expand Down
3 changes: 2 additions & 1 deletion packages/cryptography/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"import": "./src/index.js",
"import": "./lib/index.js",
"require": "./lib/index.cjs"
}
},
Expand All @@ -41,6 +41,7 @@
"repository": "https://github.com/hashgraph/hedera-sdk-js",
"bugs": "https://github.com/hashgraph/hedera-sdk-js/issues",
"type": "module",
"sideEffects": false,
"keywords": [
"hedera",
"hashgraph",
Expand Down
14 changes: 14 additions & 0 deletions packages/cryptography/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import terser from "@rollup/plugin-terser";

export default [
{
input: "src/index.js",
output: {
dir: "lib/",
format: "esm",
sourcemap: true,
preserveModules: true,
plugins: [terser()],
},
},
];

0 comments on commit 3c151da

Please sign in to comment.