diff --git a/src/VectorOfflineLayer.ts b/src/VectorOfflineLayer.ts index ff82200..acce143 100644 --- a/src/VectorOfflineLayer.ts +++ b/src/VectorOfflineLayer.ts @@ -8,9 +8,9 @@ import { TileResponseFulfilled, TileResponseRejected, VectorLayerOptions, -} from "./types.ts"; -import { getTileImageSource, reflect, timer } from "./utils.ts"; -import { Theme, themes } from "./themes.ts"; +} from "./types"; +import { getTileImageSource, reflect, timer } from "./utils"; +import { Theme, themes } from "./themes"; import { Bounds, Coords, DoneCallback, Point } from "leaflet"; import { getTilePoints, getTileUrl, TileInfo } from "leaflet.offline"; diff --git a/src/index.ts b/src/index.ts index 2972e3e..201d06c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,10 +1,7 @@ -export { - vectorOfflineLayer, - VectorOfflineLayer, -} from "./VectorOfflineLayer.ts"; +export { vectorOfflineLayer, VectorOfflineLayer } from "./VectorOfflineLayer"; export type { Status, DoneCallback, KeyedHtmlCanvasElement, VectorLayerOptions, -} from "./types.ts"; +} from "./types"; diff --git a/src/themes.ts b/src/themes.ts index b75003f..f3258cc 100644 --- a/src/themes.ts +++ b/src/themes.ts @@ -1,4 +1,4 @@ -import { ThemeName } from "./types.ts"; +import { ThemeName } from "./types"; export interface Theme { background: string; diff --git a/src/utils.ts b/src/utils.ts index a21b8e5..a54ec41 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,5 +1,5 @@ import { getBlobByKey, hasTile } from "leaflet.offline"; -import { Status, StatusFulfilled, StatusRejected } from "./types.ts"; +import { Status, StatusFulfilled, StatusRejected } from "./types"; export const reflect = ( promise: Promise diff --git a/tsconfig.json b/tsconfig.json index 0e74dea..0fcb733 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -35,7 +35,7 @@ // "types": [], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ - "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ + // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ @@ -55,9 +55,9 @@ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ - "outDir": "dist", /* Specify an output folder for all emitted files. */ + "outDir": "dist", /* Specify an output folder for all emitted files. */ // "removeComments": true, /* Disable emitting comments. */ - "noEmit": true, /* Disable emitting files from a compilation. */ + // "noEmit": true, /* Disable emitting files from a compilation. */ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */