sdk: add level to externals, support rollup externals

This commit is contained in:
Koushik Dutta
2025-07-13 08:01:22 -07:00
parent e38c3c975f
commit 6f47e39bf3
7 changed files with 21 additions and 7 deletions

4
sdk/package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/sdk",
"version": "0.5.30",
"version": "0.5.31",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@scrypted/sdk",
"version": "0.5.30",
"version": "0.5.31",
"license": "ISC",
"dependencies": {
"@babel/preset-typescript": "^7.27.1",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/sdk",
"version": "0.5.30",
"version": "0.5.31",
"description": "",
"main": "dist/src/index.js",
"exports": {

View File

@@ -32,6 +32,19 @@ const packageJson = JSON.parse(fs.readFileSync(path.join(cwd, 'package.json').to
const external = Object.keys(packageJson.optionalDependencies || {});
const tsconfig = JSON.parse(fs.readFileSync(path.join(cwd, 'tsconfig.json').toString()));
external.push(
'@scrypted/node-pty',
'node-forge',
'sharp',
'level',
'source-map-support/register',
'adm-zip',
"memfs",
"realfs",
"fakefs",
"mdns",
"typescript",
);
const defaultMainNodeJs = 'main.nodejs.js';
const entries = [];

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/types",
"version": "0.5.28",
"version": "0.5.29",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/types",
"version": "0.5.28",
"version": "0.5.29",
"license": "ISC",
"dependencies": {
"openai": "^5.3.0"

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/types",
"version": "0.5.28",
"version": "0.5.29",
"description": "",
"main": "dist/index.js",
"author": "",

View File

@@ -1074,7 +1074,7 @@ class TamperState(TypedDict):
pass
TYPES_VERSION = "0.5.28"
TYPES_VERSION = "0.5.29"
class AirPurifier:

View File

@@ -62,6 +62,7 @@ const polyfills = [
'@scrypted/node-pty',
'node-forge',
'sharp',
'level',
'source-map-support/register',
'adm-zip',
"memfs",