Skip to content

Commit

Permalink
Remove *.esm.js files and add *.esm.mjs files (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomglenn committed Jan 31, 2023
1 parent acea19d commit c2f4f13
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 1,248 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ The format is based on [keep a changelog](http://keepachangelog.com/) and this p

### Unreleased

### [2.5.3]

### Fixed
- Nakama and Satori ESM module files now correctly end in the `.mjs` extension.

### [2.5.1]

### Added
Expand Down
4 changes: 2 additions & 2 deletions 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 packages/nakama-js-iife-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"license": "Apache-2.0",
"dependencies": {
"@heroiclabs/nakama-js": "2.4.1"
"@heroiclabs/nakama-js": "2.5.3"
},
"scripts": {
"build": "npx esbuild --bundle index.ts --target=es6 --format=iife --outfile=dist/nakama-js-example.iife.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/nakama-js-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"license": "Apache-2.0",
"dependencies": {
"@heroiclabs/nakama-js": "2.5.2",
"@heroiclabs/nakama-js": "2.5.3",
"@heroiclabs/nakama-js-protobuf": "1.2.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/nakama-js/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ await esbuild.build({
await esbuild.build({
...config,
format: 'esm',
outfile: 'dist/nakama-js.esm.js'
outfile: 'dist/nakama-js.esm.mjs'
});

// Build IIFE
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/nakama-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@heroiclabs/nakama-js",
"version": "2.5.2",
"version": "2.5.3",
"scripts": {
"build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/satori-js/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ await esbuild.build({
await esbuild.build({
...config,
format: 'esm',
outfile: 'dist/satori-js.esm.js'
outfile: 'dist/satori-js.esm.mjs'
});

// Build IIFE
Expand Down
Loading

0 comments on commit c2f4f13

Please sign in to comment.