lecodes-assets 0.1.0

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.
Files changed (4) hide show
  1. package/README.md +226 -0
  2. package/dist/cli.js +4423 -0
  3. package/dist/index.js +4462 -0
  4. package/package.json +40 -0
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "lecodes-assets",
3
+ "version": "0.1.0",
4
+ "description": "LeCodes asset pipeline: FBX → GLB (ufbx), clip merging by bone name, texture embedding, GLB doctor (bone cap, texture normalize, KTX2).",
5
+ "type": "module",
6
+ "bin": {
7
+ "lecodes-assets": "dist/cli.js"
8
+ },
9
+ "exports": {
10
+ ".": { "types": "./src/index.ts", "default": "./dist/index.js" },
11
+ "./cli": { "types": "./src/cli.ts", "default": "./dist/cli.js" }
12
+ },
13
+ "files": [
14
+ "dist",
15
+ "README.md"
16
+ ],
17
+ "engines": {
18
+ "node": ">=18"
19
+ },
20
+ "scripts": {
21
+ "wasm": "bash build-wasm.sh",
22
+ "build": "bun build src/cli.ts src/index.ts --target=node --outdir dist --external sharp --external @gltf-transform/core --external @gltf-transform/extensions --external @gltf-transform/functions --external meshoptimizer",
23
+ "test": "bun test",
24
+ "typecheck": "tsc --noEmit",
25
+ "prepublishOnly": "bun run build"
26
+ },
27
+ "dependencies": {
28
+ "@gltf-transform/core": "^4.2.0",
29
+ "@gltf-transform/extensions": "^4.4.0",
30
+ "@gltf-transform/functions": "^4.4.0",
31
+ "meshoptimizer": "^1.1.1"
32
+ },
33
+ "optionalDependencies": {
34
+ "sharp": "^0.35.2"
35
+ },
36
+ "devDependencies": {
37
+ "@types/bun": "^1.3.14",
38
+ "typescript": "~5.8.3"
39
+ }
40
+ }