babylonjs-ktx2decoder 6.8.0 → 6.9.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.
package/.npmignore ADDED
@@ -0,0 +1,5 @@
1
+ src
2
+ config.json
3
+ tsconfig*.*
4
+ .npmignore
5
+ webpack*.*
package/config.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "declarationLibs": ["@tools/ktx2decoder"],
3
+ "devPackageName": "ktx2decoder",
4
+ "filename": "babylon.ktx2Decoder.module.d.ts",
5
+ "outputDirectory": "./"
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-ktx2decoder",
3
- "version": "6.8.0",
3
+ "version": "6.9.0",
4
4
  "main": "babylon.ktx2Decoder.js",
5
5
  "types": "babylon.ktx2Decoder.module.d.ts",
6
6
  "files": [
@@ -14,16 +14,14 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.*"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^6.8.0"
17
+ "babylonjs": "^6.9.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",
21
21
  "@lts/gui": "1.0.0",
22
22
  "@tools/ktx2decoder": "1.0.0",
23
- "rimraf": "^3.0.2",
24
23
  "source-map-loader": "^4.0.0",
25
24
  "ts-loader": "^9.2.6",
26
- "typescript": "^4.4.4",
27
25
  "webpack": "^5.73.0",
28
26
  "webpack-cli": "^5.1.0",
29
27
  "webpack-merge": "^5.8.0"
package/src/index.ts ADDED
@@ -0,0 +1,4 @@
1
+ import * as ktx2decoder from "ktx2decoder/legacy/legacy";
2
+
3
+ export { ktx2decoder };
4
+ export default ktx2decoder;
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "../../../../tsconfig.build.json",
3
+
4
+ "compilerOptions": {
5
+ "outDir": "./dist",
6
+ "rootDir": "./src",
7
+ "declaration": false,
8
+ },
9
+ "include": ["./src/**/*"]
10
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../../../../tsconfig.json",
3
+ }
@@ -0,0 +1,25 @@
1
+ const commonConfigGenerator = require("@dev/build-tools").webpackTools.commonUMDWebpackConfiguration;
2
+ const path = require("path");
3
+ module.exports = (env) => {
4
+ const commonConfig = commonConfigGenerator({
5
+ mode: env.production ? "production" : "development",
6
+ devPackageName: "ktx2decoder",
7
+ namespace: "KTX2DECODER",
8
+ maxMode: true,
9
+ outputPath: path.resolve(__dirname),
10
+ devPackageAliasPath: `../../../tools/ktx2Decoder/dist`,
11
+ alias: {
12
+ "core": path.resolve(__dirname, "../../../dev/core/dist"),
13
+ },
14
+ extendedWebpackConfig: {
15
+ externals: {},
16
+ module: {
17
+ rules: require("@dev/build-tools").webpackTools.getRules({
18
+ sideEffects: true,
19
+ includeCSS: true,
20
+ }),
21
+ },
22
+ }
23
+ });
24
+ return commonConfig;
25
+ };