Skip to content

Commit de2827c

Browse files
committed
version 1.1.0 : add declaration files for typescript
1 parent 4fd664b commit de2827c

File tree

6 files changed

+52
-18
lines changed

6 files changed

+52
-18
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [1.1.0] - 2023-05-13
2+
3+
### Added
4+
- declaration files for typescript
5+
16
## [1.0.3] - 2023-04-18
27

38
### Fixed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @classdesc
3+
* a melonJS plugin to enable loading and parsing of compressed Tiled map
4+
* @augments plugin.BasePlugin
5+
*/
6+
export class TiledInflatePlugin extends plugin.BasePlugin {
7+
}
8+
import { plugin } from 'melonjs';

dist/@melonjs/tiled-inflate-plugin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* a melonJS plugin to enable loading and parsing of compressed Tiled maps
3-
* @melonjs/tiled-inflate-plugin - v1.0.3
3+
* @melonjs/tiled-inflate-plugin - v1.1.0
44
* @melonjs/tiled-inflate-plugin is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license
66
* @copyright (C) 2011 - 2023 Olivier Biot (AltByte Pte Ltd)
@@ -7159,15 +7159,15 @@ var pako = {
71597159
/**
71607160
* @classdesc
71617161
* a melonJS plugin to enable loading and parsing of compressed Tiled map
7162-
* @augments plugin.Base
7162+
* @augments plugin.BasePlugin
71637163
*/
7164-
class TiledInflatePlugin extends plugin.Base {
7164+
class TiledInflatePlugin extends plugin.BasePlugin {
71657165
constructor() {
71667166
// call the super constructor
71677167
super();
71687168

71697169
// minimum melonJS version expected to run this plugin
7170-
this.version = "15.1.0";
7170+
this.version = "15.2.0";
71717171

71727172
/**
71737173
* decompress and decode zlib/gzip data

package.json

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@melonjs/tiled-inflate-plugin",
3-
"version": "1.0.3",
3+
"version": "1.1.0",
44
"description": "a melonJS plugin to enable loading and parsing of compressed Tiled maps",
55
"type": "module",
66
"keywords": [
@@ -30,34 +30,37 @@
3030
},
3131
"main": "dist/@melonjs/tiled-inflate-plugin.js",
3232
"module": "dist/@melonjs/tiled-inflate-plugin.js",
33+
"types": "dist/@melonjs/tiled-inflate-plugin.d.ts",
3334
"sideEffects": false,
3435
"files": [
35-
"dist/@melonjs/tiled-inflate-plugin.js",
36+
"dist/",
3637
"src/",
3738
"package.json",
3839
"README.md",
3940
"LICENSE"
4041
],
4142
"peerDependencies": {
42-
"melonjs": "^15.1.0"
43+
"melonjs": "^15.2.0"
4344
},
4445
"devDependencies": {
45-
"@babel/eslint-parser": "^7.21.3",
46+
"@babel/eslint-parser": "^7.21.8",
4647
"@babel/plugin-syntax-import-assertions": "^7.20.0",
47-
"@rollup/plugin-commonjs": "^24.1.0",
48+
"@rollup/plugin-commonjs": "^25.0.0",
4849
"@rollup/plugin-node-resolve": "^15.0.2",
4950
"@rollup/plugin-replace": "^5.0.2",
5051
"del-cli": "^5.0.0",
51-
"eslint": "^8.38.0",
52-
"eslint-plugin-jsdoc": "^41.1.1",
53-
"rollup": "^3.19.1",
54-
"rollup-plugin-bundle-size": "^1.0.3"
52+
"eslint": "^8.40.0",
53+
"eslint-plugin-jsdoc": "^44.2.3",
54+
"rollup": "^3.21.6",
55+
"rollup-plugin-bundle-size": "^1.0.3",
56+
"typescript": "^5.0.4"
5557
},
5658
"scripts": {
57-
"build": "npm run lint && rollup -c --silent",
59+
"build": "npm run lint && rollup -c --silent && npm run types",
5860
"lint": "eslint src/**.js rollup.config.mjs",
5961
"prepublishOnly": "npm run build",
60-
"clean": "del-cli --force dist"
62+
"clean": "del-cli --force dist",
63+
"types": "tsc"
6164
},
6265
"dependencies": {
6366
"js-base64": "^3.7.5",

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import pako from "pako";
55
/**
66
* @classdesc
77
* a melonJS plugin to enable loading and parsing of compressed Tiled map
8-
* @augments plugin.Base
8+
* @augments plugin.BasePlugin
99
*/
10-
export class TiledInflatePlugin extends plugin.Base {
10+
export class TiledInflatePlugin extends plugin.BasePlugin {
1111
constructor() {
1212
// call the super constructor
1313
super();
1414

1515
// minimum melonJS version expected to run this plugin
16-
this.version = "15.1.0";
16+
this.version = "15.2.0";
1717

1818
/**
1919
* decompress and decode zlib/gzip data

tsconfig.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es2020",
4+
"allowJs": true,
5+
"checkJs": false,
6+
"skipLibCheck": true,
7+
"emitDeclarationOnly": true,
8+
"declaration": true,
9+
"declarationDir": "dist/@melonjs",
10+
"removeComments": false,
11+
"strict": true,
12+
"noImplicitAny": true,
13+
"moduleResolution": "node",
14+
"resolveJsonModule": true,
15+
},
16+
"include": ["dist/@melonjs/*.js"],
17+
"exclude": ["node_modules"]
18+
}

0 commit comments

Comments
 (0)