Skip to content

Commit

Permalink
Build iife js version for browser, v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cdump committed Nov 25, 2023
1 parent bfafc01 commit 5d64ae6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions js/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
{
"name": "evmole",
"version": "0.1.1",
"version": "0.1.2",
"description": "Extracts function selectors from EVM bytecode",
"main": "dist/index.js",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"unpkg": "dist/index.iife.js",
"jsdelivr": "dist/index.iife.js",
"type": "module",
"exports": {
"import": "./dist/index.esm.js",
"require": "./dist/index.js"
"require": "./dist/index.cjs.js"
},
"scripts": {
"build-cjs": "npx esbuild ./src/ --bundle --minify --sourcemap --format=cjs --outfile=dist/index.js",
"build-cjs": "npx esbuild ./src/ --bundle --minify --sourcemap --format=cjs --outfile=dist/index.cjs.js",
"build-esm": "npx esbuild ./src/ --bundle --minify --sourcemap --format=esm --outfile=dist/index.esm.js",
"build": "rm -rf dist/ && npm run build-cjs && npm run build-esm && cp ./src/index.d.ts dist/",
"build-iife": "npx esbuild ./src/ --bundle --minify --sourcemap --format=iife --global-name=evmole --outfile=dist/index.iife.js",
"build": "rm -rf dist/ && npm run build-cjs && npm run build-esm && npm run build-iife && cp ./src/index.d.ts dist/",
"lint": "npx eslint ./src/",
"format": "npx prettier ./src/ --write"
},
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "evmole"
version = "0.1.1"
version = "0.1.2"
description = "Extracts function selectors from EVM bytecode"
authors = ["Maxim Andreev <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 5d64ae6

Please sign in to comment.