diff --git a/package-lock.json b/package-lock.json index 1b45ee93..cb057372 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.4.1", "license": "Apache-2.0", "dependencies": { - "@lightningjs/renderer": "^3.0.3", + "@lightningjs/renderer": "^3.0.6", "magic-string": "^0.30.21" }, "bin": { @@ -752,9 +752,9 @@ } }, "node_modules/@lightningjs/renderer": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@lightningjs/renderer/-/renderer-3.0.3.tgz", - "integrity": "sha512-DKvQsesjjGZCDAyG/mK40V9sm+L8KYassB9HJGOvBcA/EOdNwYIcOvsLddMYVJBCttRvgqzgMZBSW3dQyuk31w==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@lightningjs/renderer/-/renderer-3.0.6.tgz", + "integrity": "sha512-tGF32ewPBfPcutruHqINhJ93X/l5ujwJfYiAgrmCRvE/guvVjrBuE7ppFN/L5aKcGmBPFyXv3amPTFYckxyoWw==", "license": "Apache-2.0", "engines": { "node": ">= 18.0.0", diff --git a/package.json b/package.json index a977c75c..4936d696 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,10 @@ "bin": "bin/index.js", "exports": { ".": "./index.js", + "./platforms": { + "types": "./src/platforms.d.ts", + "default": "./src/platforms.js" + }, "./vite": "./vite/index.js", "./transitions": "./src/router/transitions/index.js", "./precompiler": "./src/lib/precompiler/precompiler.js", @@ -75,7 +79,7 @@ "tape": "^5.5.0" }, "dependencies": { - "@lightningjs/renderer": "^3.0.3", + "@lightningjs/renderer": "^3.0.6", "magic-string": "^0.30.21" }, "repository": { diff --git a/src/platforms.d.ts b/src/platforms.d.ts new file mode 100644 index 00000000..93c5eeee --- /dev/null +++ b/src/platforms.d.ts @@ -0,0 +1 @@ +export { WebPlatform, WebPlatformNext, WebPlatformChrome50, WebPlatformLegacy } from '@lightningjs/renderer/platforms' diff --git a/src/platforms.js b/src/platforms.js new file mode 100644 index 00000000..875c49c6 --- /dev/null +++ b/src/platforms.js @@ -0,0 +1,23 @@ +/* + * Copyright 2023 Comcast Cable Communications Management, LLC + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +export { + WebPlatform, + WebPlatformNext, + WebPlatformChrome50, + WebPlatformLegacy, +} from '@lightningjs/renderer/platforms'