Skip to content

Commit 30ef327

Browse files
committed
Try to fix import test
1 parent 0ad8ce3 commit 30ef327

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"dist/@types",
2626
"three",
2727
"src",
28+
"docs",
2829
"scripts",
2930
"patches",
3031
"rollup.config.mjs",

src/Uint16Image.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class Uint16Image extends HDRImage {
3333
}
3434

3535
this.data = new Uint16Array(height * width * 4);
36-
console.warn("Uint16Image isn't suported anymore, browser will certainly drop support.");
36+
console.warn("Uint16Image isn't suported anymore, your browser will certainly drop support soon, use Float16Image instead.");
3737
}
3838

3939
/**

tests/import/import.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable @typescript-eslint/no-unused-vars */
2-
import { Uint16Image, checkHDR, checkHDRCanvas, initHDRCanvas, defaultGetContextHDR, resetGetContext } from "hdr-canvas";
2+
import { Float16Image, checkHDR, checkHDRCanvas, initHDRCanvas, defaultGetContextHDR, resetGetContext } from "hdr-canvas";
33
import HDRWebGPUBackend from "hdr-canvas/three/HDRWebGPUBackend.js";
44
import HDRWebGPURenderer from "hdr-canvas/three/HDRWebGPURenderer.js";
55

tests/import/package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
"hdr-canvas": "git+https://github.com/cmahnke/hdr-canvas.git"
44
},
55
"devDependencies": {
6-
"patch-package": "^8.0.0",
7-
"esbuild": "^0.25.8",
8-
"rimraf": "^6.0.1",
9-
"rollup": "^4.46.2",
10-
"rollup-plugin-dts": "^6.2.1"
6+
"esbuild": "^0.27.0",
7+
"rimraf": "^6.1.0",
8+
"rollup": "^4.53.2",
9+
"rollup-plugin-dts": "^6.2.3"
1110
},
1211
"scripts": {
13-
"preinstall": "npm i",
1412
"postinstall": "cd node_modules/hdr-canvas && npm i && rollup --config",
1513
"build": "esbuild --bundle import.ts",
1614
"clean": "rimraf package-lock.json node_modules && npm cache clean --force"

0 commit comments

Comments
 (0)