@runtime-type-inspector/plugin-rollup 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Rollup plugin for `runtime-type-inspector`.
1
+ Rollup plugin for `@runtime-type-inspector/transpiler`.
2
2
 
3
3
  Installation:
4
4
 
@@ -6,6 +6,8 @@ Installation:
6
6
  npm install @runtime-type-inspector/plugin-rollup
7
7
  ```
8
8
 
9
- Integration into your build script:
9
+ Example of integration into your build script:
10
10
 
11
- - todo link to PlayCanvas example repo rollup.config.mjs
11
+ - https://github.com/playcanvas/engine/pull/5817
12
+
13
+ Have fun! If you run into any issues, please open an issue at https://github.com/kungfooman/RuntimeTypeInspector.js
package/index.mjs CHANGED
@@ -24,7 +24,7 @@ function getHeader(validateDivision) {
24
24
  * self-test Stringifier class to ensure its functionanlity.
25
25
  * @param {string[]} [options.ignoredFiles] - Ignore certain files which operate in a different
26
26
  * context, for example framework/parsers/draco-worker.js operates as WebWorker (without RTI).
27
- * @returns {import('rollup').Plugin}
27
+ * @returns {import('rollup').Plugin} The rollup plugin.
28
28
  */
29
29
  function runtimeTypeInspector({enable = true, selftest = false, ignoredFiles} = {}) {
30
30
  const filter = createFilter([
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@runtime-type-inspector/plugin-rollup",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "index.mjs",
6
6
  "type": "module",
7
+ "types": "types.d.ts",
7
8
  "scripts": {
8
9
  "test": "echo \"Error: no test specified\" && exit 1"
9
10
  },
10
11
  "author": "Hermann Rolfes (kungfooman)",
11
12
  "license": "MIT",
12
13
  "dependencies": {
13
- "@runtime-type-inspector/runtime": "^2.0.5",
14
- "@runtime-type-inspector/transpiler": "^2.0.13",
14
+ "@runtime-type-inspector/runtime": "^2.0.6",
15
+ "@runtime-type-inspector/transpiler": "^2.0.14",
15
16
  "rollup": "^3.29.4"
16
17
  }
17
18
  }
package/types.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ // The content of this types.d.ts file is authored manually.
2
+ type Options = {
3
+ enable?: boolean;
4
+ selftest?: boolean;
5
+ ignoredFiles?: string[];
6
+ };
7
+ declare function runtimeTypeInspector(options?: Options): import('rollup').Plugin;
8
+ export{runtimeTypeInspector};