-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README and build process (#83)
update readme
- Loading branch information
Showing
3 changed files
with
106 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +0,0 @@ | ||
.aptos/ | ||
.env/ | ||
dist/ | ||
coverage/ | ||
examples/ | ||
node_modules/ | ||
src/types/generated/types.ts | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,34 @@ | ||
{ | ||
"name": "@aptos-labs/ts-sdk", | ||
"description": "Aptos SDK", | ||
"description": "Aptos TypeScript SDK", | ||
"packageManager": "[email protected]", | ||
"license": "Apache-2.0", | ||
"engines": { | ||
"node": ">=11.0.0" | ||
}, | ||
"main": "dist/node/index.js", | ||
"module": "dist/node/index.mjs", | ||
"bugs": { | ||
"url": "https://github.com/aptos-labs/aptos-ts-sdk/issues/new/choose" | ||
}, | ||
"homepage": "https://aptos-labs.github.io/aptos-ts-sdk/", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.mjs", | ||
"exports": { | ||
".": { | ||
"import": "./dist/node/index.mjs", | ||
"require": "./dist/node/index.js", | ||
"import": "./dist/esm/index.mjs", | ||
"require": "./dist/cjs/index.js", | ||
"types": "./dist/types/index.d.ts" | ||
} | ||
}, | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"scripts": { | ||
"build:clean": "rm -rf dist", | ||
"build": "pnpm build:clean && pnpm run _build:types && pnpm _build:node && pnpm _build:browser", | ||
"build": "pnpm build:clean && pnpm run _build:types && pnpm _build:esm && pnpm _build:cjs && pnpm _build:browser", | ||
"_build:browser": "tsup src/index.ts --platform browser --format iife --global-name aptosSDK --minify --out-dir dist/browser", | ||
"_build:node": "tsup src/index.ts --platform node --format esm,cjs --dts --out-dir dist/node", | ||
"_build:esm": "tsup src/index.ts --platform node --format esm --dts --out-dir dist/esm", | ||
"_build:cjs": "tsup src/index.ts --platform node --format cjs --dts --out-dir dist/cjs", | ||
"_build:types": "tsup src/types/index.ts --dts --out-dir dist/types", | ||
"_fmt": "prettier 'src/**/*.ts' 'tests/**/*.ts' 'examples/**/*.js' 'examples/**/*.ts' '.eslintrc.js'", | ||
"fmt": "pnpm _fmt --write", | ||
|