-
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.
- Loading branch information
Philip Diaz
committed
Aug 4, 2020
1 parent
64bb0da
commit 2955830
Showing
4 changed files
with
20 additions
and
9 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 |
---|---|---|
|
@@ -2,9 +2,10 @@ | |
"name": "@airgap/beacon-sdk", | ||
"version": "1.1.0", | ||
"description": "The beacon-sdk allows you to easily connect DApps with Wallets through P2P communication or a chrome extension.", | ||
"main": "dist/index.js", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"unpkg": "dist/beacon.min.js", | ||
"types": "dist/index.d.ts", | ||
"types": "dist/cjs/index.d.ts", | ||
"keywords": [ | ||
"airgap", | ||
"beacon", | ||
|
@@ -22,8 +23,8 @@ | |
"url": "https://github.com/airgap-it/beacon-sdk" | ||
}, | ||
"scripts": { | ||
"build": "tsc && npm run browserify", | ||
"browserify": "browserify ./dist/index.js -s beacon | uglifyjs > ./dist/beacon.min.js", | ||
"build": "tsc -p tsconfig.json && tsc -p ./tsconfig-cjs.json && npm run browserify", | ||
"browserify": "browserify ./dist/cjs/index.js -s beacon | uglifyjs > ./dist/beacon.min.js", | ||
"prettier": "prettier --write 'src/**/*' 'docs/**/*.md'", | ||
"lint": "eslint 'src/**/*.ts'", | ||
"lint:fix": "eslint 'src/**/*.ts' --fix", | ||
|
@@ -35,7 +36,7 @@ | |
"docs:dev": "vuepress dev docs", | ||
"docs:build": "vuepress build docs", | ||
"docs:deploy": "./deploy-docs.sh", | ||
"check-version": "ts-node scripts/check-sdk-version.ts" | ||
"check-version": "ts-node --project tsconfig-cjs.json scripts/check-sdk-version.ts" | ||
}, | ||
"author": "Papers GmbH <[email protected]> (https://papers.ch)", | ||
"dependencies": { | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"outDir": "./dist/cjs" | ||
} | ||
} |
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