@needle-tools/gltf-build-pipeline 2.2.0-alpha.1 → 2.2.0-alpha.2

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/CHANGELOG.md CHANGED
@@ -4,7 +4,7 @@ All notable changes to this package will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
- ## [2.2.0-alpha] - 2023-06-06
7
+ ## [2.2.0-alpha.2] - 2023-06-06
8
8
  - Add: CLI `--progressive` option to `transform` command (default is enabled)
9
9
  - Add: config `meshes: { lods: boolean }` option
10
10
  - Remove: CLI "compress" command
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@needle-tools/gltf-build-pipeline",
3
- "version": "2.2.0-alpha.1",
3
+ "version": "2.2.0-alpha.2",
4
4
  "description": "Pipeline and tools for optimizing gltf files using gltf-transform and compression settings within glTF extensions",
5
- "main": "src/index.js",
5
+ "main": "dist/index.js",
6
6
  "type": "module",
7
7
  "readme": "README.md",
8
8
  "author": {
@@ -1,4 +1,4 @@
1
1
 
2
- import { clearCache } from '../dist/src/cache/index.js';
2
+ import { clearCache } from '../dist/cache/index.js';
3
3
 
4
4
  clearCache();
@@ -1,6 +1,6 @@
1
1
  import { ALL_EXTENSIONS } from '@gltf-transform/extensions';
2
- import { ALL_EXTENSIONS as NEEDLE_EXTENSIONS } from "../dist/src/extensions/NEEDLE_opaque/index.js";
3
- import { NEEDLE_progressive } from '../dist/src/index.js';
2
+ import { ALL_EXTENSIONS as NEEDLE_EXTENSIONS } from "../dist/extensions/NEEDLE_opaque/index.js";
3
+ import { NEEDLE_progressive } from '../dist/index.js';
4
4
 
5
5
 
6
6
  export function registerExtensions(node) {
@@ -1,4 +1,4 @@
1
- import { foreachGLTF as foreach } from '../dist/src/index.js';
1
+ import { foreachGLTF as foreach } from '../dist/index.js';
2
2
 
3
3
 
4
4
  export function foreachGLTF(args, callback) {
package/scripts/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { spawnSync } from "child_process";
3
- import { getVersion } from "../dist/src/index.js";
3
+ import { getVersion } from "../dist/index.js";
4
4
 
5
5
  const workingDir = process.cwd();
6
6
 
@@ -1,4 +1,4 @@
1
1
 
2
- import { limitCacheSize } from '../dist/src/cache/index.js';
2
+ import { limitCacheSize } from '../dist/cache/index.js';
3
3
 
4
4
  limitCacheSize(512);
@@ -1,5 +1,5 @@
1
- import { getConfig, getVersion } from '../dist/src/index.js';
2
- import { make_progressive } from '../dist/src/transforms/needle_progressive.js';
1
+ import { getConfig, getVersion } from '../dist/index.js';
2
+ import { make_progressive } from '../dist/transforms/needle_progressive.js';
3
3
 
4
4
  const args = process.argv;
5
5
 
@@ -1,6 +1,6 @@
1
1
  import commandLineArgs from "command-line-args";
2
2
  import { foreachGLTF } from './fileutils.mjs';
3
- import { getVersion, limitCacheSize, getConfig, packGLTF, printStats } from '../dist/src/index.js';
3
+ import { getVersion, limitCacheSize, getConfig, packGLTF, printStats } from '../dist/index.js';
4
4
  import { Logger, Verbosity } from "@gltf-transform/core";
5
5
 
6
6
  console.log(`[Needle Build Pipeline] pack glTF — version ${getVersion()}`)
@@ -60,7 +60,7 @@ if (noToktx)
60
60
  const packedFiles = new Set();
61
61
 
62
62
  /**
63
- * @type {import("../dist/src/index.js").Stats}
63
+ * @type {import("../dist/index.js").Stats}
64
64
  */
65
65
  const stats = {
66
66
  startTime: Date.now(),