diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c14184f..64ddd77 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,5 +72,5 @@ jobs: POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | - echo poetry publish + poetry publish cd js && npm publish diff --git a/js/package.json b/js/package.json index e27f7ce..1ef4f1e 100644 --- a/js/package.json +++ b/js/package.json @@ -1,13 +1,17 @@ { "name": "evmole", - "version": "0.0.3", + "version": "0.0.4", "description": "Extracts function selectors from EVM bytecode", - "main": "dist/index.cjs.js", + "main": "dist/index.cjs", "module": "dist/index.esm.js", "types": "dist/index.d.ts", "type": "module", + "exports": { + "import": "./dist/index.esm.js", + "require": "./dist/index.cjs" + }, "scripts": { - "build-cjs": "npx esbuild ./src/ --bundle --minify --sourcemap --format=cjs --outfile=dist/index.cjs.js", + "build-cjs": "npx esbuild ./src/ --bundle --minify --sourcemap --format=cjs --outfile=dist/index.cjs", "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/", "lint": "npx eslint ./src/", diff --git a/pyproject.toml b/pyproject.toml index 438434d..4030e87 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "evmole" -version = "0.0.3" +version = "0.0.4" description = "Extracts function selectors from EVM bytecode" authors = ["Maxim Andreev "] license = "MIT"