From 9fd1d39ab5369c9577e771f7385880b767012dfb Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Fri, 18 Nov 2022 22:15:41 +0800 Subject: [PATCH] aws/cf depend on js/index instead of dist --- js/adapters.ts | 3 +++ serverless/aws/src/index.ts | 2 +- serverless/cloudflare/src/index.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/js/adapters.ts b/js/adapters.ts index a6035fe..e64f6fe 100644 --- a/js/adapters.ts +++ b/js/adapters.ts @@ -1,4 +1,7 @@ declare const L: any; +declare const window: any; +declare const document: any; + import { PMTiles, Source, TileType } from "./index"; export const leafletRasterLayer = (source: PMTiles, options: any) => { diff --git a/serverless/aws/src/index.ts b/serverless/aws/src/index.ts index 68a06ec..b450551 100644 --- a/serverless/aws/src/index.ts +++ b/serverless/aws/src/index.ts @@ -11,7 +11,7 @@ import { Source, Compression, TileType, -} from "../../../js"; +} from "../../../js/index"; import https from "https"; import zlib from "zlib"; diff --git a/serverless/cloudflare/src/index.ts b/serverless/cloudflare/src/index.ts index 2bd866d..da634d7 100644 --- a/serverless/cloudflare/src/index.ts +++ b/serverless/cloudflare/src/index.ts @@ -11,7 +11,7 @@ import { ResolvedValueCache, TileType, Compression, -} from "../../../js"; +} from "../../../js/index"; interface Env { BUCKET: R2Bucket;