@sage-rsc/talking-head-react 1.3.2 → 1.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sage-rsc/talking-head-react",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "A reusable React component for 3D talking avatars with lip-sync and text-to-speech",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -8,8 +8,12 @@
8
8
  * that groups them by subdirectory or filename pattern.
9
9
  */
10
10
 
11
- const fs = require('fs');
12
- const path = require('path');
11
+ import fs from 'fs';
12
+ import path from 'path';
13
+ import { fileURLToPath } from 'url';
14
+
15
+ const __filename = fileURLToPath(import.meta.url);
16
+ const __dirname = path.dirname(__filename);
13
17
 
14
18
  const animationsDir = process.argv[2] || './public/animations';
15
19
  const outputFile = path.join(animationsDir, 'manifest.json');