Skip to content

Commit

Permalink
make build backward compatible (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
shakiba authored Aug 1, 2023
1 parent cbfba8c commit 39a983b
Show file tree
Hide file tree
Showing 11 changed files with 32,319 additions and 32,307 deletions.
35,324 changes: 17,704 additions & 17,620 deletions dist/planck-with-testbed.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/planck-with-testbed.js.map

Large diffs are not rendered by default.

228 changes: 75 additions & 153 deletions dist/planck-with-testbed.cjs → dist/planck-with-testbed.mjs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

28,812 changes: 14,447 additions & 14,365 deletions dist/planck.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/planck.js.map

Large diffs are not rendered by default.

226 changes: 75 additions & 151 deletions dist/planck.cjs → dist/planck.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/planck.cjs.map → dist/planck.mjs.map

Large diffs are not rendered by default.

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.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "planck",
"version": "1.0.0-beta.0",
"version": "1.0.0-beta.5",
"description": "2D JavaScript/TypeScript physics engine for cross-platform HTML5 game development",
"homepage": "https://github.com/shakiba/planck.js",
"keywords": [
Expand All @@ -26,7 +26,7 @@
"Oliver Zell"
],
"type": "module",
"module": "dist/planck.js",
"module": "dist/planck.mjs",
"main": "dist/planck.js",
"jsdelivr": "dist/planck.min.js",
"unpkg": "dist/planck.min.js",
Expand All @@ -35,14 +35,14 @@
".": {
"types": "./dist/planck.d.ts",
"umd": "./dist/planck.min.js",
"require": "./dist/planck.cjs",
"default": "./dist/planck.js"
"require": "./dist/planck.js",
"default": "./dist/planck.mjs"
},
"./with-testbed": {
"types": "./dist/planck-with-testbed.d.ts",
"umd": "./dist/planck-with-testbed.min.js",
"require": "./dist/planck-with-testbed.cjs",
"default": "./dist/planck-with-testbed.js"
"require": "./dist/planck-with-testbed.js",
"default": "./dist/planck-with-testbed.mjs"
},
"./dist/*": "./dist/*"
},
Expand Down
12 changes: 6 additions & 6 deletions rollup.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ module.exports = [
{
format: 'es',
src: 'src/main.ts',
dest: 'dist/planck.js',
dest: 'dist/planck.mjs',
minimize: false,
sourcemap: false,
declaration: true,
},
{
format: 'cjs',
format: 'umd',
src: 'src/main.ts',
dest: 'dist/planck.cjs',
dest: 'dist/planck.js',
minimize: false,
sourcemap: false,
declaration: false,
Expand All @@ -37,15 +37,15 @@ module.exports = [
{
format: 'es',
src: 'testbed/main.ts',
dest: 'dist/planck-with-testbed.js',
dest: 'dist/planck-with-testbed.mjs',
minimize: false,
sourcemap: false,
declaration: true,
},
{
format: 'cjs',
format: 'umd',
src: 'testbed/main.ts',
dest: 'dist/planck-with-testbed.cjs',
dest: 'dist/planck-with-testbed.js',
minimize: false,
sourcemap: false,
declaration: false,
Expand Down

0 comments on commit 39a983b

Please sign in to comment.