Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/fleet-sdk/fleet
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierryM1212 committed Dec 8, 2023
2 parents 41d68e1 + 9f02ca0 commit 9613f03
Show file tree
Hide file tree
Showing 13 changed files with 145 additions and 55 deletions.
14 changes: 14 additions & 0 deletions .changeset/hungry-dodos-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@fleet-sdk/blockchain-providers": patch
"@fleet-sdk/mock-chain": patch
"@fleet-sdk/serializer": patch
"@fleet-sdk/babel-fees-plugin": patch
"@fleet-sdk/compiler": patch
"@fleet-sdk/common": patch
"@fleet-sdk/crypto": patch
"@fleet-sdk/wallet": patch
"@fleet-sdk/ageusd-plugin": patch
"@fleet-sdk/core": patch
---

Fix ESM and CJS modules export
6 changes: 6 additions & 0 deletions packages/blockchain-providers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @fleet-sdk/blockchain-providers

## 0.3.3

### Patch Changes

- 227c888: Fix type exporting

## 0.3.2

### Patch Changes
Expand Down
20 changes: 14 additions & 6 deletions packages/blockchain-providers/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
{
"name": "@fleet-sdk/blockchain-providers",
"version": "0.3.2",
"version": "0.3.3",
"description": "Blockchain data providers",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"require": "./dist/index.cjs.js",
"import": "./dist/index.esm.js"
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"sideEffects": true,
"sideEffects": false,
"repository": "fleet-sdk/fleet",
"license": "MIT",
"publishConfig": {
Expand Down
19 changes: 13 additions & 6 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@
"name": "@fleet-sdk/common",
"version": "0.3.2",
"description": "Internal utility functions, constants and types shared across @fleet-sdk packages.",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs.js",
"import": "./dist/index.esm.js"
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"sideEffects": true,
"sideEffects": false,
"repository": "fleet-sdk/fleet",
"license": "MIT",
"publishConfig": {
Expand Down
17 changes: 12 additions & 5 deletions packages/compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@
"name": "@fleet-sdk/compiler",
"version": "0.3.2",
"description": "Sigma.JS powered ErgoScript compiler.",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs.js",
"import": "./dist/index.esm.js"
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"sideEffects": false,
"repository": "fleet-sdk/fleet",
Expand Down
17 changes: 12 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@
"name": "@fleet-sdk/core",
"version": "0.3.2",
"description": "Fleet SDK core library",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs.js",
"import": "./dist/index.esm.js"
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"sideEffects": false,
"repository": "fleet-sdk/fleet",
Expand Down
19 changes: 13 additions & 6 deletions packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@
"name": "@fleet-sdk/crypto",
"version": "0.3.2",
"description": "Ergo blockchain crypto primitives.",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs.js",
"import": "./dist/index.esm.js"
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"sideEffects": true,
"sideEffects": false,
"repository": "fleet-sdk/fleet",
"license": "MIT",
"publishConfig": {
Expand Down
17 changes: 12 additions & 5 deletions packages/mock-chain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@
"name": "@fleet-sdk/mock-chain",
"version": "0.3.2",
"description": "Mock chain for Ergo Smart Contracts testing.",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs.js",
"import": "./dist/index.esm.js"
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"sideEffects": false,
"repository": "fleet-sdk/fleet",
Expand Down
17 changes: 12 additions & 5 deletions packages/serializer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@
"name": "@fleet-sdk/serializer",
"version": "0.3.2",
"description": "Ergo constant serializer and parser.",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs.js",
"import": "./dist/index.esm.js"
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"sideEffects": false,
"repository": "fleet-sdk/fleet",
Expand Down
17 changes: 12 additions & 5 deletions packages/wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@
"name": "@fleet-sdk/wallet",
"version": "0.3.2",
"description": "Key management and signature for Ergo Platform.",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs.js",
"import": "./dist/index.esm.js"
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"sideEffects": false,
"repository": "fleet-sdk/fleet",
Expand Down
16 changes: 12 additions & 4 deletions plugins/ageusd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
"name": "@fleet-sdk/ageusd-plugin",
"version": "0.1.6",
"description": "AgeUSD protocol plugin for Fleet SDK.",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"require": "./dist/index.cjs.js",
"import": "./dist/index.esm.js"
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"sideEffects": false,
"repository": "fleet-sdk/fleet",
Expand Down
16 changes: 12 additions & 4 deletions plugins/babel-fees/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
"name": "@fleet-sdk/babel-fees-plugin",
"version": "0.1.9",
"description": "Babel Fees plugin for Fleet SDK.",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"require": "./dist/index.cjs.js",
"import": "./dist/index.esm.js"
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"sideEffects": false,
"repository": "fleet-sdk/fleet",
Expand Down
5 changes: 1 addition & 4 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@ export default defineConfig({
sourcemap: true,
clean: true,
dts: { resolve: true },
format: ["esm", "cjs"],
outExtension({ format }) {
return { js: `.${format}.js` };
}
format: ["esm", "cjs"]
});

0 comments on commit 9613f03

Please sign in to comment.