Track dist-js directory for npm package distribution

Seto Elkahfi committed Aug 19, 2025 at 14:56 UTC 96ab214001cd19dc0ee28537ad697ba4ab1744d9
4 files changed +20 -1
.gitignore
+1 -1
@@ -13,5 +13,5 @@ yarn.lock
13 Cargo.lock
14 node_modules/
15
16 -dist-js
16 +# dist-js
17 dist
dist-js/index.cjs new
+9
@@ -0,0 +1,9 @@
1 +'use strict';
2 +
3 +var core = require('@tauri-apps/api/core');
4 +
5 +async function check() {
6 + return await core.invoke("plugin:android-tv-check|check");
7 +}
8 +
9 +exports.check = check;
dist-js/index.d.ts new
+3
@@ -0,0 +1,3 @@
1 +export declare function check(): Promise<{
2 + isAndroidTv: boolean;
3 +}>;
dist-js/index.js new
+7
@@ -0,0 +1,7 @@
1 +import { invoke } from '@tauri-apps/api/core';
2 +
3 +async function check() {
4 + return await invoke("plugin:android-tv-check|check");
5 +}
6 +
7 +export { check };