diff --git a/examples/iframe/observer.mjs b/examples/iframe/observer.mjs index 1dc42778076..4abed6c7ba1 100644 --- a/examples/iframe/observer.mjs +++ b/examples/iframe/observer.mjs @@ -1,5 +1,8 @@ import { Observer } from './playcanvas-observer.mjs'; +/** + * @type {Observer} + */ let data; function refresh() { data = new Observer({}); diff --git a/examples/iframe/utils.mjs b/examples/iframe/utils.mjs index 73989367497..a5bed19000d 100644 --- a/examples/iframe/utils.mjs +++ b/examples/iframe/utils.mjs @@ -56,7 +56,7 @@ const blobUrls = []; * Imports a local file as a module. * * @param {string} name - The name of the local file. - * @returns {Promise} - The module exports. + * @returns {Promise} - The module exports. */ export function localImport(name) { if (!/\.mjs$/.test(name)) { diff --git a/examples/jsconfig.json b/examples/jsconfig.json index 6e55d721d46..018c60802f4 100644 --- a/examples/jsconfig.json +++ b/examples/jsconfig.json @@ -4,12 +4,12 @@ "allowSyntheticDefaultImports" : true, "checkJs": true, "esModuleInterop" : true, - "module": "node16", - "moduleResolution": "node16", + "module": "Node16", + "moduleResolution": "Node16", "noImplicitAny": true, "outDir": "dist", "strictNullChecks": true, - "target": "es6", + "target": "ESNext", }, "include": ["src", "scripts", "iframe", "utils"], "exclude": ["node_modules", "src/lib"] diff --git a/examples/package-lock.json b/examples/package-lock.json index 361f4942ddd..a9d8c1be505 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -25,7 +25,7 @@ "concurrently": "^7.6.0", "cross-env": "^7.0.2", "eslint": "^8.46.0", - "examples": "file:../iframe", + "examples": "file:./iframe", "fflate": "^0.8.0", "fs-extra": "^10.1.0", "monaco-editor": "^0.33.0", @@ -90,7 +90,7 @@ } }, "../iframe": { - "dev": true + "extraneous": true }, "../node_modules/@aashutoshrathi/word-wrap": { "version": "1.2.6", @@ -8526,7 +8526,7 @@ }, "iframe": { "name": "examples", - "extraneous": true + "dev": true }, "node_modules/@aashutoshrathi/word-wrap": { "version": "1.2.6", @@ -10645,7 +10645,7 @@ } }, "node_modules/examples": { - "resolved": "../iframe", + "resolved": "iframe", "link": true }, "node_modules/execa": { diff --git a/examples/package.json b/examples/package.json index 0f55658b21b..4fc2e135633 100644 --- a/examples/package.json +++ b/examples/package.json @@ -37,7 +37,6 @@ "lib" ], "devDependencies": { - "examples": "file:../iframe", "@babel/standalone": "^7.22.9", "@monaco-editor/react": "^4.5.1", "@playcanvas/eslint-config": "^1.5.0", @@ -54,6 +53,7 @@ "concurrently": "^7.6.0", "cross-env": "^7.0.2", "eslint": "^8.46.0", + "examples": "file:./iframe", "fflate": "^0.8.0", "fs-extra": "^10.1.0", "monaco-editor": "^0.33.0",