Skip to content

Commit

Permalink
feat: distribute as esm and cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermendes committed Nov 12, 2024
1 parent 3dc42a7 commit 5fb8ed4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@
"name": "@aurora-is-near/staking",
"version": "1.4.0",
"description": "Contains logic for staking and unstaking Aurora",
"main": "dist/index.js",
"author": "Alex Mendes",
"license": "UNLICENSED",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"scripts": {
"lint": "eslint . --ext .js,.ts",
"test": "jest",
"typecheck": "tsc --noEmit",
"clean": "rimraf dist",
"prebuild": "yarn clean",
"build": "tsc"
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
"build:esm": "tsc --module esnext --outDir dist/esm",
"build": "yarn build:cjs && yarn build:esm"
},
"engines": {
"node": ">=20.9.0"
Expand Down

0 comments on commit 5fb8ed4

Please sign in to comment.