diff --git a/package.json b/package.json
index 1dd7fb2e..016abf9e 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "pixi-animate",
"description": "PIXI plugin for the PixiAnimate Extension",
- "version": "2.0.0-rc2",
+ "version": "2.0.0-rc3",
"main": "lib/pixi-animate.js",
"module": "lib/pixi-animate.es.js",
"bundle": "dist/pixi-animate.js",
@@ -58,9 +58,11 @@
"build:min:bundle": "terser dist/pixi-animate.js -c -m -o dist/pixi-animate.min.js --source-map \"content='dist/pixi-animate.js.map',includeSources=true,filename='dist/pixi-animate.min.js.map',url='pixi-animate.min.js.map'\" --comments \"/pixi-animate.js - /\"",
"build:min:legacy": "terser dist/pixi-animate-legacy.js -c -m -o dist/pixi-animate-legacy.min.js --source-map \"content='dist/pixi-animate-legacy.js.map',includeSources=true,filename='dist/pixi-animate-legacy.min.js.map',url='pixi-animate-legacy.min.js.map'\" --comments \"/pixi-animate-legacy.js - /\"",
"build:dts": "node scripts/buildAmbientTypes.js",
- "test": "floss --path tests/index.js",
- "coverage": "nyc npm test",
- "test:debug": "npm test -- --debug",
+ "test": "npm run test:floss && npm run test:tsc",
+ "test:floss": "floss --path tests/index.js",
+ "test:tsc": "tsc -p tests/ts-lib/tsconfig.json && tsc -p tests/ts-dist/tsconfig.json",
+ "coverage": "nyc npm run test:floss && npm run test:tsc",
+ "test:debug": "npm run test:floss -- --debug",
"docs": "typedoc",
"predocs-live": "npm run docs",
"docs-live": "gh-pages -d docs",
diff --git a/tests/ts-dist/index.ts b/tests/ts-dist/index.ts
new file mode 100644
index 00000000..6e0e4697
--- /dev/null
+++ b/tests/ts-dist/index.ts
@@ -0,0 +1,7 @@
+/* eslint-disable @typescript-eslint/triple-slash-reference, spaced-comment */
+///
+///
+
+const clip = new PIXI.animate.MovieClip();
+
+clip.play();
diff --git a/tests/ts-dist/tsconfig.json b/tests/ts-dist/tsconfig.json
new file mode 100644
index 00000000..8811da7e
--- /dev/null
+++ b/tests/ts-dist/tsconfig.json
@@ -0,0 +1,13 @@
+{
+ "compilerOptions": {
+ "target": "ES5",
+ "module": "commonjs",
+ "types": ["pixi.js"],
+ "noEmit": true,
+ "lib": ["es2015", "dom"],
+ "declaration": false
+ },
+ "include": [
+ "index.ts"
+ ]
+}
\ No newline at end of file
diff --git a/tests/ts-lib/index.js b/tests/ts-lib/index.js
new file mode 100644
index 00000000..419c84e2
--- /dev/null
+++ b/tests/ts-lib/index.js
@@ -0,0 +1,5 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var animate = require("../../");
+var clip = new animate.MovieClip();
+clip.play();
diff --git a/tests/ts-lib/index.ts b/tests/ts-lib/index.ts
new file mode 100644
index 00000000..50a39147
--- /dev/null
+++ b/tests/ts-lib/index.ts
@@ -0,0 +1,5 @@
+import * as animate from '../../';
+
+const clip = new animate.MovieClip();
+
+clip.play();
diff --git a/tests/ts-lib/tsconfig.json b/tests/ts-lib/tsconfig.json
new file mode 100644
index 00000000..8811da7e
--- /dev/null
+++ b/tests/ts-lib/tsconfig.json
@@ -0,0 +1,13 @@
+{
+ "compilerOptions": {
+ "target": "ES5",
+ "module": "commonjs",
+ "types": ["pixi.js"],
+ "noEmit": true,
+ "lib": ["es2015", "dom"],
+ "declaration": false
+ },
+ "include": [
+ "index.ts"
+ ]
+}
\ No newline at end of file