diff --git a/README.md b/README.md index 4b97fed..400e2db 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ You may wish to consider using this with [dApp toolkit](https://github.com/radix - [Build transaction manifest](#build-transaction-manifest) - [sendTransaction](#sendtransaction) - [Errors](#errors) +- [License](#license) # Installation @@ -670,3 +671,7 @@ const transactionIntentHash = result.value.transactionIntentHash | submittedTransactionWasDuplicate | App submitted a transaction and got informed by Gateway it was duplicated | "TXID: " | | submittedTransactionHasFailedTransactionStatus | App submitted a transaction to Gateway and polled transaction status telling app it was a failed transaction | "TXID: " | | submittedTransactionHasRejectedTransactionStatus | App submitted a transaction to Gateway and polled transaction status telling app it was a rejected transaction | "TXID: " | + +# License + +The Wallet SDK code is released under [Apache 2.0 license](LICENSE). Binaries are licensed under the [Radix Software EULA](http://www.radixdlt.com/terms/genericEULA) \ No newline at end of file diff --git a/commitlint.config.js b/commitlint.config.js index 4fedde6..052f89f 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1 +1,23 @@ -module.exports = { extends: ['@commitlint/config-conventional'] } +module.exports = { + extends: ['@commitlint/config-conventional'], + rules: { + 'type-enum': () => [ + 2, + 'always', + [ + 'build', + 'chore', + 'ci', + 'docs', + 'feat', + 'fix', + 'perf', + 'refactor', + 'revert', + 'style', + 'test', + 'major', + ], + ], + }, +} diff --git a/package.json b/package.json index e626c92..6e92940 100644 --- a/package.json +++ b/package.json @@ -25,12 +25,17 @@ "files": [ "dist" ], - "main": "./dist/wallet-sdk.umd.js", - "module": "./dist/wallet-sdk.mjs", + "main": "./dist/wallet-sdk.mjs", "exports": { ".": { - "import": "./dist/wallet-sdk.mjs", - "require": "./dist/wallet-sdk.umd.js" + "import": { + "types": "./dist/wallet-sdk.d.ts", + "default": "./dist/wallet-sdk.mjs" + }, + "require": { + "types": "./dist/wallet-sdk.d.ts", + "default": "./dist/wallet-sdk.umd.js" + } } }, "types": "./dist/wallet-sdk.d.ts", diff --git a/release.config.js b/release.config.js index d8faa4c..3c169d8 100644 --- a/release.config.js +++ b/release.config.js @@ -19,6 +19,10 @@ module.exports = { { preset: 'conventionalcommits', releaseRules: [ + { + type: 'major', + release: 'major', + }, { type: 'refactor', release: 'patch', @@ -74,6 +78,10 @@ module.exports = { }, presetConfig: { types: [ + { + type: 'major', + release: 'major', + }, { type: 'feat', section: ':sparkles: Features',