Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix package.json #286

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
"name": "maplibre-contour",
"version": "0.0.7",
"description": "Render contour lines from raster elevation tiles in maplibre-gl-js",
"browser": "dist/index.min.js",
"unpkg": "dist/index.min.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
"module": "./dist/index.mjs",
"require": "./dist/index.cjs"
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"browser": "./dist/index.min.js"
},
"scripts": {
"bench": "npm run build && node benchmark.js",
Expand Down
2 changes: 1 addition & 1 deletion src/actor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Timer } from "./performance";
import { IsTransferrable, Timing } from "./types";
import type { IsTransferrable, Timing } from "./types";
import { onAbort, withTimeout } from "./utils";

let id = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/decode-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
shouldUseVideoFrame,
} from "./utils";
import type { MainThreadDispatch } from "./remote-dem-manager";
import { DemTile, Encoding } from "./types";
import type { DemTile, Encoding } from "./types";

let offscreenCanvas: OffscreenCanvas;
let offscreenContext: OffscreenCanvasRenderingContext2D | null;
Expand Down
2 changes: 1 addition & 1 deletion src/dem-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import decodeImage from "./decode-image";
import { HeightTile } from "./height-tile";
import generateIsolines from "./isolines";
import { encodeIndividualOptions, isAborted, withTimeout } from "./utils";
import {
import type {
ContourTile,
DemTile,
Encoding,
Expand Down
5 changes: 3 additions & 2 deletions src/dem-source.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { DemManager, LocalDemManager } from "./dem-manager";
import type { DemManager } from "./dem-manager";
import { LocalDemManager } from "./dem-manager";
import { decodeOptions, encodeOptions, getOptionsForZoom } from "./utils";
import RemoteDemManager from "./remote-dem-manager";
import { DemTile, GlobalContourTileOptions, Timing } from "./types";
import type { DemTile, GlobalContourTileOptions, Timing } from "./types";
import type WorkerDispatch from "./worker-dispatch";
import Actor from "./actor";
import { Timer } from "./performance";
Expand Down
2 changes: 1 addition & 1 deletion src/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Actor from "./actor";
import WorkerDispatch from "./worker-dispatch";
import { DemSource } from "./dem-source";
import { MainThreadDispatch } from "./remote-dem-manager";
import { DemTile, Timing } from "./types";
import type { DemTile, Timing } from "./types";
import { VectorTile } from "@mapbox/vector-tile";
import Pbf from "pbf";

Expand Down
2 changes: 1 addition & 1 deletion src/height-tile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DemTile } from "./types";
import type { DemTile } from "./types";

const MIN_VALID_M = -12000;
const MAX_VALID_M = 9000;
Expand Down
2 changes: 1 addition & 1 deletion src/performance.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Timing, TimingCategory } from "./types";
import type { Timing, TimingCategory } from "./types";

export const perf =
typeof performance !== "undefined" ? performance : undefined;
Expand Down
2 changes: 1 addition & 1 deletion src/remote-dem-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type WorkerDispatch from "./worker-dispatch";
import decodeImage from "./decode-image";
import type { DemManager } from "./dem-manager";
import { Timer } from "./performance";
import {
import type {
ContourTile,
DemTile,
Encoding,
Expand Down
2 changes: 1 addition & 1 deletion src/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
GlobalContourTileOptions,
IndividualContourTileOptions,
} from "./types";
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
ContourTile,
DemTile,
GlobalContourTileOptions,
Expand Down
2 changes: 1 addition & 1 deletion src/worker-dispatch.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LocalDemManager } from "./dem-manager";
import { Timer } from "./performance";
import {
import type {
ContourTile,
FetchResponse,
IndividualContourTileOptions,
Expand Down
3 changes: 2 additions & 1 deletion test-project-maplibre-3/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../tsconfig.json"
"extends": "../tsconfig.json",
"include": ["*.ts"]
}
3 changes: 2 additions & 1 deletion test-project/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../tsconfig.json"
"extends": "../tsconfig.json",
"include": ["*.ts"]
}
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
"target": "ES2016",
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"strict": true,
"moduleResolution": "node",
"moduleResolution": "Bundler",
"allowJs": true,
"skipLibCheck": false,
"types": ["jest", "node"],
"allowSyntheticDefaultImports": true,
"isolatedModules": true,
"module": "ESNext",
"esModuleInterop": true
"esModuleInterop": true,
"verbatimModuleSyntax": true
},
"ts-node": {
"experimentalSpecifierResolution": "node",
Expand Down
Loading