@needle-tools/engine 2.58.1-pre → 2.58.1-pre.1

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.
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vite").UserConfigExport;
2
+ export default _default;
@@ -0,0 +1,26 @@
1
+ // vite.config.ts
2
+ import { resolve } from 'path';
3
+ import { defineConfig } from 'vite';
4
+ // https://vitejs.dev/guide/build.html#library-mode
5
+ export default defineConfig({
6
+ build: {
7
+ lib: {
8
+ entry: resolve(__dirname, 'needle-engine.ts'),
9
+ name: 'needle-engine',
10
+ fileName: 'dist/needle-engine',
11
+ },
12
+ rollupOptions: {
13
+ // external: ["@dimforge/rapier3d-compat"]
14
+ // external: id => {
15
+ // // console.log(id);
16
+ // let exclude = id.includes("include/");
17
+ // if(exclude) {
18
+ // console.log("\n> ", id);
19
+ // return true;
20
+ // }
21
+ // return false;
22
+ // }
23
+ }
24
+ }
25
+ });
26
+ //# sourceMappingURL=vite.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite.config.js","sourceRoot":"","sources":["../../vite.config.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,mDAAmD;AACnD,eAAe,YAAY,CAAC;IACxB,KAAK,EAAE;QACH,GAAG,EAAE;YACD,KAAK,EAAE,OAAO,CAAC,SAAS,EAAE,kBAAkB,CAAC;YAC7C,IAAI,EAAE,eAAe;YACrB,QAAQ,EAAE,oBAAoB;SACjC;QACD,aAAa,EAAE;QACX,0CAA0C;QAC1C,oBAAoB;QACpB,0BAA0B;QAC1B,6CAA6C;QAC7C,oBAAoB;QACpB,mCAAmC;QACnC,uBAAuB;QACvB,QAAQ;QACR,oBAAoB;QACpB,IAAI;SACP;KACJ;CACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@needle-tools/engine",
3
- "version": "2.58.1-pre",
3
+ "version": "2.58.1-pre.1",
4
4
  "description": "Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development, and can be deployed anywhere. It is flexible, extensible, and collaboration and XR come naturally.",
5
- "main": "dist/needle-engine.js",
6
- "module": "src/needle-engine.ts",
5
+ "main": "dist/needle-engine.umd.cjs",
6
+ "module": "dist/needle-engine.js",
7
7
  "type": "module",
8
8
  "repository": {
9
9
  "type": "git",
@@ -53,6 +53,24 @@
53
53
  "uuid": "^9.0.0",
54
54
  "websocket-ts": "^1.1.1"
55
55
  },
56
+ "devDependencies": {
57
+ "@babel/runtime": "^7.16.0",
58
+ "@luncheon/esbuild-plugin-gzip": "^0.1.0",
59
+ "@needle-tools/gltf-transform-extensions": "^0.10.3-pre",
60
+ "@needle-tools/needle-component-compiler": "1.9.3",
61
+ "@needle-tools/helper": "^0.2.1-pre",
62
+ "@types/three": "0.146.0",
63
+ "copy-files-from-to": "^3.3.0",
64
+ "esbuild": "^0.15.10",
65
+ "esbuild-node-externals": "^1.5.0",
66
+ "jsdoc-babel": "^0.5.0",
67
+ "jsdoc-to-markdown": "^7.1.1",
68
+ "madge": "^5.0.1",
69
+ "msdf-bmfont-xml": "^2.7.0",
70
+ "npm-watch": "^0.11.0",
71
+ "typescript": "^4.5.5",
72
+ "vite": "^4.0.4"
73
+ },
56
74
  "watch": {
57
75
  "test:circular-imports": {
58
76
  "patterns": [
@@ -73,10 +91,6 @@
73
91
  "quiet": false
74
92
  }
75
93
  },
76
- "publishConfig": {
77
- "access": "public",
78
- "registry": "https://registry.npmjs.org"
79
- },
80
94
  "typings": "lib/needle-engine.d.ts",
81
95
  "types": "lib/needle-engine.d.ts"
82
96
  }
@@ -370,6 +370,7 @@ function checkObjectAssignments(obj: any, serializedData: any, implementationInf
370
370
  for (const key of ownKeys) {
371
371
  if (key === "sourceId") continue;
372
372
  const value = obj[key];
373
+ if(value == null) continue;
373
374
  const serialized = serializedData[key];
374
375
  // check if the field is defined in the class
375
376
  if (implementationInformation?.getDefinedKey(typeName, key) === false) {