@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 +1 -1
- package/package.json +2 -2
- package/scripts/clear-caches.mjs +1 -1
- package/scripts/defaults.mjs +2 -2
- package/scripts/fileutils.mjs +1 -1
- package/scripts/index.mjs +1 -1
- package/scripts/limit-caches.mjs +1 -1
- package/scripts/make-progressive.mjs +2 -2
- package/scripts/pack-gltf.mjs +2 -2
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.
|
|
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": "
|
|
5
|
+
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"readme": "README.md",
|
|
8
8
|
"author": {
|
package/scripts/clear-caches.mjs
CHANGED
package/scripts/defaults.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ALL_EXTENSIONS } from '@gltf-transform/extensions';
|
|
2
|
-
import { ALL_EXTENSIONS as NEEDLE_EXTENSIONS } from "../dist/
|
|
3
|
-
import { NEEDLE_progressive } from '../dist/
|
|
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) {
|
package/scripts/fileutils.mjs
CHANGED
package/scripts/index.mjs
CHANGED
package/scripts/limit-caches.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getConfig, getVersion } from '../dist/
|
|
2
|
-
import { make_progressive } from '../dist/
|
|
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
|
|
package/scripts/pack-gltf.mjs
CHANGED
|
@@ -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/
|
|
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/
|
|
63
|
+
* @type {import("../dist/index.js").Stats}
|
|
64
64
|
*/
|
|
65
65
|
const stats = {
|
|
66
66
|
startTime: Date.now(),
|