Skip to content

Commit

Permalink
fix bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Nov 8, 2022
1 parent 0c3d61b commit a9c7393
Show file tree
Hide file tree
Showing 17 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
@@ -1,5 +1,5 @@
# Masa SDK
- v0.3.3 / [Exports](modules.md)
- v0.3.4 / [Exports](modules.md)

---

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/ContractService.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.3.3](../README.md) / [Exports](../modules.md) / ContractService
- v0.3.4](../README.md) / [Exports](../modules.md) / ContractService

# Class: ContractService

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/Masa.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.3.3](../README.md) / [Exports](../modules.md) / Masa
- v0.3.4](../README.md) / [Exports](../modules.md) / Masa

# Class: Masa

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/MasaClient.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.3.3](../README.md) / [Exports](../modules.md) / MasaClient
- v0.3.4](../README.md) / [Exports](../modules.md) / MasaClient

# Class: MasaClient

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/Addresses.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.3.3](../README.md) / [Exports](../modules.md) / Addresses
- v0.3.4](../README.md) / [Exports](../modules.md) / Addresses

# Interface: Addresses

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/Attribute.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.3.3](../README.md) / [Exports](../modules.md) / Attribute
- v0.3.4](../README.md) / [Exports](../modules.md) / Attribute

# Interface: Attribute

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/I2fa.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.3.3](../README.md) / [Exports](../modules.md) / I2FA
- v0.3.4](../README.md) / [Exports](../modules.md) / I2FA

# Interface: I2FA

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/ICreditReport.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.3.3](../README.md) / [Exports](../modules.md) / ICreditReport
- v0.3.4](../README.md) / [Exports](../modules.md) / ICreditReport

# Interface: ICreditReport

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/IIdentity.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.3.3](../README.md) / [Exports](../modules.md) / IIdentity
- v0.3.4](../README.md) / [Exports](../modules.md) / IIdentity

# Interface: IIdentity

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/IIdentityContracts.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.3.3](../README.md) / [Exports](../modules.md) / IIdentityContracts
- v0.3.4](../README.md) / [Exports](../modules.md) / IIdentityContracts

# Interface: IIdentityContracts

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/ISoulName.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.3.3](../README.md) / [Exports](../modules.md) / ISoulName
- v0.3.4](../README.md) / [Exports](../modules.md) / ISoulName

# Interface: ISoulName

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/LoadContractArgs.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.3.3](../README.md) / [Exports](../modules.md) / LoadContractArgs
- v0.3.4](../README.md) / [Exports](../modules.md) / LoadContractArgs

# Interface: LoadContractArgs

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/MasaArgs.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.3.3](../README.md) / [Exports](../modules.md) / MasaArgs
- v0.3.4](../README.md) / [Exports](../modules.md) / MasaArgs

# Interface: MasaArgs

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/MasaConfig.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.3.3](../README.md) / [Exports](../modules.md) / MasaConfig
- v0.3.4](../README.md) / [Exports](../modules.md) / MasaConfig

# Interface: MasaConfig

Expand Down
4 changes: 2 additions & 2 deletions docs/modules.md
@@ -1,8 +1,8 @@
[# Masa SDK
- v0.3.3](README.md) / Exports
- v0.3.4](README.md) / Exports

# # Masa SDK
- v0.3.3
- v0.3.4

## Table of contents

Expand Down
11 changes: 7 additions & 4 deletions package.json
Expand Up @@ -2,7 +2,7 @@
"name": "@masa-finance/masa-sdk",
"version": "0.3.4",
"description": "Brand new masa SDK",
"main": "dist/src/index.js",
"main": "dist/lib/masa-sdk.cjs.js",
"types": "dist/src/index.d.ts",
"module": "dist/lib/masa-sdk.esm.js",
"files": [
Expand All @@ -12,9 +12,12 @@
"test": "echo \"Error: no test specified\" && exit 1",
"start": "tsc --watch",
"compile": "tsc",
"build": "yarn compile && yarn bundle && yarn bundle:minify",
"bundle": "esbuild ./src/index.ts --bundle --platform=browser --outfile=./dist/lib/masa-sdk.esm.js",
"bundle:minify": "yarn bundle --minify --sourcemap --outfile=./dist/lib/masa-sdk.esm.min.js",
"build": "yarn compile && yarn bundle",
"bundle": "yarn bundle:cjs && yarn bundle:cjs:minify && yarn bundle:esm && yarn bundle:esm:minify",
"bundle:cjs": "esbuild ./src/index.ts --bundle --platform=node --outfile=./dist/lib/masa-sdk.cjs.js",
"bundle:cjs:minify": "yarn bundle:cjs --minify --sourcemap --outfile=./dist/lib/masa-sdk.cjs.min.js",
"bundle:esm": "esbuild ./src/index.ts --bundle --platform=browser --outfile=./dist/lib/masa-sdk.esm.js",
"bundle:esm:minify": "yarn bundle:esm --minify --sourcemap --outfile=./dist/lib/masa-sdk.esm.min.js",
"prettier": "prettier ./src --write",
"lint": "eslint ./src",
"doc": "typedoc",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Expand Up @@ -49,7 +49,7 @@

/* Emit */
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
"declarationMap": true, /* Create sourcemaps for d.ts files. */
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
Expand Down

0 comments on commit a9c7393

Please sign in to comment.