Skip to content

Commit f00409a

Browse files
committed
fix: setup for npm release
1 parent 53d2552 commit f00409a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+55
-37
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ rollup.config-dev.js
1515
.hotreload
1616
webpack.dev.js
1717

18-
.env
18+
.env
19+
main.js
20+
styles.css
21+
main.css

index.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { ObsidianAppData } from "types";
2+
3+
export interface LeafletAPI {
4+
openInitiativeView(
5+
pcs: import("../src/utils/creature").Creature[],
6+
npcs: import("../src/utils/creature").Creature[]
7+
): unknown;
8+
markerIcons: MarkerIcon[];
9+
data: ObsidianAppData;
10+
}
11+
12+
interface MarkerIcon {
13+
html: string;
14+
type: string;
15+
}

src/controls/distance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BaseMapType, Popup } from "src/@types";
1+
import { BaseMapType, Popup } from "../types";
22
import { popup } from "src/map/popup";
33
import { LAT_LONG_DECIMALS } from "src/utils";
44

src/controls/filter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { BaseMapType } from "src/@types";
1+
import type { BaseMapType } from "../types";
22
import { getId } from "src/utils";
33
import { FontAwesomeControl, FontAwesomeControlOptions } from "./controls";
44
import { LeafletSymbol } from "src/utils/leaflet-import";

src/controls/gpx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BaseMapType } from "src/@types";
1+
import { BaseMapType } from "../types";
22
import { GPX } from "src/layer";
33
import { FontAwesomeControl, FontAwesomeControlOptions } from "./controls";
44
import { LeafletSymbol } from "src/utils/leaflet-import";

src/controls/lock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BaseMapType } from "src/@types";
1+
import { BaseMapType } from "../types";
22
import { FontAwesomeControl, FontAwesomeControlOptions } from "./controls";
33

44
export class LockControl extends FontAwesomeControl {

src/controls/mapview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BaseMapType } from "src/@types";
1+
import { BaseMapType } from "../types";
22
import t from "src/l10n/locale";
33
import { EditParametersModal } from "src/modals/mapview";
44
import { FontAwesomeControl, FontAwesomeControlOptions } from "./controls";

src/controls/reset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Map } from "leaflet";
2-
import { BaseMapType } from "src/@types";
2+
import { BaseMapType } from "../types";
33
import t from "src/l10n/locale";
44
import { FontAwesomeControl, FontAwesomeControlOptions } from "./controls";
55

src/controls/zoom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BaseMapType } from "src/@types";
1+
import { BaseMapType } from "../types";
22
import { FontAwesomeControl, FontAwesomeControlOptions } from "./controls";
33

44
import { LeafletSymbol } from "src/utils/leaflet-import";

src/draw/controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BaseMapType } from "src/@types";
1+
import { BaseMapType } from "../types";
22
import { LeafletSymbol } from "src/utils/leaflet-import";
33
import { Polygon } from "./polygon";
44
import { Polyline, PolylineProperties } from "./polyline";

0 commit comments

Comments
 (0)