Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate es6/es2015 code for ESM package #328

Merged
merged 2 commits into from
Nov 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Examples: JS examples uses local ESM folder to replicate behaviour of js-waku publish package.

### Fixed

- `TypeError` issue related to constructors using js-waku in a JS project
([#323](https://github.com/status-im/js-waku/issues/323)).

## [0.14.1] - 2021-10-22

### Fixed
Expand Down
11 changes: 7 additions & 4 deletions examples/min-react-js-chat/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/min-react-js-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"js-waku": "../../build/main",
"js-waku": "../../build/esm",
"protons": "^2.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down
11 changes: 7 additions & 4 deletions examples/store-reactjs-chat/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/store-reactjs-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"js-waku": "../../build/main",
"js-waku": "../../build/esm",
"protons": "^2.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build": "run-s build:**",
"build:main": "tsc -p tsconfig.json",
"build:dev": "tsc -p tsconfig.dev.json",
"build:esm": "tsc --module es2015 --target es5 --outDir build/esm",
"build:esm": "tsc --module es2015 --target es2015 --outDir build/esm",
"build:umd": "webpack --config webpack.config.js",
"build:umd:min": "webpack --config webpack.config.min.js",
"build:umd:bundle": "webpack --config webpack.config.bundle.js",
Expand Down